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

Method StoreImpulses

DynamicsB2ContactSolver.go:670–680  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

668}
669
670func (solver *B2ContactSolver) StoreImpulses() {
671 for i := 0; i < solver.M_count; i++ {
672 vc := &solver.M_velocityConstraints[i]
673 manifold := solver.M_contacts[vc.ContactIndex].GetManifold()
674
675 for j := 0; j < vc.PointCount; j++ {
676 manifold.Points[j].NormalImpulse = vc.Points[j].NormalImpulse
677 manifold.Points[j].TangentImpulse = vc.Points[j].TangentImpulse
678 }
679 }
680}
681
682type B2PositionSolverManifold struct {
683 Normal B2Vec2

Callers 1

SolveMethod · 0.80

Calls 1

GetManifoldMethod · 0.65

Tested by

no test coverage detected