WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Show flight path of balls (https://forum.worldviz.com/showthread.php?t=2233)

snoopy78 08-26-2009 02:52 AM

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 )
Or is it possible to show the flown pathes of the balls, after shooting the thrid ball?

Many thanks...

farshizzo 08-28-2009 02:57 PM

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()



All times are GMT -7. The time now is 05:02 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC