|
![](/i/fill.gif) |
"Jim Holsenback" <jho### [at] hotmail com> wrote:
> Hello,
>
> I trying to place objects on the slope of a height_field. From the
> documentation I was able to figure out how to get the "Y" direction problem
> solved by using the trace command to place the objects, but now another
> issue has cropped up. Some of the objects are partically covered (see
> attached image). I'm wondering if if vrotate (A,B) A being the camera
> location, and B.z or B.x is would fix this. I'm having a problem figuring
> how to intergrate that into what I've already done. Pointers appreciated
> better than an actual solution as I'll end up understanding it better.
>
To further clarify along with what the others said, vrotate(A,B) doesn't
rotate objects, it rotates vector A by degree rotation B. What you want is
the opposite, you know the resultant vector and the rotated vector (normal,
A), you need to find the corresponding rotation B which is what the
function described by Warp does.
-tgq
Post a reply to this message
|
![](/i/fill.gif) |