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

Method getSpeed

src/engineObject.js:437–437  ·  view source on GitHub ↗

Get the speed of this object * @return {number}

()

Source from the content-addressed store, hash-verified

435 /** Get the speed of this object
436 * @return {number} */
437 getSpeed() { return this.velocity.length(); }
438
439 /** Apply acceleration to this object (adjust velocity, not affected by mass)
440 * @param {Vector2} acceleration */

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected