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

Method GetPosition

DynamicsB2Body.go:172–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170}
171
172func (body B2Body) GetPosition() B2Vec2 {
173 return body.M_xf.P
174}
175
176func (body B2Body) GetAngle() float64 {
177 return body.M_sweep.A

Callers 4

InitializeMethod · 0.80
GetAnchorAMethod · 0.80
GetAnchorBMethod · 0.80
TestCPPComplianceFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestCPPComplianceFunction · 0.64