Sinistrad Cunningham
Registered User
Join date: 7 Sep 2004
Posts: 8
|
08-22-2005 02:34
Ok so I am trying to make a script that dampens the motion of a moving ACTIVE object. I have had only limited success. I have run into two major issues. First, the falloff for distance does not seem to conform to anything reasonable. I wonder if the Lindens know who Newton is? (close objects get blasted off at unbelievable speed while far away ones barely get nudged at all) I can't seem to find a magic number or power to evenly negate the effects of distance on my push command. Second, I can't seem to find any way to work out the masses of the two object in such a manner as to yield an even force no matter what the target mass is. Basically, what I need is some formula or formulas, which will allow me to move a target object at a set speed no matter what the pushers mass is, the target mass is, or what the distance between the two is. Once I have that formula I can figure out how to dampen the motion of the targeted object on my own. Hopefully I have explained this properly. If you need any more info just ask, but please help! 
|
Gurgon Grumby
Registered User
Join date: 2 Dec 2004
Posts: 24
|
08-22-2005 11:48
Power drop off from llPushObject is exponential like radiant enegry in real life, therefor factor in the vector distance to the target times itself (or to the power of 2) to compensate for range.
|
Sinistrad Cunningham
Registered User
Join date: 7 Sep 2004
Posts: 8
|
08-23-2005 21:22
I tried that, it doesnt seem to work. I ended up using a power of like 10 in one of my scripts just to get it to move things at all which were far away. I will try it again tho maybe I didnt set it up right. What about mass tho? Thats crucial as well.
|
Cid Jacobs
Theoretical Meteorologist
Join date: 18 Jul 2004
Posts: 4,304
|
08-24-2005 05:18
llVecDistllGetObjectMassYou'll have to play around with the numbers to get it to always move the same speed you want, and even then it wont be exact. PushObject is pretty random at times. If you need anymore help look me up in world.
|