Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Global components from rotation

Elmer Burger
Registered User
Join date: 5 Sep 2007
Posts: 1
11-20-2007 23:21
I am writing a script for a physics rocket. I have the rotation of the rocket. I would like to convert from rotation to global vector componets. The idea is to make the rocket move along it's long axis by applying the force in the direction of the global components.

I am having trouble figuring out the conversion.

Any help would be appreciated.

Thanks, Elmer
Tyken Hightower
Automagical
Join date: 15 Feb 2006
Posts: 472
11-21-2007 00:00
From: Elmer Burger
I am writing a script for a physics rocket. I have the rotation of the rocket. I would like to convert from rotation to global vector componets. The idea is to make the rocket move along it's long axis by applying the force in the direction of the global components.

I am having trouble figuring out the conversion.

Any help would be appreciated.

Thanks, Elmer

vector forward = llRot2Fwd(llGetRot()), assuming your object's 'forward' axis is its local x axis.
_____________________