A Shape object represents a volume and it is required for creating RigidBody objects and for convex sweep tests.
This is the list of supported volumes:
They call all be created with functions on the PhysicsDevice.
Summary
The collision margin to be used with the shape.
Syntax
// Get the current margin
var margin = shape.margin;
// Make it twice bigger
shape.margin = (2.0 * margin);
Summary
Radius of the minimum sphere that overlaps the whole shape. This value may not be optimal for triangle meshes or convex hulls.
Syntax
var shapeRadius = shape.radius;
Note
Read Only
Summary
A Vector3 object containing the half extents of the shape.
Syntax
var halfExtents = shape.halfExtents;
var width = (2.0 * halfExtents[0]);
var height = (2.0 * halfExtents[1]);
Note
Read Only