Class PhysicsAggregate
Hierarchy
- PhysicsAggregate
Index
Constructors
constructor
Parameters
transformNode: TransformNode
type: number
Optional _options: PhysicsAggregateParameters
Optional _scene: Scene
Returns PhysicsAggregate
Properties
bodySearch playground for body
The body that is associated with this aggregate
materialSearch playground for material
The material that is associated with this aggregate
shapeSearch playground for shape
The shape that is associated with this aggregate
transform NodeSearch playground for transformNode
The physics-enabled object used as the physics aggregate
typeSearch playground for type
The type of the physics aggregate
Methods
disposeSearch playground for dispose
Releases the body, shape and material
Returns void
Helper class to create and interact with a PhysicsAggregate. This is a transition object that works like Physics Plugin V1 Impostors. This helper instanciate all mandatory physics objects to get a body/shape and material. It's less efficient that handling body and shapes independently but for prototyping or a small numbers of physics objects, it's good enough.