Class PhysicsAggregate
Index
Constructors
constructor
-
new PhysicsAggregate(
transformNode: TransformNode,
type: PhysicsShape | PhysicsShapeType,
options?: PhysicsAggregateParameters,
_scene?: Scene,
): PhysicsAggregateParameters
- transformNode: TransformNode
The physics-enabled object used as the physics aggregate
- type: PhysicsShape | PhysicsShapeType
The type of the physics aggregate
- options: PhysicsAggregateParameters = ...
Optional_scene: Scene
Returns PhysicsAggregate
- transformNode: TransformNode
Helper class to create and interact with a PhysicsAggregate. This is a transition object that works like Physics Plugin V1 Impostors. This helper instantiates all mandatory physics objects to get a body/shape and material. It's less efficient than handling body and shapes independently but for prototyping or a small numbers of physics objects, it's good enough.