Class: PhysicsBody
WebSG.PhysicsBody
A PhysicsBody is a behavior that can be added to a node to give it a physical presence in the world and interact with other physics bodies.
Table of contents
Constructors
Methods
Constructors
constructor
• new PhysicsBody()
Methods
applyImpulse
▸ applyImpulse(impulse
): undefined
Applies an impulse at the center of mass of this physics body.
Parameters
Name | Type | Description |
---|---|---|
impulse | ArrayLike <number > | The impulse to apply. |
Returns
undefined