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

Method ClearForces

DynamicsB2World.go:949–954  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

947}
948
949func (world *B2World) ClearForces() {
950 for body := world.M_bodyList; body != nil; body = body.GetNext() {
951 body.M_force.SetZero()
952 body.M_torque = 0.0
953 }
954}
955
956type B2WorldQueryWrapper struct {
957 BroadPhase *B2BroadPhase

Callers 1

StepMethod · 0.95

Calls 2

GetNextMethod · 0.65
SetZeroMethod · 0.45

Tested by

no test coverage detected