Game Development Community

Modifying gravit in the rigidShape class

by Shawn Simas · in Torque Game Engine · 03/24/2005 (5:57 am) · 0 replies

I implemented this and it works wonderfully, but there's one thing I need it to do and I've been struggling and struggling and can't get it to work.

Resource is here:
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5495

It's pretty much using most of the vehicle code as an object.

I'm trying to edit the updateForces() so that it will change the gravity to push it against whatever surface it is nearest.

I was able to do this easily with the hoverVehicle class because I could just use the Z normal of the hoverVehicle's transform, but because the ball rotates and spins, it doesn't work so well.

Anyone have any ideas?