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

Method getSpeed

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

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

()

Source from the content-addressed store, hash-verified

397 /** Get the speed of this object
398 * @return {number} */
399 getSpeed() { return this.getLinearVelocity().length(); }
400
401 ///////////////////////////////////////////////////////////////////////////////
402 // physics set functions

Callers 5

beginContactMethod · 0.45
canHitMethod · 0.45
collideWithObjectMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45

Calls 2

getLinearVelocityMethod · 0.95
lengthMethod · 0.80

Tested by

no test coverage detected