// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { public static partial class Jolt { public static unsafe partial class PInvoke { [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_Create")] public static partial PathConstraintSettings PathConstraintSettings_Create(); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraint.h:43 ///
/// ///
///
/// /// /// The returned handle is borrowed from its owner; don't Dispose it. /// /// [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_GetRTTI")] public static partial RTTI PathConstraintSettings_GetRTTI(PathConstraintSettings self); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraint.h:43 ///
/// ///
///
[LibraryImport("jolt", EntryPoint = "PathConstraintSettings_CastTo")] public static partial void* PathConstraintSettings_CastTo(PathConstraintSettings self, RTTI rTTI); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraint.h:47 ///
/// virtual void SaveBinaryState(StreamOut &inStream) const override ///
///
/// /// /// See: ConstraintSettings::SaveBinaryState /// /// [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_SaveBinaryState")] public static partial void PathConstraintSettings_SaveBinaryState(PathConstraintSettings self, StreamOut stream); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraint.h:50 ///
/// virtual TwoBodyConstraint * Create(Body &inBody1, Body &inBody2) const override ///
///
/// /// /// Create an instance of this constraint /// /// [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_Create_2")] public static partial TwoBodyConstraint PathConstraintSettings_Create_2(PathConstraintSettings self, Body body1, Body body2); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraint.h:53 ///
/// RefConst<PathConstraintPath> mPath ///
///
/// /// /// The path that constrains the two bodies /// /// [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_GetPath")] public static partial PathConstraintPath PathConstraintSettings_GetPath(PathConstraintSettings self); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraint.h:53 ///
/// RefConst<PathConstraintPath> mPath ///
///
/// /// /// The path that constrains the two bodies /// /// [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_SetPath")] public static partial void PathConstraintSettings_SetPath(PathConstraintSettings self, PathConstraintPath value); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraint.h:56 ///
/// Vec3 mPathPosition = Vec3::sZero() ///
///
/// /// /// The position of the path start relative to world transform of body 1 /// /// [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_GetPathPosition")] public static partial float3 PathConstraintSettings_GetPathPosition(PathConstraintSettings self); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraint.h:56 ///
/// Vec3 mPathPosition = Vec3::sZero() ///
///
/// /// /// The position of the path start relative to world transform of body 1 /// /// [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_SetPathPosition")] public static partial void PathConstraintSettings_SetPathPosition(PathConstraintSettings self, float3 value); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraint.h:59 ///
/// Quat mPathRotation = Quat::sIdentity() ///
///
/// /// /// The rotation of the path start relative to world transform of body 1 /// /// [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_GetPathRotation")] public static partial floatQuat PathConstraintSettings_GetPathRotation(PathConstraintSettings self); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraint.h:59 ///
/// Quat mPathRotation = Quat::sIdentity() ///
///
/// /// /// The rotation of the path start relative to world transform of body 1 /// /// [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_SetPathRotation")] public static partial void PathConstraintSettings_SetPathRotation(PathConstraintSettings self, floatQuat value); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraint.h:62 ///
/// float mPathFraction = 0.0f ///
///
/// /// /// The fraction along the path that corresponds to the initial position of body 2. Usually this is 0, /// the beginning of the path. But if you want to start an object halfway the path you can calculate /// this with mPath->GetClosestPoint(point on path to attach body to). /// /// [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_GetPathFraction")] public static partial float PathConstraintSettings_GetPathFraction(PathConstraintSettings self); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraint.h:62 ///
/// float mPathFraction = 0.0f ///
///
/// /// /// The fraction along the path that corresponds to the initial position of body 2. Usually this is 0, /// the beginning of the path. But if you want to start an object halfway the path you can calculate /// this with mPath->GetClosestPoint(point on path to attach body to). /// /// [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_SetPathFraction")] public static partial void PathConstraintSettings_SetPathFraction(PathConstraintSettings self, float value); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraint.h:65 ///
/// float mMaxFrictionForce = 0.0f ///
///
/// /// /// Maximum amount of friction force to apply (N) when not driven by a motor. /// /// [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_GetMaxFrictionForce")] public static partial float PathConstraintSettings_GetMaxFrictionForce(PathConstraintSettings self); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraint.h:65 ///
/// float mMaxFrictionForce = 0.0f ///
///
/// /// /// Maximum amount of friction force to apply (N) when not driven by a motor. /// /// [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_SetMaxFrictionForce")] public static partial void PathConstraintSettings_SetMaxFrictionForce(PathConstraintSettings self, float value); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraint.h:71 ///
/// EPathRotationConstraintType mRotationConstraintType = EPathRotationConstraintType::Free ///
///
/// /// /// How to constrain the rotation of the body to the path /// /// [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_GetRotationConstraintType")] public static partial EPathRotationConstraintType PathConstraintSettings_GetRotationConstraintType(PathConstraintSettings self); /// /// /// C++: /// Jolt/Physics/Constraints/PathConstraint.h:71 ///
/// EPathRotationConstraintType mRotationConstraintType = EPathRotationConstraintType::Free ///
///
/// /// /// How to constrain the rotation of the body to the path /// /// [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_SetRotationConstraintType")] public static partial void PathConstraintSettings_SetRotationConstraintType(PathConstraintSettings self, EPathRotationConstraintType value); [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_AddRef")] public static partial void PathConstraintSettings_AddRef(PathConstraintSettings self); [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_Release")] public static partial void PathConstraintSettings_Release(PathConstraintSettings self); [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_GetRefCount")] public static partial uint PathConstraintSettings_GetRefCount(PathConstraintSettings self); [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_AsTwoBodyConstraintSettings")] public static partial TwoBodyConstraintSettings PathConstraintSettings_AsTwoBodyConstraintSettings(PathConstraintSettings self); [LibraryImport("jolt", EntryPoint = "PathConstraintSettings_AsConstraintSettings")] public static partial ConstraintSettings PathConstraintSettings_AsConstraintSettings(PathConstraintSettings self); } } }