Hey guys, anyone that could give me a hand with this?
Height of Point* §* in Triangle (V0, V1, V2):
This traces out “-66.66666666666667”;
The result shouldn’t even be negative…
Obviously somewhere something is wrong… Anyone that could be so kind and give me a hint of what it is?
var N:Vector3D = new Vector3D(50, 150, -50); // Normal
var P:Vector3D = new Vector3D(100, 100, -100); // Point
var V0:Vector3D = new Vector3D(-150, 0, -150); // Vertice 0
trace( (N.x*(P.x-V0.x) + N.z*(P.z-V0.z))/-N.y + V0.y );