// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// C++: /// Jolt/Physics/Constraints/PointConstraint.h:13 ///
/// class PointConstraintSettings final : public TwoBodyConstraintSettings ///
///
/// /// /// Point constraint settings, used to create a point constraint /// /// [InteropHandle] public readonly partial struct PointConstraintSettings : IDisposable { public static PointConstraintSettings Create() => Jolt.PInvoke.PointConstraintSettings_Create(); /// /// /// C++: /// Jolt/Physics/Constraints/PointConstraint.h:15 ///
/// ///
///
/// /// /// The returned handle is borrowed from its owner; don't Dispose it. /// /// public RTTI GetRTTI() => Jolt.PInvoke.PointConstraintSettings_GetRTTI(this); /// /// /// C++: /// Jolt/Physics/Constraints/PointConstraint.h:15 ///
/// ///
///
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.PointConstraintSettings_CastTo(this, rTTI); /// /// /// C++: /// Jolt/Physics/Constraints/PointConstraint.h:19 ///
/// virtual void SaveBinaryState(StreamOut &inStream) const override ///
///
/// /// /// See: ConstraintSettings::SaveBinaryState /// /// public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.PointConstraintSettings_SaveBinaryState(this, stream); /// /// /// C++: /// Jolt/Physics/Constraints/PointConstraint.h:22 ///
/// virtual TwoBodyConstraint * Create(Body &inBody1, Body &inBody2) const override ///
///
/// /// /// Create an instance of this constraint /// /// public TwoBodyConstraint Create(Body body1, Body body2) => Jolt.PInvoke.PointConstraintSettings_Create_2(this, body1, body2); /// /// /// C++: /// Jolt/Physics/Constraints/PointConstraint.h:25 ///
/// EConstraintSpace mSpace = EConstraintSpace::WorldSpace ///
///
/// /// /// This determines in which space the constraint is setup, all properties below should be in the specified /// space /// /// public EConstraintSpace GetSpace() => Jolt.PInvoke.PointConstraintSettings_GetSpace(this); /// /// /// C++: /// Jolt/Physics/Constraints/PointConstraint.h:25 ///
/// EConstraintSpace mSpace = EConstraintSpace::WorldSpace ///
///
/// /// /// This determines in which space the constraint is setup, all properties below should be in the specified /// space /// /// public void SetSpace(EConstraintSpace value) => Jolt.PInvoke.PointConstraintSettings_SetSpace(this, value); /// /// /// C++: /// Jolt/Physics/Constraints/PointConstraint.h:28 ///
/// RVec3 mPoint1 = RVec3::sZero() ///
///
/// /// /// Body 1 constraint position (space determined by mSpace). /// /// public float3 GetPoint1() => Jolt.PInvoke.PointConstraintSettings_GetPoint1(this); /// /// /// C++: /// Jolt/Physics/Constraints/PointConstraint.h:28 ///
/// RVec3 mPoint1 = RVec3::sZero() ///
///
/// /// /// Body 1 constraint position (space determined by mSpace). /// /// public void SetPoint1(float3 value) => Jolt.PInvoke.PointConstraintSettings_SetPoint1(this, value); /// /// /// C++: /// Jolt/Physics/Constraints/PointConstraint.h:32 ///
/// RVec3 mPoint2 = RVec3::sZero() ///
///
/// /// /// Body 2 constraint position (space determined by mSpace). /// Note: Normally you would set mPoint1 = mPoint2 if the bodies are already placed how you want to constrain them (if mSpace = world space). /// /// public float3 GetPoint2() => Jolt.PInvoke.PointConstraintSettings_GetPoint2(this); /// /// /// C++: /// Jolt/Physics/Constraints/PointConstraint.h:32 ///
/// RVec3 mPoint2 = RVec3::sZero() ///
///
/// /// /// Body 2 constraint position (space determined by mSpace). /// Note: Normally you would set mPoint1 = mPoint2 if the bodies are already placed how you want to constrain them (if mSpace = world space). /// /// public void SetPoint2(float3 value) => Jolt.PInvoke.PointConstraintSettings_SetPoint2(this, value); public void AddRef() => Jolt.PInvoke.PointConstraintSettings_AddRef(this); public void Release() => Jolt.PInvoke.PointConstraintSettings_Release(this); public uint GetRefCount() => Jolt.PInvoke.PointConstraintSettings_GetRefCount(this); public static implicit operator TwoBodyConstraintSettings(PointConstraintSettings value) => Jolt.PInvoke.PointConstraintSettings_AsTwoBodyConstraintSettings(value); public static implicit operator ConstraintSettings(PointConstraintSettings value) => Jolt.PInvoke.PointConstraintSettings_AsConstraintSettings(value); public void Dispose() { if (IsNull()) return; Release(); } } }