CSphericalJoint.generated.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. [NativeWrapper]
  25. public LimitConeRange Limit
  26. {
  27. get
  28. {
  29. LimitConeRange temp;
  30. Internal_getLimit(mCachedPtr, out temp);
  31. return temp;
  32. }
  33. set { Internal_setLimit(mCachedPtr, ref value); }
  34. }
  35. /// <summary>Enables or disables a flag that controls the joint's behaviour.</summary>
  36. public void SetFlag(SphericalJointFlag flag, bool enabled)
  37. {
  38. Internal_setFlag(mCachedPtr, flag, enabled);
  39. }
  40. /// <summary>Checks is the specified flag enabled.</summary>
  41. public bool HasFlag(SphericalJointFlag flag)
  42. {
  43. return Internal_hasFlag(mCachedPtr, flag);
  44. }
  45. [MethodImpl(MethodImplOptions.InternalCall)]
  46. private static extern void Internal_getLimit(IntPtr thisPtr, out LimitConeRange __output);
  47. [MethodImpl(MethodImplOptions.InternalCall)]
  48. private static extern void Internal_setLimit(IntPtr thisPtr, ref LimitConeRange limit);
  49. [MethodImpl(MethodImplOptions.InternalCall)]
  50. private static extern void Internal_setFlag(IntPtr thisPtr, SphericalJointFlag flag, bool enabled);
  51. [MethodImpl(MethodImplOptions.InternalCall)]
  52. private static extern bool Internal_hasFlag(IntPtr thisPtr, SphericalJointFlag flag);
  53. }
  54. /** @} */
  55. }