Jessica Ingmann
Lv. 23 Batcase
Join date: 8 Oct 2005
Posts: 35
|
11-11-2005 06:46
Alright, here's the drill, folks. . . I'm still fiddling with my Power Rings stuff(for those that remember). Now, I have a "gun" that spits out Power Rings, but. . .once the rings land, despite having locked the X and Y coordinates, the Rings are crooked. Tilted. What I want to do is, when this object hits the ground(or ground-like substitute), I want to to automatically reset the Y interger to 180 or 0. Either. Is there a simple llCommand do to that or some simple way to do this? I've already tried llApplyRotationalImpulse, but that didn't seem to work at all. Someone in Live Help suggested a heinous assortment of llTarget commands or something silly like that. Any help would, once again, be appreciated.
Thanks.
_____________________
http://www.ninthdimension.net/motg2 -- Music of the Game II: Café De La Luna
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
11-11-2005 07:05
OK, this is simplistic, but I'm simple... vector myrot = llRot2Euler(llGetRot()); myrot.y = 0.0; llRotLookAt(llRot2Euler(myrot), 0.2, 0.1);
|
Kayla Stonecutter
Scripting Oncalupen
Join date: 9 Sep 2005
Posts: 224
|
11-13-2005 07:01
From: Jillian Callahan OK, this is simplistic, but I'm simple... vector myrot = llRot2Euler(llGetRot()); myrot.y = 0.0; llRotLookAt(llRot2Euler(myrot), 0.2, 0.1); Last line should be: llRotLookAt(llEuler2Rot(myrot), 0.2, 0.1);  And simple is good.
|