Skip to main content

Type Alias: RigidBodyProps

RigidBodyProps: object & object | object

Type declaration

activationState?

optional activationState: ActivationState

collisionCallback?

optional collisionCallback: CollisionCallback

damping?

optional damping: [number, number]

[linearDumping, angularDumping]

friction?

optional friction: number

id

id: string

mass

mass: number

shape

shape: BaseShape

world?

optional world: DiscreteDynamicWorld

If you supply world the rigid body will be added to the world on mount and removed on unmount.

Defined in

src/bullet/hooks/useRigidBody.ts:10