RigidbodyMoverState.cs (640B)
1 using UnityEngine; 2 3 namespace Slimecing.Environment.Moving 4 { 5 [System.Serializable] 6 public struct RigidbodyMoverState 7 { 8 public Vector3 position { get; set; } 9 public Quaternion rotation { get; set; } 10 public Vector3 velocity { get; set; } 11 public Vector3 angularVelocity { get; set; } 12 13 public RigidbodyMoverState(Vector3 position, Quaternion rotation, Vector3 velocity, Vector3 angularVelocity) 14 { 15 this.position = position; 16 this.rotation = rotation; 17 this.velocity = velocity; 18 this.angularVelocity = angularVelocity; 19 } 20 } 21 }