PDA

View Full Version : Camera collisions with duckcourt code


shivanangel
03-14-2008, 11:18 AM
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?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