|
#1
|
|||
|
|||
Show flight path of balls
Hi,
is it possible to show the flight path of objects? I want to create 2 balls. And afterthat I want to shoot another ball against the two balls. It is possible to show the trajectories of the balls, before shooting the third ball? I've got a vector which defines the force of the third ball: Code:
info.object.applyForce( vectorB.vec, 1 ) Many thanks... |
#2
|
|||
|
|||
You can use On-The-Fly objects to draw lines. So if you know the beginning and ending point of the balls path, then you could use the following code:
Code:
viz.startlayer(viz.LINES) viz.vertex(beginPoint) viz.vertex(endPoint) line = viz.endlayer() |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Start_position on animation path | ptjt255 | Vizard | 1 | 08-24-2009 11:40 AM |
smoothing a cubic bezier path | just alex | Vizard | 10 | 04-22-2009 01:07 PM |
Problems with interaction of vizact.turn and animation path | Enlil | Vizard | 3 | 11-24-2008 04:23 PM |
speed on animation path | whj | Vizard | 8 | 11-17-2008 07:41 PM |
How to use 'time function' to control the balls appear separately? | znchb | Vizard | 1 | 11-03-2008 12:01 PM |