CSphericalJoint.generated.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Physics
  7. * @{
  8. */
  9. /// <summary>
  10. /// A spherical joint removes all translational degrees of freedom but allows all rotational degrees of freedom.
  11. /// Essentially this ensures that the anchor points of the two bodies are always coincident. Bodies are allowed to rotate
  12. /// around the anchor points, and their rotatation can be limited by an elliptical cone.
  13. /// </summary>
  14. public partial class SphericalJoint : Joint
  15. {
  16. private SphericalJoint(bool __dummy0) { }
  17. protected SphericalJoint() { }
  18. /// <summary>
  19. /// Determines the limit of the joint. This clamps the rotation inside an eliptical angular cone. You must enable limit
  20. /// flag on the joint in order for this to be recognized.
  21. /// </summary>
  22. [ShowInInspector]
  23. public LimitConeRange Limit
  24. {
  25. get
  26. {
  27. LimitConeRange temp;
  28. Internal_getLimit(mCachedPtr, out temp);
  29. return temp;
  30. }
  31. set { Internal_setLimit(mCachedPtr, ref value); }
  32. }
  33. /// <summary>Enables or disables a flag that controls the joint's behaviour.</summary>
  34. public void SetFlag(SphericalJointFlag flag, bool enabled)
  35. {
  36. Internal_setFlag(mCachedPtr, flag, enabled);
  37. }
  38. /// <summary>Checks is the specified flag enabled.</summary>
  39. public bool HasFlag(SphericalJointFlag flag)
  40. {
  41. return Internal_hasFlag(mCachedPtr, flag);
  42. }
  43. [MethodImpl(MethodImplOptions.InternalCall)]
  44. private static extern void Internal_getLimit(IntPtr thisPtr, out LimitConeRange __output);
  45. [MethodImpl(MethodImplOptions.InternalCall)]
  46. private static extern void Internal_setLimit(IntPtr thisPtr, ref LimitConeRange limit);
  47. [MethodImpl(MethodImplOptions.InternalCall)]
  48. private static extern void Internal_setFlag(IntPtr thisPtr, SphericalJointFlag flag, bool enabled);
  49. [MethodImpl(MethodImplOptions.InternalCall)]
  50. private static extern bool Internal_hasFlag(IntPtr thisPtr, SphericalJointFlag flag);
  51. }
  52. /** @} */
  53. }