refactor: Removed Unused Methods

This commit is contained in:
Syntriax 2024-01-26 19:28:32 +03:00
parent 85bad951ff
commit 058c6dafe3
1 changed files with 0 additions and 14 deletions

View File

@ -79,20 +79,6 @@ public class PhysicsEngine2D : IPhysicsEngine2D
rigidBody.Transform.Rotation += rigidBody.AngularVelocity * intervalDeltaTime;
}
private static void CacheRotations(List<IRigidBody2D> rigidBodies, List<float> rotations)
{
rotations.Clear();
for (int i = 0; i < rigidBodies.Count; i++)
rotations.Add(rigidBodies[i].Transform.Rotation);
}
private static void CachePositions(List<IRigidBody2D> rigidBodies, List<Vector2D> positions)
{
positions.Clear();
for (int i = 0; i < rigidBodies.Count; i++)
positions.Add(rigidBodies[i].Transform.Position);
}
private void OnBehaviourAdded(IBehaviourController controller, IBehaviour behaviour)
{
if (behaviour is not ICollider2D collider2D)