Function: addRevoluteJointComponent()
addRevoluteJointComponent(
world,entity,options):RevoluteJointEcsComponent
Defined in: physics/components/revolute-joint-component.ts:26
Attaches a RevoluteJointEcsComponent to entity.
Parameters
world
The ECS world entity belongs to.
entity
number
The entity to attach the component to.
options
Options for configuring the joint. joint has no
sensible default and must always be provided.
Returns
The attached component, for further tuning or runtime changes.