physics::DistanceJoint
kn::physics::DistanceJoint Inherits kn::physics::Joint
Declared in kraken/physics/joints/DistanceJoint.hpp
At a glance
21 memberssetLengthfunctiongetLengthfunctionenableSpringfunctionisSpringEnabledfunctionsetSpringHertzfunctiongetSpringHertzfunctionsetSpringDampingRatiofunctiongetSpringDampingRatiofunctionenableLimitfunctionisLimitEnabledfunctionsetLengthRangefunctiongetMinLengthfunctiongetMaxLengthfunctiongetCurrentLengthfunctionenableMotorfunctionisMotorEnabledfunctionsetMotorSpeedfunctiongetMotorSpeedfunctionsetMaxMotorForcefunctiongetMaxMotorForcefunctiongetMotorForcefunctionReference
C++ APIsetLength
functionvoid setLength(float length)No description in the source header.
getLength
functionfloat getLength() constNo description in the source header.
enableSpring
functionvoid enableSpring(bool enable)No description in the source header.
isSpringEnabled
functionbool isSpringEnabled() constNo description in the source header.
setSpringHertz
functionvoid setSpringHertz(float hertz)No description in the source header.
getSpringHertz
functionfloat getSpringHertz() constNo description in the source header.
setSpringDampingRatio
functionvoid setSpringDampingRatio(float dampingRatio)No description in the source header.
getSpringDampingRatio
functionfloat getSpringDampingRatio() constNo description in the source header.
enableLimit
functionvoid enableLimit(bool enable)No description in the source header.
isLimitEnabled
functionbool isLimitEnabled() constNo description in the source header.
setLengthRange
functionvoid setLengthRange(float minLength, float maxLength)No description in the source header.
getMinLength
functionfloat getMinLength() constNo description in the source header.
getMaxLength
functionfloat getMaxLength() constNo description in the source header.
getCurrentLength
functionfloat getCurrentLength() constNo description in the source header.
enableMotor
functionvoid enableMotor(bool enable)No description in the source header.
isMotorEnabled
functionbool isMotorEnabled() constNo description in the source header.
setMotorSpeed
functionvoid setMotorSpeed(float speed)No description in the source header.
getMotorSpeed
functionfloat getMotorSpeed() constNo description in the source header.
setMaxMotorForce
functionvoid setMaxMotorForce(float force)No description in the source header.
getMaxMotorForce
functionfloat getMaxMotorForce() constNo description in the source header.
getMotorForce
functionfloat getMotorForce() constNo description in the source header.