Game Development Community

Vehicle Roll / Tilting Action?

by Thomas Oliver · in Torque Game Engine · 02/10/2004 (7:40 pm) · 0 replies

I am working on a little project with the Torque Engine. If you follow my .plan updates then you already know this and probly already know my problem.

I have created a ship (see .plan for pics) and have two rectangles for both the bounding and collison of the model (didnt want to have to dupe the entire model as it wasnt needed).

I used the Zodiac Watercraft Script file as the test script for the ship. I tweaked it alittle for bounancey (so it didnt float up into the after after a wave hits, yet it still bobs up and down with the waves).

Now my question is, does the Torque Engine have built in support for left to right tilting (rolling) action to go along with the waves if one was to hit the side of the ship? Also the same for the front of the ship. Right now the ship just moves up and down with the waves instead of swaying with a tilting action (forward to back, left to right - depending on what direction the wave comes from).

If it does what if any script commands control this action or allows it to happen?