|
ZenMondo Wormser
Registered User
Join date: 19 Mar 2006
Posts: 26
|
09-11-2006 16:45
Since the wiki is down, and the mirror doesn't have a page for damping, could someone please explain to me what effect these values have when rotating an object while using llRotLookAt?
My current experiments have something going kind of wonky and crooked... are these values related to that somehow?
Right now I have them both set at 1. What effect does changing these values have?
|
|
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
|
09-11-2006 18:13
llRotLookAt(rotation target, float strength, float damping); Rotates object (aligns forward/x0axis to camera) to target over damping seconds. This function works for both physical and non-physical objects. For non-physical objects, good strength values are around half the mass of the object and good damping values are less then 1/10 of the strength. For physical objects, this function behaves more like llMoveToTarget, where increasing the strength or tau seems to slow the rotation. Good values for physical objects range between .2 and 1 for both parameters. Asymmetrical shapess require smaller damping. Q: Are those recommendations for non-physical objects valid? Or is that any values in there work when it's essentially weightless? A: Obviously any value would work for non-physical objects because there's no friction or gravity to worry about, it's whether or not it looks good that you have to think about when choosing values. Calling llStoLookAt stops the effect of this function. Note: Within the LSL editor, the tooltip for llRotLookAt reads "llRotLookAt(rotation target, F32 strength, F32 damping)". F32 refers to a 32-bit float. In LSL, ALL floats are 32-bit. Compare with llLookAt. thats stright off the wiki from back in 1.7 or 8  hope that helps a little 
|
|
ZenMondo Wormser
Registered User
Join date: 19 Mar 2006
Posts: 26
|
09-11-2006 21:17
yes thats the page for llRotLookAt. What I REALLY want is the page on damping... thank you though. I appreciate it.
How many hours until the new LSL wiki goes online?
|