Closed ITeMbI4 closed 3 months ago
A bit of context, why I delete default
from Quaternion
:
When you create a Quaternion
with default
value, it will be - new Quaternion(0f, 0f, 0f, 0f)
.
So, myRotation *= Quaternion.AngleAxis(90f, Vector3.up);
will fail to rotate an object, because rotation is invalid.
So, I just change all zero Quaternion
to a proper one - identity = new Quaternion(0f, 0f, 0f, 1f)
Changes
Pickup.Spawn
,Pickup.CreateAndSpawn
,Projectile.Spawn
,Projectile.CreateAndSpawn
andRagdoll.CreateAndSpawn
Quaternion