ContactPoint.generated.cs 843 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Physics
  7. * @{
  8. */
  9. /// <summary>Information about a single contact point during physics collision.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct ContactPoint
  12. {
  13. /// <summary>Contact point in world space.</summary>
  14. public Vector3 position;
  15. /// <summary>Normal pointing from the second shape to the first shape.</summary>
  16. public Vector3 normal;
  17. /// <summary>
  18. /// Impulse applied to the objects to keep them from penetrating. Divide by simulation step to get the force.
  19. /// </summary>
  20. public float impulse;
  21. /// <summary>Determines how far are the objects. Negative value denotes penetration.</summary>
  22. public float separation;
  23. }
  24. /** @} */
  25. }