ZPP_Space

zpp_nape.space.ZPP_Space (Class)

Instance Members


nape
userData: Dynamic

nape
gravityx: Float

nape
gravityy: Float

nape
wrap_gravity: nape.geom.Vec2


nape
wrap_bodies: nape.phys.BodyList


nape
wrap_compounds: nape.phys.CompoundList


nape
wrap_constraints: nape.constraint.ConstraintList


nape
bphase: ZPP_Broadphase

nape
global_lin_drag: Float

nape
global_ang_drag: Float

nape
stamp: Int

nape
midstep: Bool

nape
time: Float

nape
sortcontacts: Bool





nape
wrap_arbiters: nape.dynamics.ArbiterList


nape
wrap_live: nape.phys.BodyList




nape
islands: ZPP_Island


nape
wrap_listeners: nape.callbacks.ListenerList


nape
callbackset_list: ZPP_CallbackSet

nape
cbsets: ZPP_CbSetManager

nape
pre_dt: Float


nape
continuous: Bool



nape
getgravity(): Void

nape
clear(): Void

Name Type
x zpp_nape.callbacks.ZPP_InteractionListener

Name Type
x zpp_nape.callbacks.ZPP_InteractionListener

Name Type
x zpp_nape.callbacks.ZPP_Listener

Name Type
x zpp_nape.callbacks.ZPP_Listener

nape
add_callbackset(cb: ZPP_CallbackSet): Void
Name Type
cb ZPP_CallbackSet

nape
remove_callbackset(cb: ZPP_CallbackSet): Void
Name Type
cb ZPP_CallbackSet

nape
transmitType(p: zpp_nape.phys.ZPP_Body, new_type: Int): Void
Name Type
p zpp_nape.phys.ZPP_Body
new_type Int

nape
added_shape(s: zpp_nape.shape.ZPP_Shape, ?dontwake: Bool = false): Void
Name Type Default
s zpp_nape.shape.ZPP_Shape
dontwake Bool false

nape
removed_shape(s: zpp_nape.shape.ZPP_Shape, ?deleting: Bool = false): Void
Name Type Default
s zpp_nape.shape.ZPP_Shape
deleting Bool false

nape
addConstraint(con: zpp_nape.constraint.ZPP_Constraint): Void
Name Type
con zpp_nape.constraint.ZPP_Constraint

nape
remConstraint(con: zpp_nape.constraint.ZPP_Constraint): Void
Name Type
con zpp_nape.constraint.ZPP_Constraint

nape
addCompound(x: zpp_nape.phys.ZPP_Compound): Void
Name Type
x zpp_nape.phys.ZPP_Compound

nape
remCompound(x: zpp_nape.phys.ZPP_Compound): Void
Name Type
x zpp_nape.phys.ZPP_Compound

nape
addBody(body: zpp_nape.phys.ZPP_Body, ?flag: Int = -1): Void
Name Type Default
body zpp_nape.phys.ZPP_Body
flag Int -1

nape
remBody(body: zpp_nape.phys.ZPP_Body, ?flag: Int = -1): Void
Name Type Default
body zpp_nape.phys.ZPP_Body
flag Int -1

Name Type
x Float
y Float
filter zpp_nape.dynamics.ZPP_InteractionFilter
output nape.shape.ShapeList
Returns
nape.shape.ShapeList

Name Type
x Float
y Float
filter zpp_nape.dynamics.ZPP_InteractionFilter
output nape.phys.BodyList
Returns
nape.phys.BodyList

Name Type
aabb nape.geom.AABB
strict Bool
cont Bool
filter zpp_nape.dynamics.ZPP_InteractionFilter
output nape.shape.ShapeList
Returns
nape.shape.ShapeList

Name Type
aabb nape.geom.AABB
strict Bool
cont Bool
filter zpp_nape.dynamics.ZPP_InteractionFilter
output nape.phys.BodyList
Returns
nape.phys.BodyList

Name Type
pos nape.geom.Vec2
rad Float
cont Bool
filter zpp_nape.dynamics.ZPP_InteractionFilter
output nape.shape.ShapeList
Returns
nape.shape.ShapeList

