|
![](/i/fill.gif) |
Some Yahoo wrote:
> ok, lets pretend I failed 3D calculus...
that's no problem you only need linear algebra ;)
> Sphere is <0,0,0>,100
You can use the trace function to find the intersection point
of the precollision path with the target surface. This will also
give you the normal vector (of course, in the case of a hollow
sphere this will just point to the sphere center). Mirroring the
in vector with the surface normal gives you the (inverted) out
vector. Probably the easiest way to do the mirroring is to
rotate 180 degree about the normal using vaxis_rotate.
Post a reply to this message
|
![](/i/fill.gif) |