Dan Medici
Registered User
Join date: 25 Jan 2004
Posts: 132
|
09-14-2004 15:08
Has anyone else had this problem, when trying to rez something like a projectile from a phyical object, sometimes it goes off? For example, I will turn left and shoot the projectiles rapidly, and when I face a certain direction, it rezzes from the left of me, and when I face a certain direction, it rezzes from the right of me. In a certain direction, it rezzes in back of me. I am using llRot2Fwd to find the rezzing vector so can anyone explain what I am doing wrong... OR... If you knew the correct way to rez an object 0.5 meters in front of the avatar when he is moving in a physical script (basically just give me the llRezObject parameters) that would work too... Reguards, Dan Medici
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
09-14-2004 16:05
*sigh* Dan just multiply the rez distance you want in vector form by llGetLocalRot (i think you want to use the local rot and not llGetRot but i don't remember; experiment) you don't need to do crazy vector rotation convertions...
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Dan Medici
Registered User
Join date: 25 Jan 2004
Posts: 132
|
09-14-2004 16:07
Alrighty. Thanks a lot. (No need for the *sigh*, it wasn't that bad of a question  )
|