Hi, wonder if anyone can help me...
I have an cylinder (think tree) at the origin oriented so that the top is in
the +y direction and the bottom is located at the origin
I'm using trace to work out the location (and normal) of a heightfield to
"plant" the tree.
Now what I need to do is work out how to use that normal to (initially) make
sure the cylinder is perpendicular to the surface at the point. After I've
got this bit, I'll attenuate the rotation so I can't have horizontal trees.
Can someone please point me in the right direction?
Thanks in advance
Simon
Post a reply to this message
|