Function createPhysicsAggregate
-
createPhysicsAggregate(
world: PhysicsWorld,
node: Mesh,
type: PhysicsShapeType,
options: PhysicsAggregateOptions,
): PhysicsAggregateParameters
- world: PhysicsWorld
- node: Mesh
- type: PhysicsShapeType
- options: PhysicsAggregateOptions
Returns PhysicsAggregate
Create a physics aggregate: body + shape + material wired together.
mass === 0→ STATIC,mass > 0→ DYNAMIC. Primitive shape geometry is auto-sized from the mesh bounding box when not specified.