dchip.cpDampedRotarySpring

Undocumented in source.

Members

Aliases

cpDampedRotarySpringTorqueFunc
alias cpDampedRotarySpringTorqueFunc = cpFloat function(cpConstraint* spring, cpFloat relativeAngle)
Undocumented in source.

Functions

_initModuleCtor_cpDampedRotarySpring
void _initModuleCtor_cpDampedRotarySpring()
Undocumented in source. Be warned that the author may not have intended to support it.
applyCachedImpulse
void applyCachedImpulse(cpDampedRotarySpring* spring, cpFloat dt_coef)
Undocumented in source. Be warned that the author may not have intended to support it.
applyImpulse
void applyImpulse(cpDampedRotarySpring* spring, cpFloat dt)
Undocumented in source. Be warned that the author may not have intended to support it.
cpDampedRotarySpringAlloc
cpDampedRotarySpring* cpDampedRotarySpringAlloc()

Allocate a damped rotary spring.

cpDampedRotarySpringAlloc
cpDampedRotarySpring* cpDampedRotarySpringAlloc()
Undocumented in source. Be warned that the author may not have intended to support it.
cpDampedRotarySpringGetClass
const(cpConstraintClass*) cpDampedRotarySpringGetClass()
Undocumented in source. Be warned that the author may not have intended to support it.
cpDampedRotarySpringInit
cpDampedRotarySpring* cpDampedRotarySpringInit(cpDampedRotarySpring* joint, cpBody* a, cpBody* b, cpFloat restAngle, cpFloat stiffness, cpFloat damping)

Initialize a damped rotary spring.

cpDampedRotarySpringInit
cpDampedRotarySpring* cpDampedRotarySpringInit(cpDampedRotarySpring* spring, cpBody* a, cpBody* b, cpFloat restAngle, cpFloat stiffness, cpFloat damping)
Undocumented in source. Be warned that the author may not have intended to support it.
cpDampedRotarySpringNew
cpConstraint* cpDampedRotarySpringNew(cpBody* a, cpBody* b, cpFloat restAngle, cpFloat stiffness, cpFloat damping)

Allocate and initialize a damped rotary spring.

cpDampedRotarySpringNew
cpConstraint* cpDampedRotarySpringNew(cpBody* a, cpBody* b, cpFloat restAngle, cpFloat stiffness, cpFloat damping)
Undocumented in source. Be warned that the author may not have intended to support it.
defaultSpringTorque
cpFloat defaultSpringTorque(cpDampedRotarySpring* spring, cpFloat relativeAngle)
Undocumented in source. Be warned that the author may not have intended to support it.
getImpulse
cpFloat getImpulse(cpDampedRotarySpring* spring)
Undocumented in source. Be warned that the author may not have intended to support it.
preStep
void preStep(cpDampedRotarySpring* spring, cpFloat dt)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin CP_DefineConstraintProperty!("cpDampedRotarySpring", cpFloat, "restAngle", "RestAngle")
Undocumented in source.
__anonymous
mixin CP_DefineConstraintProperty!("cpDampedRotarySpring", cpFloat, "stiffness", "Stiffness")
Undocumented in source.
__anonymous
mixin CP_DefineConstraintProperty!("cpDampedRotarySpring", cpFloat, "damping", "Damping")
Undocumented in source.
__anonymous
mixin CP_DefineConstraintProperty!("cpDampedRotarySpring", cpDampedRotarySpringTorqueFunc, "springTorqueFunc", "SpringTorqueFunc")
Undocumented in source.

Static variables

klass
cpConstraintClass klass;
Undocumented in source.

Structs

cpDampedRotarySpring
struct cpDampedRotarySpring

@private

Meta