Why are the results always different from my tests?
I am currently developing a Plinko game using Matter.js. I’ve written code to ensure that the result is always determined by the ball’s initial position, without any external influence.
I want to achieve the effect of chain adsorption, but the end cannot stick tightly
I want to achieve a situation where, when I drag the end of the chain to the object on the right, the end sticks to the object (i.e., both sides are parallel). However, I tried adding constraints to two points, and it had no effect, and even a single point constraint didn’t work.
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?