class PhysicsHingeJointSource
PhysicsHingeJoint › PhysicsJoint
All members, including inherited
Methods 4
proto external void SetLimits(float low, float high, float softness, float biasFactor, float relaxationFactor)Sets various joint parameters
low- Low limit of the joint
high- High limit of the joint
softness- Softness of the joint. See \ref jointParameters "details"
biasFactor- Bias factor of the joint. See \ref jointParameters "details"
relaxationFactor- Relaxation factor of the joint. See \ref jointParameters "details"
Allows motor to move hinge to specific angle. Must be called continuously.
angle- Target angle motor tries to reach
dt- Time fraction used in update
maxImpulse- Maximum impulse motor can overcome
Allows motor to move hinge at specific velocity
enable- True to enable motor
targetVelocity- Target angular velocity motor tries to maintain
maxImpulse- Maximum impulse motor can overcome
proto external void SetAxis(vector axis)Sets new axis of the hinge joint. ent1 refers to one in PhysicsJoint.CreateHinge.
axis- New joint axis in reference frame of ent1