HingeJoint

HingeJoint

Physics hinge joint. To be added to a RigidBodyComponent.

Constructor

new HingeJoint(settingsopt)

Parameters:
Name Type Attributes Description
settings Object <optional>
Properties
Name Type Attributes Default Description
localPivot Vector3 <optional>
localAxis Vector3 <optional>
connectedEntity Entity <optional>
collideConnected boolean <optional>
false

Members

autoConfigureConnectedPivot :boolean

Automatically compute the connectedLocalPivot

Default Value:
  • true

connectedLocalPivot :Vector3

The pivot point defined inside the connected entity.

localAxis :Vector3

localPivot :Vector3

A point defined locally in the entity that the Hinge should rotate around.