Huge Collision Problem! PLEASE HELP!

tobias88888

10-04-2014 21:26:19

Hi!

I use Nxogre but it's not works perfectly. The convex cylinder passes the ball sphere and I really don't know why.
If I'm using more less power or I find the side on the ball is good. Only 25 days left so please help :roll:

Here is a gif of the problem:

gbisocoli

14-04-2014 20:35:45

If the cylinder is a body I can't help you but if you are using a Character Controller for the cylinder it might be a problem with masks, you have to set masks like this:

In private part of cylinder class definition:

enum ControllerShapeGroups
{
NonCollidable = 0, // Things that the character controller can go through such as Ghosts or tiny
// objects like small rocks.
Walls = 1, // Walls, Floors and other static geometry that can't be moved.
Objects = 2 // Boxes, Barrels and other dynamic parts of the scene that can be moved by pushing.
};


In Cylinder constructor:
Critter::AnimatedCharacterDescription desc;
desc.mCollisionMask = (Walls << 1) | (Objects << 1);


If you are not using Animated Character, I don't know why is not colliding :?

tobias88888

16-04-2014 14:32:22

The cylinder is a critter body. Is it the problem?

gbisocoli

16-04-2014 20:26:03

The cylinder is a critter body. Is it the problem?

If the ball and the cylinder are Critter::body they should collide, I don't know what is happening :/

Does the ball collide with other cylinders? with the goal? with the boundaries?