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

Method SynchronizeFixtures

DynamicsB2Body.go:865–874  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

863}
864
865func (body *B2Body) SynchronizeFixtures() {
866 xf1 := MakeB2Transform()
867 xf1.Q.Set(body.M_sweep.A0)
868 xf1.P = B2Vec2Sub(body.M_sweep.C0, B2RotVec2Mul(xf1.Q, body.M_sweep.LocalCenter))
869
870 broadPhase := &body.M_world.M_contactManager.M_broadPhase
871 for f := body.M_fixtureList; f != nil; f = f.M_next {
872 f.Synchronize(broadPhase, xf1, body.M_xf)
873 }
874}
875
876func (body *B2Body) SetActive(flag bool) {
877

Callers 3

SetTypeMethod · 0.95
SolveMethod · 0.80
SolveTOIMethod · 0.80

Calls 5

MakeB2TransformFunction · 0.85
B2Vec2SubFunction · 0.85
B2RotVec2MulFunction · 0.85
SynchronizeMethod · 0.80
SetMethod · 0.45

Tested by

no test coverage detected