|
Max Pitre
Registered User
Join date: 19 Jul 2006
Posts: 370
|
02-24-2007 07:45
Anyone seen anything the will allow a prim to point into the wind at all times? Is it possible?
|
|
jefferey Heart
Registered User
Join date: 25 Jan 2006
Posts: 45
|
Windsock
02-24-2007 09:08
From: Max Pitre Anyone seen anything the will allow a prim to point into the wind at all times? Is it possible? There is a wind sock out there... I used to have one at my store, you would just have to find a windsock script and make the prim point in the NEGATIVE direction.
|
|
Hutton Richez
Registered User
Join date: 4 Dec 2006
Posts: 11
|
02-25-2007 11:56
llWind(llGetPos()) will return the wind vector at the position of the object.
You'll have to apply some rotation based on the vector.
|
|
Lash Stringfellow
Registered User
Join date: 17 Dec 2006
Posts: 3
|
Wind value VS wind effects
02-26-2007 12:27
One thing you may notice when you implement this: The effects of wind on particles and flexible prims does not exactly match the value returned from llWind. More specifically, the effects of the wind seem to lag behind the value of the wind, usually by several seconds. I created a wind sock that was basically a flexible cylinder mounted to a pole. The pole would turn so that the side with the flex-prim attached would be facing away from the wind so that the sock would be pointing the right way. I also had the base of my simple windsock structure emmiting particles that had the wind feature turned on. What I found was that the llWind value would shift dramatically, causing my windsock to change direction suddenly, then eventually the wind change would begin to have an effect on the sock and particles. It was as if some sort of wind generator algorithm had set a target wind value that the simulator had to meet and that the simulator wind took several seconds to change itself to match. Calling llWind seems to return this target value and not the actual current simulated value. I have no idea if this is actually the case, but it sure seems that way. I added a few tweaks to make the poll turn more naturally, but there was usually some dramatic wind change that would throw it off for a little while. It was just an experiment so I never totally sorted it out. I would love to hear more comments about this. Anyone have more info on this? Back when the "Omega" wiki was working I posted a comment about this, but the only reply was "I'm not surprised."  Good Luck fighting the wind!  -Lash
|
|
Max Pitre
Registered User
Join date: 19 Jul 2006
Posts: 370
|
02-26-2007 19:00
Lash, Can you send me the script on a note card in world? Thanks
|