These forums are CLOSED. Please visit the new forums HERE
Velocity to speed |
|
|
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
|
12-12-2006 21:36
Am I right in doing velocity to speed by doing x^2 + y^2 + z^2 = speed^2? I just need to know the speed that an object is traveling, don't care about the direction.
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
12-12-2006 22:44
|
|
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
|
12-13-2006 00:00
not exactly what I was looking for, guess I want I want is to put velocity given from lsl into a single number. I don't care about direction, so for instance, llDetectedVel(0) = <1, 1, 1>, if I just wanted the velocity, not caring that it's going 1 positive in the x, y, z direction, would the velocity be sqrt(3)? I think it would, but would like confirmation on that
![]() |
|
Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
|
12-13-2006 00:07
llVecMag(llGetVel()); will return the straight line Speed of the object
_____________________
My SLExchange shop
Typos are forgiven; desecrating the english language with reckless abandon and necrophilic acts is not. The function is working perfectly fine. It's just not working the way you wanted it to work. |