Interface: PhysicsBodyProps
WebSG.PhysicsBodyProps
Interface representing the properties for creating a PhysicsBody.
Table of contents
Properties
Properties
angularVelocity
• Optional
angularVelocity: ArrayLike
<number
>
The angular velocity of the physics body as an array of three numbers [x, y, z].
Defined in
inertiaTensor
• Optional
inertiaTensor: ArrayLike
<number
>
The inertia tensor of the physics body as an array of nine numbers representing a 3x3 matrix. This property is experimental and may be changed in a future release.
Defined in
linearVelocity
• Optional
linearVelocity: ArrayLike
<number
>
The linear velocity of the physics body as an array of three numbers [x, y, z].
Defined in
mass
• Optional
mass: number
The mass of the physics body in kilograms.
Defined in
type
• type: PhysicsBodyType
The type of the physics body.