class SphericalJoint
package oimo.dynamics.constraint.joint
extends Joint
@:build(oimo.m.B.bu())A spherical joint (a.k.a. ball and socket joint) constrains two rigid bodies to share their anchor points. This joint provides three degrees of freedom. You can enable a spring and damper effect of the constraint.
Constructor
Methods
Inherited Variables
Inherited Methods
Defined by Joint
inlinegetAllowCollision():Bool
Returns whether to allow the connected rigid bodies to collide each other.
inlinegetAnchor1To(anchor:Vec3):Void
Sets anchor
to the first rigid body's anchor point in world coordinates.
This does not create a new instance of Vec3
.
inlinegetAnchor2To(anchor:Vec3):Void
Sets anchor
to the second rigid body's anchor point in world coordinates.
This does not create a new instance of Vec3
.
inlinegetAppliedForce():Vec3
Returns the force applied to the first rigid body at the last time step.
inlinegetAppliedForceTo(appliedForce:Vec3):Void
Sets appliedForce
to the force applied to the first rigid body at the last time step.
This does not create a new instance of Vec3
.
inlinegetAppliedTorque():Vec3
Returns the torque applied to the first rigid body at the last time step.
inlinegetAppliedTorqueTo(appliedTorque:Vec3):Void
Sets appliedTorque
to the torque applied to the first rigid body at the last time step.
This does not create a new instance of Vec3
.
inlinegetBasis1To(basis:Mat3):Void
Sets basis
to the basis of the joint for the first rigid body in world coordinates.
This does not create a new instance of Mat3
.
inlinegetBasis2():Mat3
Returns the basis of the joint for the second rigid body in world coordinates.
inlinegetBasis2To(basis:Mat3):Void
Sets basis
to the basis of the joint for the second rigid body in world coordinates.
This does not create a new instance of Mat3
.
inlinegetBreakForce():Float
Returns the magnitude of the constraint force at which the joint will be destroyed.
Returns 0
if the joint is unbreakable.
inlinegetBreakTorque():Float
Returns the magnitude of the constraint torque at which the joint will be destroyed.
Returns 0
if the joint is unbreakable.
inlinegetLocalAnchor1To(localAnchor:Vec3):Void
Sets localAnchor
to the first rigid body's anchor point in local coordinates.
This does not create a new instance of Vec3
.
inlinegetLocalAnchor2():Vec3
Returns the second rigid body's local anchor point in world coordinates.
inlinegetLocalAnchor2To(localAnchor:Vec3):Void
Sets localAnchor
to the second rigid body's anchor point in local coordinates.
This does not create a new instance of Vec3
.
inlinegetNext():Joint
Returns the next joint in the world.
If the next one does not exist, null
will be returned.
inlinegetPositionCorrectionAlgorithm():Int
Returns the type of the position correction algorithm for the joint.
See PositionCorrectionAlgorithm
for details.
inlinegetPrev():Joint
Returns the previous joint in the world.
If the previous one does not exist, null
will be returned.
inlinesetAllowCollision(allowCollision:Bool):Void
Sets whether to allow the connected rigid bodies to collide each other.
inlinesetBreakForce(breakForce:Float):Void
Sets the magnitude of the constraint force at which the joint will be destroyed.
Set 0
for unbreakable joints.
inlinesetBreakTorque(breakTorque:Float):Void
Sets the magnitude of the constraint force at which the joint will be destroyed.
Set 0
for unbreakable joints.
inlinesetPositionCorrectionAlgorithm(positionCorrectionAlgorithm:Int):Void
Sets the type of the position correction algorithm to positionCorrectionAlgorithm
for the joint.
See PositionCorrectionAlgorithm
for details.