Jump to content
Sign in to follow this  
SlipperyJim

Rotate Fence To Match Terrain

Recommended Posts

Be gentle with me: noob alert.

I am trying to place a barbed wire fence object on uneven terrain and each time the editor places it at a funky angle. Instead of a combination of proper angle and sinking it into the ground the editor will place the fence giving priority to the lowest part of the terrain. As you can see from the screenshot below one end sticks up too high.

crooked_fence.jpg

Azimuth rotates around a central axis but do we also have control to tilt the objects?

Thanks in advance for not pointing and laughing.

Share this post


Link to post
Share on other sites

Try a this setVectorUp [0,0,1] in the init line of the object.

It aligns an objects with a specific axis (but depending on the object definition it might or might not work).

And welcome to ArmA, Jim!

Share this post


Link to post
Share on other sites
Try a this setVectorUp [0,0,1] in the init line of the object.

Thanks Kronzky for the reply and for the welcome.

I actually did already attempt your suggestion before I posted here but it didn't seem to work properly. From my understanding a valid range that can go in there is between -1 and +1, correct?

I read this thread but the math gave me a headache. Who would have ever guessed math class would be useful 25 years later!? Too bad I spent more time in the school's photography darkroom rather than worrying about math.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×