private void UpdateTransform() { myRigidbody.MovePosition(transformComponent.Data.position.ToVector3()); myRigidbody.MoveRotation(Quaternion.Euler(0f, QuantizationUtils.DequantizeAngle(transformComponent.Data.rotation), 0f)); }
private void SetRotation(uint rotation) { transform.rotation = Quaternion.Euler(0f, QuantizationUtils.DequantizeAngle(rotation), 0f); }