Handbook
Glossary
cpSpace
Vocabulary
chipmunk
.
ffi
Definition
USING:
alien.c-types
classes.struct
;
IN:
chipmunk.ffi
STRUCT:
cpSpace
{
iterations
int
initial:
0
}
{
elasticIterations
int
initial:
0
}
{
gravity
cpVect
initial:
S{
cpVect
{
x 0.0
}
{
y 0.0
}
}
}
{
damping
cpFloat
initial:
0.0
}
{
stamp
int
initial:
0
}
{
staticShapes cpSpaceHash*
}
{
activeShapes cpSpaceHash*
}
{
bodies cpArray*
}
{
arbiters cpArray*
}
{
contactSet cpHashSet*
}
{
constraints cpArray*
}
{
collFuncSet cpHashSet*
}
{
defaultHandler
cpCollisionHandler
initial:
S{
cpCollisionHandler
{
a 0
}
{
b 0
}
{
begin
f
}
{
preSolve
f
}
{
postSolve
f
}
{
separate
f
}
{
data
f
}
}
}
{
postStepCallbacks cpHashSet*
}
;
Methods
USING:
chipmunk.ffi
classes.struct
classes.struct.private
kernel
;
M:
cpSpace
clone
clone-underlying
\
cpSpace
memory>struct
;
inline
USING:
accessors
chipmunk.ffi
classes.struct
combinators.smart
;
M:
cpSpace
struct-slot-values
{
[
iterations>>
]
[
elasticIterations>>
]
[
gravity>>
]
[
damping>>
]
[
stamp>>
]
[
staticShapes>>
]
[
activeShapes>>
]
[
bodies>>
]
[
arbiters>>
]
[
contactSet>>
]
[
constraints>>
]
[
collFuncSet>>
]
[
defaultHandler>>
]
[
postStepCallbacks>>
]
}
cleave>array
;
inline