Game Development Community

TGB Physics Problems - Too Slippery and too Sticky at the same time!

by Deozaan · in Torque Game Builder · 03/21/2009 (8:44 pm) · 2 replies

Is there anywhere I can find good information on what all the Physics options are for?

The documentation tells me what variable type each argument requires, but does not explain what it does. How do Inertia, Mass, Density, Damping, Friction, and Restitution affect physics? What is the Force Scale? What is the benefit of using the "Calculate Mass and Inertia" option?

I've got a problem (using CLAMP on collision) that when the object lands on the ground, it slides left and right as if it were on ice and has no friction. I've tried adjusting Friction to extremely high and extremely low values but it doesn't seem to affect it at all.

Additionally, the object seems to get stuck on corners sometimes. Even on a flat horizontal or completely vertical surface, I can get stuck on them or bounce off them (like riding a bike off a jump). What's also weird is that even though the object isn't moving, the linear velocity keeps increasing (due to gravity, for instance) so once it finally breaks free of being stuck, it shoots off at hundreds of miles per hour.

Take a look at the odd behavior:

TGB Slippery Sticky.

NOTE: When the ship gets stuck on a corner, I am not pressing any buttons almost the entire time it is stopped, with the exception of right at the beginning and sometimes at the end when I need to move in the opposite direction to break free from the sticky corners.

#1
04/05/2011 (9:59 pm)
Did you edit the polygons that make the ship? So instead of a box you get a circle:
http://docs.garagegames.com/tgb/official/content/documentation/Tutorials/Feature/Collisions.html#HeaderLink4
#2
04/05/2011 (10:25 pm)
Yes. As you can see in the video, the collision for the ship is set to a circle.