|
|
Thanks a lot! I copied all information about TRACE for my reference.
Great spirit here in this group!
On 07.04.2018 19:31, Bald Eagle wrote:
> trace(OBJECT_IDENTIFIER, A, B, [VECTOR_IDENTIFIER]). trace helps you find
ing the
> exact location of a ray intersecting with an object's surface. It traces
a ray
> beginning at the point A in the direction specified by the vector B. If t
he ray
> hits the specified object, this function returns the coordinate where the
ray
> intersected the object. If not, it returns <0,0,0>. If a fourth parameter
in the
> form of a vector identifier is provided, the normal of the object at the
> intersection point (not including any normal perturbations due to texture
s) is
> stored into that vector. If no intersection was found, the normal vector
is
> reset to <0,0,0>.
>
> Add vector identifier to your trace () and you'll get the normal vector b
ack.
> Then you can calculate the angle between that and any axis, or the point
that
> you're tracing from.
---
http://www.avg.com
Post a reply to this message
|
|