CLASS v1.8.0

physics::DistanceJoint

kn::physics::DistanceJoint

Inherits kn::physics::Joint

Declared in kraken/physics/joints/DistanceJoint.hpp

Reference

C++ API

setLength

function
void setLength(float length)

No description in the source header.

getLength

function
float getLength() const

No description in the source header.

enableSpring

function
void enableSpring(bool enable)

No description in the source header.

bool isSpringEnabled() const

No description in the source header.

void setSpringHertz(float hertz)

No description in the source header.

float getSpringHertz() const

No description in the source header.

void setSpringDampingRatio(float dampingRatio)

No description in the source header.

float getSpringDampingRatio() const

No description in the source header.

enableLimit

function
void enableLimit(bool enable)

No description in the source header.

bool isLimitEnabled() const

No description in the source header.

void setLengthRange(float minLength, float maxLength)

No description in the source header.

getMinLength

function
float getMinLength() const

No description in the source header.

getMaxLength

function
float getMaxLength() const

No description in the source header.

float getCurrentLength() const

No description in the source header.

enableMotor

function
void enableMotor(bool enable)

No description in the source header.

bool isMotorEnabled() const

No description in the source header.

void setMotorSpeed(float speed)

No description in the source header.

float getMotorSpeed() const

No description in the source header.

void setMaxMotorForce(float force)

No description in the source header.

float getMaxMotorForce() const

No description in the source header.

float getMotorForce() const

No description in the source header.

Find your next step

Start typing to search the manual.