Constructor for Convex shape
Body-local angle of the shape.
Area of this shape.
Axes
The body this shape is attached to. A shape can only be attached to a single body.
The bounding radius of the convex
The center of mass of the Convex
Collision group that this shape belongs to (bit mask). See this tutorial.
Collision mask of this shape. See .collisionGroup.
Whether to produce contact forces when in contact with other bodies. Note that contacts will be generated, but they will be disabled. That means that this shape will move through other body shapes, but it will still trigger contact events, etc.
Shape object identifier
Material to use in collisions for this Shape. If this is set to null, the world will use default material properties instead.
Edge normals defined in the local frame, pointing out of the shape.
Body-local position of the shape.
Set to true if you want this shape to be a sensor. A sensor does not generate contacts, but it still reports contact events. This is good if you want to know if a shape is overlapping another shape, without them generating contacts.
Triangulated version of this convex. The structure is Array of 3-Arrays, and each subarray contains 3 integers, referencing the vertices.
The type of the shape. One of:
Vertices defined in the local frame.
Box shape type
Capsule shape type
Circle shape type
Convex shape type
Heightfield shape type
Line shape type
Particle shape type
Plane shape type
ID counter for shapes
Compute the moment of inertia of the Convex.
Test if a point is inside this shape.
raycast
Update the .area
Updates the .boundingRadius property
Update the .centerOfMass property.
Update the .triangles property
Convex shape class.