|*how do i find the point10 px in front of the obect in any direction?* Can you elaborate ? Do you mean how to find the position vector of a point which is located 10 px from the center of the object? It depends really if you need the distance to be an absolute ,that is you have to calculate point's vector length.(See Vector3D length property) Or if you need to get the distance on a particular 2 axis than you can just drop the third and use the good old Pythagoras theorem.
On Sun, May 29, 2011 at 3:05 PM, andrew barry <[email protected]> wrote: > if have an rectangular 3D object . the object moves forward and back > and rotates left and right. > > Now if the middle point of the object is designated at x=0,y=0,z=0 > then how do i find the point10 px in front of the obect in any > direction? > > if i simply say this point will be object position.z + =10 then this > is only 10px in front of the object if it faces one direction. -- Michael Ivanov ,Programmer Neurotech Solutions Ltd. Flex|Air |3D|Unity| www.neurotechresearch.com http://blog.alladvanced.net Tel:054-4962254 [email protected] [email protected]
