mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Remove redundant parenthesis
This commit is contained in:
parent
b57bbf4ec7
commit
875115db2c
@ -1041,7 +1041,7 @@ void InterpolateTransformMode2D()
|
||||
if (m_InterpolateMovement != 0)
|
||||
{
|
||||
Vector2 oldVelocity = m_RigidBody2D.velocity;
|
||||
Vector2 newVelocity = (((Vector2)m_TargetSyncPosition - m_RigidBody2D.position)) * m_InterpolateMovement / GetNetworkSendInterval();
|
||||
Vector2 newVelocity = ((Vector2)m_TargetSyncPosition - m_RigidBody2D.position) * m_InterpolateMovement / GetNetworkSendInterval();
|
||||
if (!m_Grounded && newVelocity.y < 0)
|
||||
{
|
||||
newVelocity.y = oldVelocity.y;
|
||||
|
Loading…
Reference in New Issue
Block a user