Solver not changing Angular Velocity

Post Reply
Cetra
Posts: 8
Joined: Fri Dec 17, 2010 3:24 am

Solver not changing Angular Velocity

Post by Cetra »

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
Cetra
Posts: 8
Joined: Fri Dec 17, 2010 3:24 am

Re: Solver not changing Angular Velocity

Post by Cetra »

Bumperage. Do you guys need any more information? I would've thought this was another easy question and I am doing something stupid again :D
sparkprime
Posts: 508
Joined: Fri May 30, 2008 2:51 am
Location: Ossining, New York
Contact:

Re: Solver not changing Angular Velocity

Post by sparkprime »

Is your inertia correct?
Cetra
Posts: 8
Joined: Fri Dec 17, 2010 3:24 am

Re: Solver not changing Angular Velocity

Post by Cetra »

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.
Post Reply