MCPcopy Create free account
hub / github.com/ByteArena/box2d / SetAllowSleeping

Method SetAllowSleeping

DynamicsB2World.go:418–429  ·  view source on GitHub ↗
(flag bool)

Source from the content-addressed store, hash-verified

416}
417
418func (world *B2World) SetAllowSleeping(flag bool) {
419 if flag == world.M_allowSleep {
420 return
421 }
422
423 world.M_allowSleep = flag
424 if world.M_allowSleep == false {
425 for b := world.M_bodyList; b != nil; b = b.M_next {
426 b.SetAwake(true)
427 }
428 }
429}
430
431// Find islands, integrate and solve constraints, solve position constraints
432func (world *B2World) Solve(step B2TimeStep) {

Callers

nothing calls this directly

Calls 1

SetAwakeMethod · 0.80

Tested by

no test coverage detected