CBoxCollider.generated.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Physics
  7. * @{
  8. */
  9. /// <summary>Collider with box geometry.</summary>
  10. public partial class BoxCollider : Collider
  11. {
  12. private BoxCollider(bool __dummy0) { }
  13. protected BoxCollider() { }
  14. /// <summary>Determines the extents (half size) of the geometry of the box.</summary>
  15. [ShowInInspector]
  16. public Vector3 Extents
  17. {
  18. get
  19. {
  20. Vector3 temp;
  21. Internal_getExtents(mCachedPtr, out temp);
  22. return temp;
  23. }
  24. set { Internal_setExtents(mCachedPtr, ref value); }
  25. }
  26. /// <summary>Determines the position of the box shape, relative to the component's scene object.</summary>
  27. [ShowInInspector]
  28. public Vector3 Center
  29. {
  30. get
  31. {
  32. Vector3 temp;
  33. Internal_getCenter(mCachedPtr, out temp);
  34. return temp;
  35. }
  36. set { Internal_setCenter(mCachedPtr, ref value); }
  37. }
  38. [MethodImpl(MethodImplOptions.InternalCall)]
  39. private static extern void Internal_setExtents(IntPtr thisPtr, ref Vector3 extents);
  40. [MethodImpl(MethodImplOptions.InternalCall)]
  41. private static extern void Internal_getExtents(IntPtr thisPtr, out Vector3 __output);
  42. [MethodImpl(MethodImplOptions.InternalCall)]
  43. private static extern void Internal_setCenter(IntPtr thisPtr, ref Vector3 center);
  44. [MethodImpl(MethodImplOptions.InternalCall)]
  45. private static extern void Internal_getCenter(IntPtr thisPtr, out Vector3 __output);
  46. }
  47. /** @} */
  48. }