CollideAgainstMove
Introduction
CollideAgainstMove values
// Player has a mass of 0, wall has a mass of 1
PlayerInstance.CollideAgainstMove(WallCollision, 0, 1);
// If your Player object does not implement ICollidable, then you will need to use the shape on the Entity:
PlayerInstance.CollisionObject.CollideAgainstMove(WallCollision, 0, 1);// Player has a mass of 1, wall has a mass of 0
PlayerInstance.CollideAgainstMove(BlockInstance, 1, 0);CarInstance1.CollideAgainstMove(CarInstance2, 1, 1);Code Example

Understanding the CollideAgainstMove Implementation



RepositionDirections
Last updated
Was this helpful?