Skip to main content

Function: addRevoluteJointComponent()

addRevoluteJointComponent(world, entity, options): RevoluteJointEcsComponent

Defined in: physics/components/revolute-joint-component.ts:26

Attaches a RevoluteJointEcsComponent to entity.

Parameters

world

EcsWorld

The ECS world entity belongs to.

entity

number

The entity to attach the component to.

options

RevoluteJointEcsComponent

Options for configuring the joint. joint has no sensible default and must always be provided.

Returns

RevoluteJointEcsComponent

The attached component, for further tuning or runtime changes.