CSphereCollider.generated.cs 1.4 KB

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