refactor: Removed Unused Methods
This commit is contained in:
parent
85bad951ff
commit
058c6dafe3
|
@ -79,20 +79,6 @@ public class PhysicsEngine2D : IPhysicsEngine2D
|
||||||
rigidBody.Transform.Rotation += rigidBody.AngularVelocity * intervalDeltaTime;
|
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)
|
private void OnBehaviourAdded(IBehaviourController controller, IBehaviour behaviour)
|
||||||
{
|
{
|
||||||
if (behaviour is not ICollider2D collider2D)
|
if (behaviour is not ICollider2D collider2D)
|
||||||
|
|
Loading…
Reference in New Issue