| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using System;
- using System.Runtime.CompilerServices;
- using System.Runtime.InteropServices;
- namespace BansheeEngine
- {
- /** @addtogroup Physics
- * @{
- */
- /// <summary>A collider with sphere geometry.</summary>
- public partial class SphereCollider : Collider
- {
- private SphereCollider(bool __dummy0) { }
- protected SphereCollider() { }
- /// <summary>Determines the radius of the sphere geometry.</summary>
- [ShowInInspector]
- public float Radius
- {
- get { return Internal_getRadius(mCachedPtr); }
- set { Internal_setRadius(mCachedPtr, value); }
- }
- /// <summary>Determines position of the sphere shape, relative to the component's scene object.</summary>
- [ShowInInspector]
- public Vector3 Center
- {
- get
- {
- Vector3 temp;
- Internal_getCenter(mCachedPtr, out temp);
- return temp;
- }
- set { Internal_setCenter(mCachedPtr, ref value); }
- }
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_setRadius(IntPtr thisPtr, float radius);
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern float Internal_getRadius(IntPtr thisPtr);
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_setCenter(IntPtr thisPtr, ref Vector3 center);
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_getCenter(IntPtr thisPtr, out Vector3 __output);
- }
- /** @} */
- }
|