Relative Content

Tag Archive for matter.js

What’s the difference between Body.setAngularVelocity and Body.setAngularSpeed

Usually the term velocity includes a direction and a magnitude component, but setAngularVelocity only takes a scalar value. I see setAngularVelocity also sets angularSpeed, but as an absolute value, so maybe angularSpeed is the direction portion? And angularVelocity is the magnitude/how fast(speed?!)? Is velocity a vector in that the sign is the direction and the absolute value is the magnitude/speed?