Trying to solve circular motion need velocity last frame. #249
Unanswered
luddensdesir
asked this question in
Help / Questions
Replies: 1 comment
-
I think I'm getting close. Only problem is when I use body.ammo.setMassProps(mass, vec3) the object can still move lineraly but can't rotate anymore using applyLocalTorque. I'm still lost on how to properly set mass of an object. Doing it on object initialization doesn't seem to make a difference. Here's my centripetal code: `
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using update function and trying to solve circular motion problem, so I need an accurate change in time and change in the velocity of the moving body.
I need to get change in V divided by change in T. I couldn't figure out how to get the last velocity so I made a variable outside of the update function and at the end of update set the variable to the old vel. Is this the proper way to get the old velocity in this framework? What is the downside of trying this?
Beta Was this translation helpful? Give feedback.
All reactions