Name Type
pos nape.geom.Vec2
rad Float
cont Bool
filter zpp_nape.dynamics.ZPP_InteractionFilter
output nape.phys.BodyList
Returns
nape.phys.BodyList

Name Type
shape zpp_nape.shape.ZPP_Shape
cont Bool
filter zpp_nape.dynamics.ZPP_InteractionFilter
output nape.shape.ShapeList
Returns
nape.shape.ShapeList

Name Type
shape zpp_nape.shape.ZPP_Shape
cont Bool
filter zpp_nape.dynamics.ZPP_InteractionFilter
output nape.phys.BodyList
Returns
nape.phys.BodyList

Name Type
ray nape.geom.Ray
inner Bool
filter nape.dynamics.InteractionFilter
Returns
nape.geom.RayResult

Name Type
ray nape.geom.Ray
inner Bool
filter nape.dynamics.InteractionFilter
output nape.geom.RayResultList
Returns
nape.geom.RayResultList

nape
convexCast(shape: zpp_nape.shape.ZPP_Shape, deltaTime: Float, filter: nape.dynamics.InteractionFilter, dynamics: Bool): nape.geom.ConvexResult
Name Type
shape zpp_nape.shape.ZPP_Shape
deltaTime Float
filter nape.dynamics.InteractionFilter
dynamics Bool
Returns
nape.geom.ConvexResult

Name Type
shape zpp_nape.shape.ZPP_Shape
deltaTime Float
filter nape.dynamics.InteractionFilter
dynamics Bool
output nape.geom.ConvexResultList
Returns
nape.geom.ConvexResultList

Name Type
i zpp_nape.callbacks.ZPP_Listener
Returns
zpp_nape.callbacks.ZPP_Callback

nape
step(deltaTime: Float, velocityIterations: Int, positionIterations: Int): Void
Name Type
deltaTime Float
velocityIterations Int
positionIterations Int

nape
continuousCollisions(deltaTime: Float): Void
Name Type
deltaTime Float

Name Type
s1 zpp_nape.shape.ZPP_Shape
s2 zpp_nape.shape.ZPP_Shape
stat Bool
in_arb zpp_nape.dynamics.ZPP_Arbiter
_ Bool
Returns
zpp_nape.dynamics.ZPP_Arbiter

nape
bodyCbWake(b: zpp_nape.phys.ZPP_Body): Void
Name Type
b zpp_nape.phys.ZPP_Body

nape
bodyCbSleep(b: zpp_nape.phys.ZPP_Body): Void
Name Type
b zpp_nape.phys.ZPP_Body

nape
constraintCbWake(con: zpp_nape.constraint.ZPP_Constraint): Void
Name Type
con zpp_nape.constraint.ZPP_Constraint

nape
constraintCbSleep(con: zpp_nape.constraint.ZPP_Constraint): Void
Name Type
con zpp_nape.constraint.ZPP_Constraint

nape
constraintCbBreak(con: zpp_nape.constraint.ZPP_Constraint): Void
Name Type
con zpp_nape.constraint.ZPP_Constraint

Name Type
cb1 zpp_nape.callbacks.ZPP_CbSet
cb2 zpp_nape.callbacks.ZPP_CbSet

nape
nullInteractorType(intx: zpp_nape.phys.ZPP_Interactor, ?me: zpp_nape.phys.ZPP_Interactor = null): Void
Name Type Default
intx zpp_nape.phys.ZPP_Interactor
me zpp_nape.phys.ZPP_Interactor null

Name Type
cb1 zpp_nape.callbacks.ZPP_CbSet
cb2 zpp_nape.callbacks.ZPP_CbSet

nape
freshInteractorType(intx: zpp_nape.phys.ZPP_Interactor, ?me: zpp_nape.phys.ZPP_Interactor = null): Void
Name Type Default
intx zpp_nape.phys.ZPP_Interactor
me zpp_nape.phys.ZPP_Interactor null

nape
wakeCompound(x: zpp_nape.phys.ZPP_Compound): Void
Name Type
x zpp_nape.phys.ZPP_Compound

nape
wakeIsland(i: ZPP_Island): Void
Name Type
i ZPP_Island

nape
non_inlined_wake(o: zpp_nape.phys.ZPP_Body, ?fst: Bool = false): Void
Name Type Default
o zpp_nape.phys.ZPP_Body
fst Bool false

