Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llRezOject with a vel directed down

Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
09-09-2006 13:56
I am trying to rez an object that moves at approximately the speed of gravity to the ground. Would someone point me in the right direction? I have looked and gun scrtips thinking that would show me the way to get it moving and all I would need to is change the speed and direction, but I must have missed someting becasue so far the oject is just sitting without motion in any direction.

Thanks
Vares Solvang
It's all Relative
Join date: 26 Jan 2005
Posts: 2,235
09-09-2006 14:31
The velocity and direction is part of the llRezObject command:

llRezObject("thing5", llGetPos() + <0, 0, 9>, <-1,1,10>, ZERO_ROTATION, 42);

The first set of vectors, <0,0,9>, give the offset for where it will rez the object, in this case 9 meters directly over the object the script is in.

The second set of vectors is the one you want, it sets velocity. So if you want it to move downward try <0,0,-9.8>.

9.8 is the constant I have seen used to make object neutrally boyant, so I presume it's the gravity constant. But you can fine tune it with experimentation to get the effect you want.

Edit: just thought I would point out that the vectors are x,y,z axis numbers in that order, just in case you might not know that. You most likely know that but I don't want to assume ya know and then be wrong. :)

Edit again: I can't remember if the object needs to be physical or not, and can't check with the wiki being down. If it won't work as non-physical, try changing that and see if it helps. :o
_____________________
BamBam Sachertorte
floral engineer
Join date: 12 Jul 2005
Posts: 228
09-10-2006 10:13
The rezzed object has to be physical. You don't need to do anything to get a rezzed physical object to fall to the ground.