Handbook
Glossary
cpBody
Vocabulary
chipmunk
.
ffi
Definition
USING:
classes.struct
;
IN:
chipmunk.ffi
STRUCT:
cpBody
{
velocity_func
cpBodyVelocityFunc
}
{
position_func
cpBodyPositionFunc
}
{
m
cpFloat
initial:
0.0
}
{
m_inv
cpFloat
initial:
0.0
}
{
i
cpFloat
initial:
0.0
}
{
i_inv
cpFloat
initial:
0.0
}
{
p
cpVect
initial:
S{
cpVect
{
x 0.0
}
{
y 0.0
}
}
}
{
v
cpVect
initial:
S{
cpVect
{
x 0.0
}
{
y 0.0
}
}
}
{
f
cpVect
initial:
S{
cpVect
{
x 0.0
}
{
y 0.0
}
}
}
{
a
cpFloat
initial:
0.0
}
{
w
cpFloat
initial:
0.0
}
{
t
cpFloat
initial:
0.0
}
{
rot
cpVect
initial:
S{
cpVect
{
x 0.0
}
{
y 0.0
}
}
}
{
data
cpDataPointer
}
{
v_limit
cpFloat
initial:
0.0
}
{
w_limit
cpFloat
initial:
0.0
}
{
v_bias
cpVect
initial:
S{
cpVect
{
x 0.0
}
{
y 0.0
}
}
}
{
w_bias
cpFloat
initial:
0.0
}
;
Methods
USING:
chipmunk.ffi
classes.struct
classes.struct.private
kernel
;
M:
cpBody
clone
clone-underlying
\
cpBody
memory>struct
;
inline
USING:
accessors
chipmunk.ffi
classes.struct
combinators.smart
;
M:
cpBody
struct-slot-values
{
[
velocity_func>>
]
[
position_func>>
]
[
m>>
]
[
m_inv>>
]
[
i>>
]
[
i_inv>>
]
[
p>>
]
[
v>>
]
[
f>>
]
[
a>>
]
[
w>>
]
[
t>>
]
[
rot>>
]
[
data>>
]
[
v_limit>>
]
[
w_limit>>
]
[
v_bias>>
]
[
w_bias>>
]
}
cleave>array
;
inline