Simple Soccer Goal

omniyo

09-10-2012 11:34:39

Hello,

I'm developing a simple soccer game but I don't know what can be the way to implement collisions with the goal having into account the trigger to count the scored goals.
Of course I can split up the goal into three smaller meshes but I don't think it is easy neither a good solution.

Thanks in advance.

omniyo

30-10-2012 18:46:01

any idea please?

I don't know what can I use in order to create the goal which has collisions only where the wood is and not within it.
If necessary to split it into 3 pieces can anyone give me some clues?

thanks

SethRightmer

29-12-2012 21:53:01

Yyou probably want to create a ghost object the size and shape of your goal, and use that. Ghost objects are frequently used where you want to do collision checking, but not physics, as with a character controller. Take a look at the bullet wiki page on collision detection, callbacks, and triggers. Also, look at the character controller demo included with Bullet. I would provide a link, but I just signed up for the forum and that would block this post until a moderator checks it out.

Sure, OgreBullet integrates Ogre and Bullet, but if you want to do more than simply have objects bouncing off each other, you WILL need to learn how to use the underlying bullet libraries.