コード例 #1
0
 /// <summary>
 /// Gets the correction vector to resolve a collision between two ICollidable objects.
 /// </summary>
 /// <param name="A">The ICollidable object we want to push out.</param>
 /// <param name="B">The ICollidable object we resolve the collision against.</param>
 /// <returns>A CorrectionVector2 that details the movement required to resolve the collision.</returns>
 private CorrectionVector2 GetCorrectionVector(ICollisionComponent A, ICollisionComponent B)
 {
     return A.GetCorrectionVector(B);
 }
コード例 #2
0
 /// <summary>
 /// Gets the correction vector to resolve a collision between two ICollidable objects.
 /// </summary>
 /// <param name="A">The ICollidable object we want to push out.</param>
 /// <param name="B">The ICollidable object we resolve the collision against.</param>
 /// <returns>A CorrectionVector2 that details the movement required to resolve the collision.</returns>
 private CorrectionVector2 GetCorrectionVector(ICollisionComponent A, ICollisionComponent B)
 {
     return(A.GetCorrectionVector(B));
 }