Handbook
Glossary
cpContact
Vocabulary
chipmunk
.
ffi
Definition
USING:
classes.struct
;
IN:
chipmunk.ffi
STRUCT:
cpContact
{
p
cpVect
initial:
S{
cpVect
{
x 0.0
}
{
y 0.0
}
}
}
{
n
cpVect
initial:
S{
cpVect
{
x 0.0
}
{
y 0.0
}
}
}
{
dist
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
}
{
tMass
cpFloat
initial:
0.0
}
{
bounce
cpFloat
initial:
0.0
}
{
jnAcc
cpFloat
initial:
0.0
}
{
jtAcc
cpFloat
initial:
0.0
}
{
jBias
cpFloat
initial:
0.0
}
{
bias
cpFloat
initial:
0.0
}
{
hash
cpHashValue
initial:
0
}
;
Methods
USING:
chipmunk.ffi
classes.struct
classes.struct.private
kernel
;
M:
cpContact
clone
clone-underlying
\
cpContact
memory>struct
;
inline
USING:
accessors
chipmunk.ffi
classes.struct
combinators.smart
;
M:
cpContact
struct-slot-values
{
[
p>>
]
[
n>>
]
[
dist>>
]
[
r1>>
]
[
r2>>
]
[
nMass>>
]
[
tMass>>
]
[
bounce>>
]
[
jnAcc>>
]
[
jtAcc>>
]
[
jBias>>
]
[
bias>>
]
[
hash>>
]
}
cleave>array
;
inline