CSphericalJoint.generated.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. [ShowInInspector]
  15. public partial class SphericalJoint : Joint
  16. {
  17. private SphericalJoint(bool __dummy0) { }
  18. protected SphericalJoint() { }
  19. /// <summary>
  20. /// Determines the limit of the joint. This clamps the rotation inside an eliptical angular cone. You must enable limit
  21. /// flag on the joint in order for this to be recognized.
  22. /// </summary>
  23. [ShowInInspector]
  24. public LimitConeRange Limit
  25. {
  26. get
  27. {
  28. LimitConeRange temp;
  29. Internal_getLimit(mCachedPtr, out temp);
  30. return temp;
  31. }
  32. set { Internal_setLimit(mCachedPtr, ref value); }
  33. }
  34. /// <summary>Enables or disables a flag that controls the joint's behaviour.</summary>
  35. public void SetFlag(SphericalJointFlag flag, bool enabled)
  36. {
  37. Internal_setFlag(mCachedPtr, flag, enabled);
  38. }
  39. /// <summary>Checks is the specified flag enabled.</summary>
  40. public bool HasFlag(SphericalJointFlag flag)
  41. {
  42. return Internal_hasFlag(mCachedPtr, flag);
  43. }
  44. [MethodImpl(MethodImplOptions.InternalCall)]
  45. private static extern void Internal_getLimit(IntPtr thisPtr, out LimitConeRange __output);
  46. [MethodImpl(MethodImplOptions.InternalCall)]
  47. private static extern void Internal_setLimit(IntPtr thisPtr, ref LimitConeRange limit);
  48. [MethodImpl(MethodImplOptions.InternalCall)]
  49. private static extern void Internal_setFlag(IntPtr thisPtr, SphericalJointFlag flag, bool enabled);
  50. [MethodImpl(MethodImplOptions.InternalCall)]
  51. private static extern bool Internal_hasFlag(IntPtr thisPtr, SphericalJointFlag flag);
  52. }
  53. /** @} */
  54. }