fr.jeanf.universal.player 0.8.36 → 0.8.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -108,11 +108,9 @@ namespace jeanf.universalplayer
|
|
|
108
108
|
Vector3 forward = cameraTransform.forward;
|
|
109
109
|
Vector3 right = cameraTransform.right;
|
|
110
110
|
|
|
111
|
-
// Calculate move direction on XZ plane only
|
|
112
111
|
Vector3 moveDirection = (forward * move.y) + (right * move.x);
|
|
113
112
|
moveDirection.y = 0f;
|
|
114
113
|
|
|
115
|
-
// Move with normalized direction
|
|
116
114
|
controller.Move(moveDirection.normalized * speed * Time.deltaTime);
|
|
117
115
|
}
|
|
118
116
|
|