Skip to content
On this page

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

websg.d.ts:910


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

websg.d.ts:916


linearVelocity

Optional linearVelocity: ArrayLike<number>

The linear velocity of the physics body as an array of three numbers [x, y, z].

Defined in

websg.d.ts:905


mass

Optional mass: number

The mass of the physics body in kilograms.

Defined in

websg.d.ts:900


type

type: PhysicsBodyType

The type of the physics body.

Defined in

websg.d.ts:895