dmech v0.4.1 (2020-07-30T18:32:41Z)
Home
Dub
Repo
DistanceConstraint
dmech
constraint
Undocumented in source.
class
DistanceConstraint :
Constraint
{
enum
DistanceBehavior
;
Vector3f
r1
;
Vector3f
r2
;
float
biasFactor
;
float
softness
;
float
distance
;
DistanceBehavior
behavior
;
this
(Owner owner, RigidBody body1, RigidBody body2, float dist);
float
effectiveMass
;
float
accumulatedImpulse
;
float
bias
;
float
softnessOverDt
;
Vector3f
[
4
]
jacobian
;
bool
skipConstraint
;
float
myCounter
;
void
prepare
(double dt);
void
step
();
}
Constructors
this
this
(Owner owner, RigidBody body1, RigidBody body2, float dist)
Undocumented in source.
Members
Enums
DistanceBehavior
enum
DistanceBehavior
Undocumented in source.
Functions
prepare
void
prepare
(double dt)
Undocumented in source. Be warned that the author may not have intended to support it.
step
void
step
()
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
accumulatedImpulse
float
accumulatedImpulse
;
Undocumented in source.
behavior
DistanceBehavior
behavior
;
Undocumented in source.
bias
float
bias
;
Undocumented in source.
biasFactor
float
biasFactor
;
Undocumented in source.
distance
float
distance
;
Undocumented in source.
effectiveMass
float
effectiveMass
;
Undocumented in source.
jacobian
Vector3f
[
4
]
jacobian
;
Undocumented in source.
myCounter
float
myCounter
;
Undocumented in source.
r1
Vector3f
r1
;
r2
Vector3f
r2
;
Undocumented in source.
skipConstraint
bool
skipConstraint
;
Undocumented in source.
softness
float
softness
;
Undocumented in source.
softnessOverDt
float
softnessOverDt
;
Undocumented in source.
Inherited Members
From Constraint
body1
RigidBody
body1
;
Undocumented in source.
body2
RigidBody
body2
;
Undocumented in source.
prepare
void
prepare
(double delta)
Undocumented in source.
step
void
step
()
Undocumented in source.
Meta
Source
See Implementation
dmech
constraint
classes
AngleConstraint
AxisAngleConstraint
BallConstraint
Constraint
DistanceConstraint
HingeConstraint
PrismaticConstraint
SliderConstraint