Log in or register to post comments

3D objects colliding with bumpers

July 19, 2012 - 7:47pm #1

Hi there! 

So my friend decided to make a soccerball game. where the ball is movable by our fingers. we set up a field with 2 goals on its opposite sides and bumpers around the field.

Now, we are having a hard time resetting or putting the ball back in the middle whenever it hits the goals or the bumpers. Please help us do it. We have presentation on Monday. Thank you.

3D objects colliding with bumpers

July 20, 2012 - 6:43am #2

Hi iyasatuito

I think this is more of a "how do I use Unity" question rather than anything to do with Vuforia.

You might like to ask in the Unity forums.

Alternatively given that you have a presentation on Monday a crash course in Unity over the Internet might also help ;)

Essentially you might need to set up colliders within each goal post, such that when the ball hits it, it triggers an event such as the one below:

void OnTriggerEnter(Collider col)

{

     // in here goes your code to reset the ball position

}

HTH, and good luck 
 
N
Log in or register to post comments