Skip to main content

Function: addPrismaticJointComponent()

addPrismaticJointComponent(world, entity, options): PrismaticJointEcsComponent

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

Attaches a PrismaticJointEcsComponent to entity.

Parameters

world

EcsWorld

The ECS world entity belongs to.

entity

number

The entity to attach the component to.

options

PrismaticJointEcsComponent

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

Returns

PrismaticJointEcsComponent

The attached component, for further tuning or runtime changes.