nape
really_wake(o: zpp_nape.phys.ZPP_Body, ?fst: Bool = false): Void
Name Type Default
o zpp_nape.phys.ZPP_Body
fst Bool false

nape
wake_constraint(con: zpp_nape.constraint.ZPP_Constraint, ?fst: Bool = false): Bool
Name Type Default
con zpp_nape.constraint.ZPP_Constraint
fst Bool false
Returns
Bool

nape
doForests(dt: Float): Void
Name Type
dt Float

nape
sleepArbiters(): Void

nape
static_validation(body: zpp_nape.phys.ZPP_Body): Void
Name Type
body zpp_nape.phys.ZPP_Body

nape
validation(): Void

nape
updateVel(dt: Float): Void
Name Type
dt Float

nape
updatePos(dt: Float): Void
Name Type
dt Float

nape
presteparb(arb: zpp_nape.dynamics.ZPP_Arbiter, dt: Float, ?cont: Bool = false): Bool
Name Type Default
arb zpp_nape.dynamics.ZPP_Arbiter
dt Float
cont Bool false
Returns
Bool

nape
prestep(dt: Float): Void
Name Type
dt Float

nape
warmStart(): Void

nape
iterateVel(times: Int): Void
Name Type
times Int

nape
iteratePos(times: Int): Void
Name Type
times Int

Name Type
s1 zpp_nape.shape.ZPP_Shape
s2 zpp_nape.shape.ZPP_Shape
Returns
Bool

Name Type
s1 zpp_nape.shape.ZPP_Shape
s2 zpp_nape.shape.ZPP_Shape
b1 zpp_nape.phys.ZPP_Body
b2 zpp_nape.phys.ZPP_Body
Returns
Int

Name Type
s1 zpp_nape.shape.ZPP_Shape
s2 zpp_nape.shape.ZPP_Shape
stat Bool
in_arb zpp_nape.dynamics.ZPP_Arbiter
continuous Bool
Returns
zpp_nape.dynamics.ZPP_Arbiter

Name Type
s1 zpp_nape.shape.ZPP_Shape
s2 zpp_nape.shape.ZPP_Shape

nape
inlined_MRCA_chains(s1: zpp_nape.shape.ZPP_Shape, s2: zpp_nape.shape.ZPP_Shape): Void
Name Type
s1 zpp_nape.shape.ZPP_Shape
s2 zpp_nape.shape.ZPP_Shape

nape
new(gravity: zpp_nape.geom.ZPP_Vec2, broadphase: nape.space.Broadphase): Void
Name Type
gravity zpp_nape.geom.ZPP_Vec2
broadphase nape.space.Broadphase

Private Members

nape
convexShapeList: nape.shape.ShapeList



nape
gravity_invalidate(x: zpp_nape.geom.ZPP_Vec2): Void
Name Type
x zpp_nape.geom.ZPP_Vec2

nape
gravity_validate(): Void

nape
bodies_adder(x: nape.phys.Body): Bool
Name Type
x nape.phys.Body
Returns
Bool

nape
bodies_subber(x: nape.phys.Body): Void
Name Type
x nape.phys.Body

nape
bodies_modifiable(): Void

nape
compounds_adder(x: nape.phys.Compound): Bool
Name Type
x nape.phys.Compound
Returns
Bool

nape
compounds_subber(x: nape.phys.Compound): Void
Name Type
x nape.phys.Compound

nape
compounds_modifiable(): Void

nape
constraints_adder(x: nape.constraint.Constraint): Bool
Name Type
x nape.constraint.Constraint
Returns
Bool

nape
constraints_subber(x: nape.constraint.Constraint): Void
Name Type
x nape.constraint.Constraint

nape
constraints_modifiable(): Void

nape
listeners_adder(x: nape.callbacks.Listener): Bool
Name Type
x nape.callbacks.Listener
Returns
Bool

nape
listeners_subber(x: nape.callbacks.Listener): Void
Name Type
x nape.callbacks.Listener

nape
listeners_modifiable(): Void

nape
prepareCast(s: zpp_nape.shape.ZPP_Shape): Void
Name Type
s zpp_nape.shape.ZPP_Shape