Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
|
12-20-2009 04:59
I have an object that fires another object at speed
The problem is it's taking the object that fires it's velocity so if Object Rezzer is going left the object rezzes and goes foward with the rez velocity but it also goes left.
I cannot edit the rezzer itself just feed is a velocity.
I can edit the object that's rezzed.
Is there anyway to Null it's X, Y Local velocity?
I can use 0 rez velocity and put something in the object that fires, but llSetForce seems to suck at it and the projectile often spins and stuff insted of going straight.
--
Or even a function that will stop the rotation, preventing a physical object from spinning at all, and just going straight?
--
Ok I've solved this, I was being stupid.
Although still would kinda like to know.
1. Is there a way to make it impossible for an physical object to rotate.
2. What the thing that turns a negative number into a posative and postative to a negative? (I've used it before but can't remember)
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
12-20-2009 15:18
From: Nyx Alsop 1. Is there a way to make it impossible for an physical object to rotate. check out llSetStatus and the fun things it sets and gets From: someone 2. What the thing that turns a negative number into a posative and postative to a negative? (I've used it before but can't remember) uhm.... negation?
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
12-20-2009 16:49
I *= -1;
and for an integer switch: if(I = !I)
will only fire every other time.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|