//
// 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 = "RackAndPinionConstraintSettings_Create")]
public static partial RackAndPinionConstraintSettings RackAndPinionConstraintSettings_Create();
///
///
/// C++:
/// Jolt/Physics/Constraints/RackAndPinionConstraint.h:15
///
///
///
///
///
///
/// The returned handle is borrowed from its owner; don't Dispose it.
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintSettings_GetRTTI")]
public static partial RTTI RackAndPinionConstraintSettings_GetRTTI(RackAndPinionConstraintSettings self);
///
///
/// C++:
/// Jolt/Physics/Constraints/RackAndPinionConstraint.h:15
///
///
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintSettings_CastTo")]
public static partial void* RackAndPinionConstraintSettings_CastTo(RackAndPinionConstraintSettings self, RTTI rTTI);
///
///
/// C++:
/// Jolt/Physics/Constraints/RackAndPinionConstraint.h:19
///
/// virtual void SaveBinaryState(StreamOut &inStream) const override
///
///
///
///
/// See: ConstraintSettings::SaveBinaryState
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintSettings_SaveBinaryState")]
public static partial void RackAndPinionConstraintSettings_SaveBinaryState(RackAndPinionConstraintSettings self, StreamOut stream);
///
///
/// C++:
/// Jolt/Physics/Constraints/RackAndPinionConstraint.h:23
///
/// virtual TwoBodyConstraint * Create(Body &inBody1, Body &inBody2) const override
///
///
///
///
/// Create an instance of this constraint.
/// Body1 should be the pinion (gear) and body 2 the rack (slider).
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintSettings_Create_2")]
public static partial TwoBodyConstraint RackAndPinionConstraintSettings_Create_2(RackAndPinionConstraintSettings self, Body body1, Body body2);
///
///
/// C++:
/// Jolt/Physics/Constraints/RackAndPinionConstraint.h:30
///
/// void SetRatio(int inNumTeethRack, float inRackLength, int inNumTeethPinion)
///
///
///
///
/// Defines the ratio between the rotation of the pinion and the translation of the rack.
/// The ratio is defined as: PinionRotation(t) = ratio * RackTranslation(t)
/// @param inNumTeethRack Number of teeth that the rack has
/// @param inRackLength Length of the rack
/// @param inNumTeethPinion Number of teeth the pinion has
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintSettings_SetRatio")]
public static partial void RackAndPinionConstraintSettings_SetRatio(RackAndPinionConstraintSettings self, int numTeethRack, float rackLength, int numTeethPinion);
///
///
/// C++:
/// Jolt/Physics/Constraints/RackAndPinionConstraint.h:36
///
/// EConstraintSpace mSpace = EConstraintSpace::WorldSpace
///
///
///
///
/// This determines in which space the constraint is setup, all properties below should be in the
/// specified space
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintSettings_GetSpace")]
public static partial EConstraintSpace RackAndPinionConstraintSettings_GetSpace(RackAndPinionConstraintSettings self);
///
///
/// C++:
/// Jolt/Physics/Constraints/RackAndPinionConstraint.h:36
///
/// EConstraintSpace mSpace = EConstraintSpace::WorldSpace
///
///
///
///
/// This determines in which space the constraint is setup, all properties below should be in the
/// specified space
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintSettings_SetSpace")]
public static partial void RackAndPinionConstraintSettings_SetSpace(RackAndPinionConstraintSettings self, EConstraintSpace value);
///
///
/// C++:
/// Jolt/Physics/Constraints/RackAndPinionConstraint.h:39
///
/// Vec3 mHingeAxis = Vec3::sAxisX()
///
///
///
///
/// Body 1 (pinion) constraint reference frame (space determined by mSpace).
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintSettings_GetHingeAxis")]
public static partial float3 RackAndPinionConstraintSettings_GetHingeAxis(RackAndPinionConstraintSettings self);
///
///
/// C++:
/// Jolt/Physics/Constraints/RackAndPinionConstraint.h:39
///
/// Vec3 mHingeAxis = Vec3::sAxisX()
///
///
///
///
/// Body 1 (pinion) constraint reference frame (space determined by mSpace).
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintSettings_SetHingeAxis")]
public static partial void RackAndPinionConstraintSettings_SetHingeAxis(RackAndPinionConstraintSettings self, float3 value);
///
///
/// C++:
/// Jolt/Physics/Constraints/RackAndPinionConstraint.h:42
///
/// Vec3 mSliderAxis = Vec3::sAxisX()
///
///
///
///
/// Body 2 (rack) constraint reference frame (space determined by mSpace)
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintSettings_GetSliderAxis")]
public static partial float3 RackAndPinionConstraintSettings_GetSliderAxis(RackAndPinionConstraintSettings self);
///
///
/// C++:
/// Jolt/Physics/Constraints/RackAndPinionConstraint.h:42
///
/// Vec3 mSliderAxis = Vec3::sAxisX()
///
///
///
///
/// Body 2 (rack) constraint reference frame (space determined by mSpace)
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintSettings_SetSliderAxis")]
public static partial void RackAndPinionConstraintSettings_SetSliderAxis(RackAndPinionConstraintSettings self, float3 value);
///
///
/// C++:
/// Jolt/Physics/Constraints/RackAndPinionConstraint.h:45
///
/// float mRatio = 1.0f
///
///
///
///
/// Ratio between the rack and pinion, see SetRatio.
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintSettings_GetRatio")]
public static partial float RackAndPinionConstraintSettings_GetRatio(RackAndPinionConstraintSettings self);
///
///
/// C++:
/// Jolt/Physics/Constraints/RackAndPinionConstraint.h:45
///
/// float mRatio = 1.0f
///
///
///
///
/// Ratio between the rack and pinion, see SetRatio.
///
///
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintSettings_SetRatio_2")]
public static partial void RackAndPinionConstraintSettings_SetRatio_2(RackAndPinionConstraintSettings self, float value);
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintSettings_AddRef")]
public static partial void RackAndPinionConstraintSettings_AddRef(RackAndPinionConstraintSettings self);
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintSettings_Release")]
public static partial void RackAndPinionConstraintSettings_Release(RackAndPinionConstraintSettings self);
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintSettings_GetRefCount")]
public static partial uint RackAndPinionConstraintSettings_GetRefCount(RackAndPinionConstraintSettings self);
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintSettings_AsTwoBodyConstraintSettings")]
public static partial TwoBodyConstraintSettings RackAndPinionConstraintSettings_AsTwoBodyConstraintSettings(RackAndPinionConstraintSettings self);
[LibraryImport("jolt", EntryPoint = "RackAndPinionConstraintSettings_AsConstraintSettings")]
public static partial ConstraintSettings RackAndPinionConstraintSettings_AsConstraintSettings(RackAndPinionConstraintSettings self);
}
}
}