CSphereCollider.generated.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. [ShowInInspector]
  11. public partial class SphereCollider : Collider
  12. {
  13. private SphereCollider(bool __dummy0) { }
  14. protected SphereCollider() { }
  15. /// <summary>Determines the radius of the sphere geometry.</summary>
  16. [ShowInInspector]
  17. [NativeWrapper]
  18. public float Radius
  19. {
  20. get { return Internal_getRadius(mCachedPtr); }
  21. set { Internal_setRadius(mCachedPtr, value); }
  22. }
  23. /// <summary>Determines position of the sphere shape, relative to the component's scene object.</summary>
  24. [ShowInInspector]
  25. [NativeWrapper]
  26. public Vector3 Center
  27. {
  28. get
  29. {
  30. Vector3 temp;
  31. Internal_getCenter(mCachedPtr, out temp);
  32. return temp;
  33. }
  34. set { Internal_setCenter(mCachedPtr, ref value); }
  35. }
  36. [MethodImpl(MethodImplOptions.InternalCall)]
  37. private static extern void Internal_setRadius(IntPtr thisPtr, float radius);
  38. [MethodImpl(MethodImplOptions.InternalCall)]
  39. private static extern float Internal_getRadius(IntPtr thisPtr);
  40. [MethodImpl(MethodImplOptions.InternalCall)]
  41. private static extern void Internal_setCenter(IntPtr thisPtr, ref Vector3 center);
  42. [MethodImpl(MethodImplOptions.InternalCall)]
  43. private static extern void Internal_getCenter(IntPtr thisPtr, out Vector3 __output);
  44. }
  45. /** @} */
  46. }