Collisions with ConvexHull

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
al9191
Posts: 68
Joined: Wed Nov 16, 2011 11:19 pm

Collisions with ConvexHull

Post by al9191 »

The enemies in the game I am writing move around the world, which consists of obstacles. The enemies are a model made in Maya and put into the game as an FBX file. A ConvexHull is created from this file. Now a simplified version of the model is made as an FBX to create the ConvexHull from instead.

Now in the game, if the player runs into an enemy and pushes them into an obstacle, the enemy gradually pushes up the side of it and flies into the air before landing at a strange angle. However, I would expect that the enemy should be pushed into it and just not be able to go "inside" the obstacle, therefore, not going up into the air as with what happens.

Is there a reason this could be happening?

Thanks.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Collisions with ConvexHull

Post by Norbo »

There's not quite enough information to know for sure. If there's ever a large sudden change in velocity, I would assume it is something to do with fighting constraints and large forces. At some point, one of the combatants fails and the other forces win, launching the object. Penetration compensation may be involved, but it is almost certainly not the core problem.

Making the involved control constraints less rigid or addressing some configuration issue may help.
Post Reply