Handbook
Glossary
cpDampedSpring
Vocabulary
chipmunk
.
ffi
Definition
USING:
classes.struct
;
IN:
chipmunk.ffi
STRUCT:
cpDampedSpring
{
constraint
cpConstraint
initial:
S{
cpConstraint
{
klass
f
}
{
a
f
}
{
b
f
}
{
maxForce 0.0
}
{
biasCoef 0.0
}
{
maxBias 0.0
}
{
data
f
}
}
}
{
anchr1
cpVect
initial:
S{
cpVect
{
x 0.0
}
{
y 0.0
}
}
}
{
anchr2
cpVect
initial:
S{
cpVect
{
x 0.0
}
{
y 0.0
}
}
}
{
restLength
cpFloat
initial:
0.0
}
{
stiffness
cpFloat
initial:
0.0
}
{
damping
cpFloat
initial:
0.0
}
{
springForceFunc
cpDampedSpringForceFunc
}
{
dt
cpFloat
initial:
0.0
}
{
target_vrn
cpFloat
initial:
0.0
}
{
r1
cpVect
initial:
S{
cpVect
{
x 0.0
}
{
y 0.0
}
}
}
{
r2
cpVect
initial:
S{
cpVect
{
x 0.0
}
{
y 0.0
}
}
}
{
nMass
cpFloat
initial:
0.0
}
{
n
cpVect
initial:
S{
cpVect
{
x 0.0
}
{
y 0.0
}
}
}
;
Methods
USING:
chipmunk.ffi
classes.struct
classes.struct.private
kernel
;
M:
cpDampedSpring
clone
clone-underlying
\
cpDampedSpring
memory>struct
;
inline
USING:
accessors
chipmunk.ffi
classes.struct
combinators.smart
;
M:
cpDampedSpring
struct-slot-values
{
[
constraint>>
]
[
anchr1>>
]
[
anchr2>>
]
[
restLength>>
]
[
stiffness>>
]
[
damping>>
]
[
springForceFunc>>
]
[
dt>>
]
[
target_vrn>>
]
[
r1>>
]
[
r2>>
]
[
nMass>>
]
[
n>>
]
}
cleave>array
;
inline