Searched refs:collisionNormal (Results 1 – 1 of 1) sorted by relevance
135 Vector2 collisionNormal = vectorPool.allocate(opposingNormal); in resolveCollision() local137 collisionNormal.normalize(); in resolveCollision()142 final float dotRelativeAndNormal = relativeVelocity.dot(collisionNormal); in resolveCollision()152 j /= ((collisionNormal.dot(collisionNormal)) * (1 / getMass())); in resolveCollision()154 Vector2 entity1Adjust = vectorPool.allocate(collisionNormal); in resolveCollision()156 entity1Adjust.set(collisionNormal); in resolveCollision()165 vectorPool.release(collisionNormal); in resolveCollision()174 Vector2 collisionNormal = vectorPool.allocate(opposingNormal); in resolveCollision() local175 collisionNormal.normalize(); in resolveCollision()186 final float dotRelativeAndNormal = relativeVelocity.dot(collisionNormal); in resolveCollision()[all …]