public final class HingeConstraint extends Constraint
Constraint.Type| Constructor and Description |
|---|
HingeConstraint(RigidBody rigidBodyA,
RigidBody rigidBodyB,
Transform frameInA,
Transform frameInB) |
| Modifier and Type | Method and Description |
|---|---|
Transform |
getFrameOffsetA(Transform dst) |
Transform |
getFrameOffsetB(Transform dst) |
float |
getHingeAngle() |
float |
getLowerLimit() |
float |
getMaxMotorImpulse() |
float |
getMotorTargetVelocity() |
float |
getUpperLimit() |
boolean |
isAngularOnly() |
boolean |
isEnableAngularMotor() |
boolean |
isMotorEnabled() |
void |
setAngularOnly(boolean angularOnly) |
void |
setFrames(Transform frameA,
Transform frameB) |
void |
setLimit(float low,
float high) |
void |
setMaxMotorImpulse(float maxMotorImpulse) |
void |
setMotorEnabled(boolean enableMotor) |
void |
setMotorEnabled(boolean enableMotor,
float targetVelocity,
float maxMotorImpulse) |
void |
setMotorTarget(float targetAngle,
float dt) |
void |
setMotorTarget(Quat qAinB,
float dt) |
destroy, getRigidBodyA, getRigidBodyB, getType, isBreakingImpulseThreshold, isCollisionBetweenLinkedBodies, isEnabled, pivotAxisToTransform, setBreakingImpulseThreshold, setCollisionBetweenLinkedBodys, setEnabledpublic final boolean isAngularOnly()
public final void setAngularOnly(boolean angularOnly)
public final boolean isEnableAngularMotor()
public final float getMotorTargetVelocity()
public final float getMaxMotorImpulse()
public boolean isMotorEnabled()
public void setMotorEnabled(boolean enableMotor)
public final void setMotorEnabled(boolean enableMotor,
float targetVelocity,
float maxMotorImpulse)
public void setMotorTarget(Quat qAinB, float dt)
public void setMotorTarget(float targetAngle,
float dt)
public void setMaxMotorImpulse(float maxMotorImpulse)
public final float getLowerLimit()
public final float getUpperLimit()
public final void setLimit(float low,
float high)
public final float getHingeAngle()
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com