Skip to content
On this page

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 ​

NameTypeDescription
impulseArrayLike<number>The impulse to apply.

Returns ​

undefined

Defined in ​

websg.d.ts:928