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

Method SynchronizeTransform

DynamicsB2Body.go:455–458  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

453}
454
455func (body *B2Body) SynchronizeTransform() {
456 body.M_xf.Q.Set(body.M_sweep.A)
457 body.M_xf.P = B2Vec2Sub(body.M_sweep.C, B2RotVec2Mul(body.M_xf.Q, body.M_sweep.LocalCenter))
458}
459
460func (body *B2Body) Advance(alpha float64) {
461 // Advance to the new safe time. This doesn't sync the broad-phase.

Callers 3

SolveTOIMethod · 0.80
SolveMethod · 0.80
SolveTOIMethod · 0.80

Calls 3

B2Vec2SubFunction · 0.85
B2RotVec2MulFunction · 0.85
SetMethod · 0.45

Tested by

no test coverage detected