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