(flag bool)
| 416 | } |
| 417 | |
| 418 | func (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 |
| 432 | func (world *B2World) Solve(step B2TimeStep) { |