// // 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 { /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:69 ///
/// VehicleConstraint(Body &inVehicleBody, const VehicleConstraintSettings &inSettings) ///
///
/// /// /// Constructor / destructor /// /// [LibraryImport("jolt", EntryPoint = "VehicleConstraint_Create")] public static partial VehicleConstraint VehicleConstraint_Create(Body vehicleBody, VehicleConstraintSettings settings); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:73 ///
/// virtual EConstraintSubType GetSubType() const override ///
///
/// /// /// Get the type of a constraint /// /// [LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetSubType")] public static partial EConstraintSubType VehicleConstraint_GetSubType(VehicleConstraint self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:76 ///
/// void SetMaxPitchRollAngle(float inMaxPitchRollAngle) ///
///
/// /// /// Defines the maximum pitch/roll angle (rad), can be used to avoid the car from getting upside down. /// The vehicle up direction will stay within a cone centered around the up axis with half top angle /// mMaxPitchRollAngle, set to pi to turn off. /// /// [LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetMaxPitchRollAngle")] public static partial void VehicleConstraint_SetMaxPitchRollAngle(VehicleConstraint self, float maxPitchRollAngle); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:77 ///
/// float GetMaxPitchRollAngle() const ///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetMaxPitchRollAngle")] public static partial float VehicleConstraint_GetMaxPitchRollAngle(VehicleConstraint self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:80 ///
/// void SetVehicleCollisionTester(const VehicleCollisionTester *inTester) ///
///
/// /// /// Set the interface that tests collision between wheel and ground /// /// [LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetVehicleCollisionTester")] public static partial void VehicleConstraint_SetVehicleCollisionTester(VehicleConstraint self, VehicleCollisionTester tester); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:81 ///
/// const VehicleCollisionTester *GetVehicleCollisionTester() const ///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetVehicleCollisionTester")] public static partial VehicleCollisionTester VehicleConstraint_GetVehicleCollisionTester(VehicleConstraint self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:114 ///
/// void OverrideGravity(Vec3Arg inGravity) ///
///
/// /// /// Override gravity for this vehicle. Note that overriding gravity will set the gravity factor of the /// vehicle body to 0 and apply gravity in the PhysicsStepListener instead. /// /// [LibraryImport("jolt", EntryPoint = "VehicleConstraint_OverrideGravity")] public static partial void VehicleConstraint_OverrideGravity(VehicleConstraint self, float3 gravity); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:115 ///
/// bool IsGravityOverridden() const ///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_IsGravityOverridden")] public static partial Brutal.Bool8 VehicleConstraint_IsGravityOverridden(VehicleConstraint self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:116 ///
/// Vec3 GetGravityOverride() const ///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetGravityOverride")] public static partial float3 VehicleConstraint_GetGravityOverride(VehicleConstraint self); /// /// /// Note that resetting the gravity override will restore the gravity factor of the vehicle body to 1. /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:117 ///
/// void ResetGravityOverride() ///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_ResetGravityOverride")] public static partial void VehicleConstraint_ResetGravityOverride(VehicleConstraint self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:120 ///
/// Vec3 GetLocalForward() const ///
///
/// /// /// Get the local space forward vector of the vehicle /// /// [LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetLocalForward")] public static partial float3 VehicleConstraint_GetLocalForward(VehicleConstraint self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:123 ///
/// Vec3 GetLocalUp() const ///
///
/// /// /// Get the local space up vector of the vehicle /// /// [LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetLocalUp")] public static partial float3 VehicleConstraint_GetLocalUp(VehicleConstraint self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:126 ///
/// Vec3 GetWorldUp() const ///
///
/// /// /// Vector indicating the world space up direction (used to limit vehicle pitch/roll), calculated every /// frame by inverting gravity /// /// [LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetWorldUp")] public static partial float3 VehicleConstraint_GetWorldUp(VehicleConstraint self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:129 ///
/// Body * GetVehicleBody() const ///
///
/// /// /// Access to the vehicle body /// /// /// The returned handle is borrowed from its owner; don't Dispose it. /// /// [LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetVehicleBody")] public static partial Body VehicleConstraint_GetVehicleBody(VehicleConstraint self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:132 ///
/// const VehicleController * GetController() const ///
///
/// /// /// Access to the vehicle controller interface (determines acceleration / deceleration) /// /// /// The returned handle is borrowed from its owner; don't Dispose it. /// /// [LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetController")] public static partial VehicleController VehicleConstraint_GetController(VehicleConstraint self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:144 ///
/// Wheel * GetWheel(uint inIdx) ///
///
/// /// /// Get the state of a wheel /// /// /// The returned handle is borrowed from its owner; don't Dispose it. /// /// [LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetWheel")] public static partial Wheel VehicleConstraint_GetWheel(VehicleConstraint self, uint idx); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:152 ///
/// void GetWheelLocalBasis(const Wheel *inWheel, Vec3 &outForward, Vec3 &outUp, Vec3 &outRight) const ///
///
/// /// /// Get the basis vectors for the wheel in local space to the vehicle body (note: basis does not rotate when the wheel rotates around its axis) /// @param inWheel Wheel to fetch basis for /// @param outForward Forward vector for the wheel /// @param outUp Up vector for the wheel /// @param outRight Right vector for the wheel /// /// [LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetWheelLocalBasis")] public static partial void VehicleConstraint_GetWheelLocalBasis(VehicleConstraint self, Wheel wheel, out float3 forward, out float3 up, out float3 right); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:158 ///
/// Mat44 GetWheelLocalTransform(uint inWheelIndex, Vec3Arg inWheelRight, Vec3Arg inWheelUp) const ///
///
/// /// /// Get the transform of a wheel in local space to the vehicle body, returns a matrix that transforms a cylinder aligned with the Y axis in body space (not COM space) /// @param inWheelIndex Index of the wheel to fetch /// @param inWheelRight Unit vector that indicates right in model space of the wheel (so if you only have 1 wheel model, you probably want to specify the opposite direction for the left and right wheels) /// @param inWheelUp Unit vector that indicates up in model space of the wheel /// /// [LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetWheelLocalTransform")] public static partial float4x4 VehicleConstraint_GetWheelLocalTransform(VehicleConstraint self, uint wheelIndex, float3 wheelRight, float3 wheelUp); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:164 ///
/// RMat44 GetWheelWorldTransform(uint inWheelIndex, Vec3Arg inWheelRight, Vec3Arg inWheelUp) const ///
///
/// /// /// Get the transform of a wheel in world space, returns a matrix that transforms a cylinder aligned with the Y axis in world space /// @param inWheelIndex Index of the wheel to fetch /// @param inWheelRight Unit vector that indicates right in model space of the wheel (so if you only have 1 wheel model, you probably want to specify the opposite direction for the left and right wheels) /// @param inWheelUp Unit vector that indicates up in model space of the wheel /// /// [LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetWheelWorldTransform")] public static partial float4x4 VehicleConstraint_GetWheelWorldTransform(VehicleConstraint self, uint wheelIndex, float3 wheelRight, float3 wheelUp); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:174 ///
/// void SetNumStepsBetweenCollisionTestActive(uint inSteps) ///
///
/// /// /// Number of simulation steps between wheel collision tests when the vehicle is active. Default is 1. 0 = never, 1 = every step, 2 = every other step, etc. /// Note that if a vehicle has multiple wheels and the number of steps > 1, the wheels will be tested in a round robin fashion. /// If there are multiple vehicles, the tests will be spread out based on the BodyID of the vehicle. /// If you set this to test less than every step, you may see simulation artifacts. This setting can be used to reduce the cost of simulating vehicles in the distance. /// /// [LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetNumStepsBetweenCollisionTestActive")] public static partial void VehicleConstraint_SetNumStepsBetweenCollisionTestActive(VehicleConstraint self, uint steps); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:175 ///
/// uint GetNumStepsBetweenCollisionTestActive() const ///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetNumStepsBetweenCollisionTestActive")] public static partial uint VehicleConstraint_GetNumStepsBetweenCollisionTestActive(VehicleConstraint self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:182 ///
/// void SetNumStepsBetweenCollisionTestInactive(uint inSteps) ///
///
/// /// /// Number of simulation steps between wheel collision tests when the vehicle is inactive. Default is 1. 0 = never, 1 = every step, 2 = every other step, etc. /// Note that if a vehicle has multiple wheels and the number of steps > 1, the wheels will be tested in a round robin fashion. /// If there are multiple vehicles, the tests will be spread out based on the BodyID of the vehicle. /// This number can be lower than the number of steps when the vehicle is active as the only purpose of this test is /// to allow the vehicle to wake up in response to bodies moving into the wheels but not touching the body of the vehicle. /// /// [LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetNumStepsBetweenCollisionTestInactive")] public static partial void VehicleConstraint_SetNumStepsBetweenCollisionTestInactive(VehicleConstraint self, uint steps); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:183 ///
/// uint GetNumStepsBetweenCollisionTestInactive() const ///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetNumStepsBetweenCollisionTestInactive")] public static partial uint VehicleConstraint_GetNumStepsBetweenCollisionTestInactive(VehicleConstraint self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:186 ///
/// virtual bool IsActive() const override ///
///
/// /// /// Generic interface of a constraint /// /// [LibraryImport("jolt", EntryPoint = "VehicleConstraint_IsActive")] public static partial Brutal.Bool8 VehicleConstraint_IsActive(VehicleConstraint self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:187 ///
/// virtual void NotifyShapeChanged(const BodyID &inBodyID, Vec3Arg inDeltaCOM) override ///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_NotifyShapeChanged")] public static partial void VehicleConstraint_NotifyShapeChanged(VehicleConstraint self, uint bodyID, float3 deltaCOM); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:188 ///
/// virtual void SetupVelocityConstraint(float inDeltaTime) override ///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SetupVelocityConstraint")] public static partial void VehicleConstraint_SetupVelocityConstraint(VehicleConstraint self, float deltaTime); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:189 ///
/// virtual void ResetWarmStart() override ///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_ResetWarmStart")] public static partial void VehicleConstraint_ResetWarmStart(VehicleConstraint self); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:190 ///
/// virtual void WarmStartVelocityConstraint(float inWarmStartImpulseRatio) override ///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_WarmStartVelocityConstraint")] public static partial void VehicleConstraint_WarmStartVelocityConstraint(VehicleConstraint self, float warmStartImpulseRatio); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:191 ///
/// virtual bool SolveVelocityConstraint(float inDeltaTime) override ///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SolveVelocityConstraint")] public static partial Brutal.Bool8 VehicleConstraint_SolveVelocityConstraint(VehicleConstraint self, float deltaTime); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:192 ///
/// virtual bool SolvePositionConstraint(float inDeltaTime, float inBaumgarte) override ///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_SolvePositionConstraint")] public static partial Brutal.Bool8 VehicleConstraint_SolvePositionConstraint(VehicleConstraint self, float deltaTime, float baumgarte); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:193 ///
/// virtual void BuildIslands(uint32 inConstraintIndex, IslandBuilder &ioBuilder, BodyManager &inBodyManager) override ///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_BuildIslands")] public static partial void VehicleConstraint_BuildIslands(VehicleConstraint self, uint constraintIndex, IslandBuilder builder, BodyManager bodyManager); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:194 ///
/// virtual uint BuildIslandSplits(LargeIslandSplitter &ioSplitter) const override ///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_BuildIslandSplits")] public static partial uint VehicleConstraint_BuildIslandSplits(VehicleConstraint self, LargeIslandSplitter splitter); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:196 ///
/// virtual void DrawConstraint(DebugRenderer *inRenderer) const override ///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_DrawConstraint")] public static partial void VehicleConstraint_DrawConstraint(VehicleConstraint self, DebugRenderer renderer); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:197 ///
/// virtual void DrawConstraintLimits(DebugRenderer *inRenderer) const override ///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_DrawConstraintLimits")] public static partial void VehicleConstraint_DrawConstraintLimits(VehicleConstraint self, DebugRenderer renderer); /// /// /// C++: /// Jolt/Physics/Vehicle/VehicleConstraint.h:201 ///
/// virtual Ref<ConstraintSettings> GetConstraintSettings() const override ///
///
[LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetConstraintSettings")] public static partial ConstraintSettings VehicleConstraint_GetConstraintSettings(VehicleConstraint self); [LibraryImport("jolt", EntryPoint = "VehicleConstraint_AddRef")] public static partial void VehicleConstraint_AddRef(VehicleConstraint self); [LibraryImport("jolt", EntryPoint = "VehicleConstraint_Release")] public static partial void VehicleConstraint_Release(VehicleConstraint self); [LibraryImport("jolt", EntryPoint = "VehicleConstraint_GetRefCount")] public static partial uint VehicleConstraint_GetRefCount(VehicleConstraint self); [LibraryImport("jolt", EntryPoint = "VehicleConstraint_AsConstraint")] public static partial Constraint VehicleConstraint_AsConstraint(VehicleConstraint self); [LibraryImport("jolt", EntryPoint = "VehicleConstraint_AsPhysicsStepListener")] public static partial PhysicsStepListener VehicleConstraint_AsPhysicsStepListener(VehicleConstraint self); } } }