WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Camera collisions with duckcourt code (https://forum.worldviz.com/showthread.php?t=1401)

shivanangel 03-14-2008 11:18 AM

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

farshizzo 03-14-2008 11:43 AM

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.

shivanangel 03-14-2008 11:46 AM

You sir, are a Vizard God.

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

~George


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

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