pub struct PhysicsShapeGroup2D {
pub m_Shapes: Vec<PhysicsShape>,
pub m_Vertices: Vec<Vector2f>,
}
Expand description
PhysicsShapeGroup2D is a sub class of the Unity engine since version 2021.2.0b1. Exert from Unity’s scripting documentation: Represents a group of PhysicsShape2D and their geometry. A shape group represents multiple PhysicsShape2D of the same or mixed PhysicsShapeType2D along with their geometry. It is comprised of a single list of vertices (GetShapeVertices) along with a list of PhysicsShape2D which refer to specific ranges of those vertices i.e. they index into the list of vertices. Some shape types (PhysicsShapeType2D) use a fixed number of vertices and some use a variable number of vertices therefore this single vertices list is a compact and efficient representation for multiple PhysicsShape2D in a group.The shape group can be created by using the following methods:
Fields§
§m_Shapes: Vec<PhysicsShape>
§m_Vertices: Vec<Vector2f>