Game Development Community

Gimbal Mounts?

by Michael Hense · in Torque Game Engine · 08/24/2005 (6:17 am) · 4 replies

Is there currently a simple way to have the camera, or a player avatar maintain it's own orientation while mounted to a rolling and pitching object...

what i'm trying to do is have the 'crewmen' aboard a naval vessel get a better realization of the pitching and rolling movement of the ship they are mounted on by detaching the orientation from the mounted vehicle...

thx

--Mike

#1
08/24/2005 (12:02 pm)
MatrixF newMatrix(1);
newMatrix.setPosition(oldMatrix);

Generates a new matrix at same position but with no rotational component.
#2
08/24/2005 (1:05 pm)
THX BIG TIME Ben...

so straight forward... and invisible to me...

what should i be reading to be able to see this more clearly...
i have no trouble seeing this kinda stuff using other 3d development tools, Blitz3D for instance...

this is basically what i'm trying to do... keep the view stablized while the mount vehicles (the ship)
rolls with the waves...

home.att.net/~subbase2/Kilo.jpg

but for some reason... evrything seems a lil muddled when working with Torque...
maybe muddled is the wrong word... hidden would be a better way to describe it...

oh yeah, i'm trying to do this all in script...


thx again for your help... lemme try your stuff out...

--Mike
#3
08/24/2005 (6:43 pm)
It's all very big and complex. :)

Neat video.
#4
08/24/2005 (7:19 pm)
:)

thx again Ben

--Mike