ControllerCollision.generated.cs 691 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Physics
  7. * @{
  8. */
  9. /// <summary>Contains data about a collision of a character controller and another object.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct ControllerCollision
  12. {
  13. /// <summary>Contact position.</summary>
  14. public Vector3 position;
  15. /// <summary>Contact normal.</summary>
  16. public Vector3 normal;
  17. /// <summary>Direction of motion after the hit.</summary>
  18. public Vector3 motionDir;
  19. /// <summary>Magnitude of motion after the hit.</summary>
  20. public float motionAmount;
  21. }
  22. /** @} */
  23. }