WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-14-2008, 11:18 AM
shivanangel shivanangel is offline
Member
 
Join Date: Feb 2006
Location: New Jersey
Posts: 182
Camera collisions with duckcourt code

I was attempting to use the duck court code to have players shoot a ball from inside a world. However there are slight differences between the duck demo and my demo that have since caused quite a few problems.

In my demo, the players collide with a landscape, so there collision is turned on. When I go to shoot a ball using the duck court code, it positions the ball directly at my players location, and when it is fired, my character gets quite a jolt of kickback in the form of a push in +Y direction. If I keep doing this I can keep goign upward till I run out of balls.

Any thoughts on how this could be addressed? I saw that the phys line is used at the beginning. Is there a way to move slightly further out along this vector in vizard, or do I have to do that part by scratch?

Thanks,
George
Reply With Quote
  #2  
Old 03-14-2008, 11:43 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Have you tried disabling collisions between the viewpoint and the balls?
Code:
ball.disable(viz.INTERSECTION)
This will only disable collisions between the view and the ball, the ball will still have physics enabled.
Reply With Quote
  #3  
Old 03-14-2008, 11:46 AM
shivanangel shivanangel is offline
Member
 
Join Date: Feb 2006
Location: New Jersey
Posts: 182
You sir, are a Vizard God.

Thank you once again. And with that my demo is nearly complete!

~George
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
Example code for VizCave stefs Vizard 6 01-08-2013 11:43 AM
questions about the duckcourt example Eunice Vizard 4 12-21-2005 10:16 AM
Vizard Crashes: causes are hard to determine, possible problem with the viz code vr_boyko Vizard 1 01-07-2005 10:52 AM


All times are GMT -7. The time now is 04:35 AM.


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