Private
accessorsPrivate
Private
Whether the component accessor's are built.
Private
entityPrivate
Private
orderPrivate
// TODO
Private
systemPrivate
Private
vehiclePrivate
Adds a constraint to this entity. Following constants available:
CONSTRAINT_TYPE_FIXED
CONSTRAINT_TYPE_POINT
CONSTRAINT_TYPE_DISTANCE
CONSTRAINT_TYPE_HINGE
CONSTRAINT_TYPE_SLIDER
CONSTRAINT_TYPE_CONE
CONSTRAINT_TYPE_SIX_DOF
CONSTRAINT_TYPE_SWING_TWIST
CONSTRAINT_TYPE_PULLEY
Constant number, representing joint type.
The other entity that this entity will be connected to with this joint.
Optional
opts: ConstraintSettings | ConeConstraintSettings | DistanceConstraintSettings | FixedConstraintSettings | HingeConstraintSettings | PulleyConstraintSettings | SixDOFConstraintSettings | SliderConstraintSettings | SwingTwistConstraintSettings = {}Optional joint options object.
null
, if unable to create one.Adds a vehicle type constraint. Following types available:
CONSTRAINT_TYPE_VEHICLE_WHEEL
CONSTRAINT_TYPE_VEHICLE_TRACK
CONSTRAINT_TYPE_VEHICLE_MOTO
Vehicle constraint type.
Optional
opts: WheeledVehicleConstraintSettings | MotoVehicleConstraintSettings | TrackedVehicleConstraintSettings = {}Constraint settings.
Constraint Component. Allows to add one or multiple constraints to an entity with a Body Component.