Showing missile object

Started by pritom057, July 20, 2010, 12:06:32 PM

Previous topic - Next topic

pritom057

Hi, can anybody give me the idea how can I show missile going to it's target.....

Is there something like ray passing in JPCT??

Can anybody please give me some example??

Thanks in advance...........Pritom

EgonOlsen

Like a trail or something? I'm not 100% sure which effect you are after...

pritom057

Actually I want to move an object one point to another point in straight direction.....

Suppose I want to move a missile from (0,0,0) point to (100,100,100)......

I want to know that is there any function or class that is maintained move object one point to another (I know it is possible increase value of a vector into onDrawFrame function But I want a optimum solution for all object)....

EgonOlsen

Just translate (Object3D.translate(...)) the object by the appropriate vector in each iteration. There's no magic method that does this on its own.