SliderJoint3D
Package: Libraries.Game.Physics.Joints · Inherits from: Libraries.Game.Physics.Joints.Joint3D, Libraries.Language.Object, Libraries.Game.Physics.PhysicsBehavior3D
This class defines a slider joint.
Variables
number SLIDER_CONSTRAINT_DEF_RESTITUTIONnumber SLIDER_CONSTRAINT_DEF_DAMPINGnumber SLIDER_CONSTRAINT_DEF_SOFTNESS
Actions
BuildJacobian()
This action is called by the Collision Solver to gather information on the joint before calling the SolveJoint action. This action is used internally.
ConfigureLinearMotor(boolean enabled, number targetVelocity, number maxForce)
This action configures the linear motor for this slider joint. The motor applies a force along the slider axis to achieve a target velocity.
Parameters
enabledboolean: Whether to enable the linear motortargetVelocitynumber: The desired velocity along the slider axismaxForcenumber: The maximum force the motor can apply
Initialize(Libraries.Interface.Item3D itemA, Libraries.Interface.Item3D itemB, Libraries.Game.Collision.PhysicsPosition3D positionA, Libraries.Game.Collision.PhysicsPosition3D positionB, boolean useLinearReferenceFrameA)
This action initializes where the slider joint is and what items are associated with the slider joint.
Parameters
itemALibraries.Interface.Item3D: The first item.itemBLibraries.Interface.Item3D: The second item.positionALibraries.Game.Collision.PhysicsPosition3D: The orientation and location of the slider joint relative to itemA's coordinate system. Make sure so that the x-axis of the slider joint's orientation is pointing toward the direction of the slide relative to ItemA's frame if useLinearReferenceFrameA is set to true.positionBLibraries.Game.Collision.PhysicsPosition3D: The orientation and location of the slider joint relative to itemB's coordinate system.useLinearReferenceFrameAboolean: This is set to true when you want to define the limits from the point of view of the first object's center and orientation.
SetLowerAngularLimit(number lowerLimit)
This action sets how much the moving object should be able to rotate along the axis of slide.
Parameters
lowerLimitnumber
SetLowerLinearLimit(number lowerLimit)
This action sets the lower linear limit to how much the moving object should be able to slide.
Parameters
lowerLimitnumber
SetUpperAngularLimit(number upperLimit)
This action sets how much the moving object should be able to rotate along the axis of slide.
Parameters
upperLimitnumber
SetUpperLinearLimit(number upperLimit)
This action sets the upper linear limit to how much the moving object should be able to slide.
Parameters
upperLimitnumber
SolveJoint(number timeStep)
This action solves the constraint of this joint and make sure that objects A and B is able to move accordint to the joint constraint applied. This action is used internally.
Parameters
timeStepnumber
Inherited Actions
24 actions from Libraries.Game.Physics.Joints.Joint3D
- GetAppliedImpulse()
- GetEdge(integer index)
- GetEdgeA()
- GetEdgeB()
- GetEdgeItem(integer index)
- GetEdgeOther(integer index)
- GetEdgesSize()
- GetInformation(Libraries.Game.Physics.CollisionSolverInformation3D information)
- GetItem(integer index)
- GetItemA()
- GetItemB()
- GetItemsSize()
- GetNext()
- GetPrevious()
- GetType()
- IsJoint()
- SetAppliedImpulse(number impulse)
- SetEdgeA(Libraries.Game.Physics.Joints.JointEdge3D edgeA)
- SetEdgeB(Libraries.Game.Physics.Joints.JointEdge3D edgeB)
- SetItemA(Libraries.Interface.Item3D item)
- SetItemB(Libraries.Interface.Item3D item)
- SetNext(Libraries.Game.Physics.Joints.Joint3D next)
- SetPrevious(Libraries.Game.Physics.Joints.Joint3D previous)
- SetType(integer type)