Collisions with ConvexHull
Posted: Sat Feb 04, 2012 4:48 pm
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.
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.