MCPcopy
hub / github.com/KilledByAPixel/LittleJS / setAngle

Method setAngle

plugins/box2d.js:422–423  ·  view source on GitHub ↗

Sets the angle * @param {number} angle

(angle)

Source from the content-addressed store, hash-verified

420 /** Sets the angle
421 * @param {number} angle */
422 setAngle(angle)
423 { this.setTransform(box2d.vec2From(this.body.GetPosition()), angle); }
424
425 /** Sets the linear velocity
426 * @param {Vector2} velocity */

Callers

nothing calls this directly

Calls 2

setTransformMethod · 0.95
vec2FromMethod · 0.80

Tested by

no test coverage detected