using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace BansheeEngine { /** @addtogroup Physics * @{ */ /// Contains data about a collision of a character controller and another object. [StructLayout(LayoutKind.Sequential), SerializeObject] public partial struct ControllerCollision { /// Contact position. public Vector3 position; /// Contact normal. public Vector3 normal; /// Direction of motion after the hit. public Vector3 motionDir; /// Magnitude of motion after the hit. public float motionAmount; } /** @} */ }