1
This commit is contained in:
@@ -36,19 +36,13 @@ namespace BITFALL.Scenes
|
||||
if(EditorApplication.isPlaying is false)
|
||||
return;
|
||||
#endif
|
||||
rigidbodyComponent.Velocity = animator.velocity;
|
||||
rigidbodyComponent.AngularVelocity = animator.angularVelocity;
|
||||
rigidbodyComponent.MoveAndRotate(currentPosition,currentRotation);
|
||||
}
|
||||
private void OnAnimatorMove()
|
||||
{
|
||||
animator.ApplyBuiltinRootMotion();
|
||||
#if UNITY_EDITOR
|
||||
// if (EditorApplication.isPlaying is false)
|
||||
// {
|
||||
// transform.position = animator.rootPosition;
|
||||
// transform.rotation = animator.rootRotation;
|
||||
// }
|
||||
#endif
|
||||
|
||||
currentPosition = animator.rootPosition;
|
||||
currentRotation = animator.rootRotation;
|
||||
}
|
||||
|
Reference in New Issue
Block a user