WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 1.00 average. Display Modes
  #1  
Old 08-26-2009, 02:52 AM
snoopy78 snoopy78 is offline
Member
 
Join Date: Jul 2009
Posts: 4
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...
Reply With Quote
  #2  
Old 08-28-2009, 02:57 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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()
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 01:39 PM.


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