If you haven't gotten too far in your engine development, you really should have a generic entity that respects the physics system. This includes all movable and collidable objects in your game. If your player can fall and stand on the ground, bump into other objects or walls, then I presume there are other objects too that share this same functionality. These objects should inherit from a common parent. This is where you put your collision code.
alniteMember Since 07 Nov 2002
Offline Last Active May 22 2015 11:42 PM