Hey,
Another issue, it seems that the angular velocity of my objects aren't ever changed when they ram into eachother. Their linear velocity gets updated. I've tried 2 shape types btConvexHullShape and btBoxShape but they both don't ever change their angular velocity after a collision. Are there any extra bits I need to add to get this to work?
Thanks
Solver not changing Angular Velocity
Re: Solver not changing Angular Velocity
Bumperage. Do you guys need any more information? I would've thought this was another easy question and I am doing something stupid again
-
- Posts: 508
- Joined: Fri May 30, 2008 2:51 am
- Location: Ossining, New York
- Contact:
Re: Solver not changing Angular Velocity
Is your inertia correct?
Re: Solver not changing Angular Velocity
You win 1000 internets sir!
The btVector3 I was passing to the RigidBodyConstructionInfo constructor for inertia was an origin vector. After playing around for a bit, it looks like a bit of my code was zeroing out my localInertia variable before i could use it properly.
The btVector3 I was passing to the RigidBodyConstructionInfo constructor for inertia was an origin vector. After playing around for a bit, it looks like a bit of my code was zeroing out my localInertia variable before i could use it properly.