MCPcopy
hub / github.com/g3n/engine / ClearForces

Method ClearForces

experimental/physics/simulation.go:243–248  ·  view source on GitHub ↗

ClearForces sets all body forces in the world to zero.

()

Source from the content-addressed store, hash-verified

241
242// ClearForces sets all body forces in the world to zero.
243func (s *Simulation) ClearForces() {
244
245 for i:=0; i < len(s.bodies); i++ {
246 s.bodies[i].ClearForces()
247 }
248}
249
250// AddConstraint adds a constraint to the simulation.
251func (s *Simulation) AddConstraint(c constraint.IConstraint) {

Callers 1

internalStepMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected