Rotation Engine triggered by wrong direction

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

Rotation Engine triggered by wrong direction // Archive: Tech Forum

1  |  

Post by Capng // May 12, 2008, 4:36am

Capng
Total Posts: 8
Rotation Engine rotates the objects on the correct axis but is triggered by motion in the wrong direction.


I have a car, the Bentley. I want the wheels to turn when the car moves forward or backwards just like the Hotrod. What I got was the wheels to turn when the car moves side to side! (Just like the Airplane tutorial) What did I do wrong?


I thought that it could be bad axis rotations. I double checked all axis and normalized them all.

I found in another post to check for pivot objects. I found them and deleted them all. To no avail. What gives?

Post by frootee // May 12, 2008, 4:54am

frootee
Total Posts: 2667
pic
Hi Capng. Could you post the scene file so we could take a look?


Thanks!


Froo

Post by kena // May 12, 2008, 4:54am

kena
Total Posts: 2321
pic
It's a bug. try doing a negative for that rotation.

Post by frootee // May 12, 2008, 4:57am

frootee
Total Posts: 2667
pic
kena, I think changing the sign of the rotation will only cause the wheels to rotate in the opposite direction, when the car is moved side to side. Doing this will not allow the wheels to rotate when the car is moved forward and backward, judging by the problem description. But, I could be wrong. :)

Post by trueBlue // May 12, 2008, 5:16am

trueBlue
Total Posts: 1761
pic
The Rotation Engine scripts for the Hotrod have been modified (Line #63) from the original one found in the Library. You might try replacing your script with the one from the Hotrod. As I recall I took the Hotrod into Model and Decomposed, Repositioned, Set their Axes, and reGrouped all of it's parts. As I recall I also have the Z axis pointing straight out to the front of the Hotrod verses Up. FYI: After you hook up the Rotation script do not go into Model.
Rotation Engine rotates the objects on the correct axis but is triggered by motion in the wrong direction.

I have a car, the Bentley. I want the wheels to turn when the car moves forward or backwards just like the Hotrod. What I got was the wheels to turn when the car moves side to side! (Just like the Airplane tutorial) What did I do wrong?

I thought that it could be bad axis rotations. I double checked all axis and normalized them all.
I found in another post to check for pivot objects. I found them and deleted them all. To no avail. What gives?

Post by Capng // May 13, 2008, 11:46am

Capng
Total Posts: 8
trueBlue - Exactly! You nailed it . . . :banana:


Modify line 63, simple, only problem is that any modification atempt yields "Java Errors". Looks like Java version incompatibility!


You can simply grab the Rotation Engine from the HotRod (already modified) and use it in a new object but as soon as the 2D windows are altered the rotation breaks again. It might work on the Workspace side but not on the Model side . . .


It's too bad too cause now I'm back to spinning my wheels with key frames!


Thanks for the input I can use all the help I can get :rolleyes:
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn