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

Function NewB2TransformByPositionAndRotation

CommonB2Math.go:440–443  ·  view source on GitHub ↗
(position B2Vec2, rotation B2Rot)

Source from the content-addressed store, hash-verified

438}
439
440func NewB2TransformByPositionAndRotation(position B2Vec2, rotation B2Rot) *B2Transform {
441 res := MakeB2TransformByPositionAndRotation(position, rotation)
442 return &res
443}
444
445/// Set this to the identity transform.
446func (t *B2Transform) SetIdentity() {

Callers

nothing calls this directly

Tested by

no test coverage detected