// // 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/Wheel.h:51 ///
/// explicit Wheel(const WheelSettings &inSettings) ///
///
/// /// /// Constructor / destructor /// /// [LibraryImport("jolt", EntryPoint = "Wheel_Create")] public static partial Wheel Wheel_Create(WheelSettings settings); [LibraryImport("jolt", EntryPoint = "Wheel_Destroy")] public static partial void Wheel_Destroy(Wheel self); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:55 ///
/// const WheelSettings * GetSettings() const ///
///
/// /// /// Get settings for the wheel /// /// [LibraryImport("jolt", EntryPoint = "Wheel_GetSettings")] public static partial WheelSettings Wheel_GetSettings(Wheel self); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:58 ///
/// float GetAngularVelocity() const ///
///
/// /// /// Get the angular velocity (rad/s) for this wheel, note that positive means the wheel is rotating such /// that the car moves forward /// /// [LibraryImport("jolt", EntryPoint = "Wheel_GetAngularVelocity")] public static partial float Wheel_GetAngularVelocity(Wheel self); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:61 ///
/// void SetAngularVelocity(float inVel) ///
///
/// /// /// Update the angular velocity (rad/s) /// /// [LibraryImport("jolt", EntryPoint = "Wheel_SetAngularVelocity")] public static partial void Wheel_SetAngularVelocity(Wheel self, float vel); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:64 ///
/// float GetRotationAngle() const ///
///
/// /// /// Get the current rotation angle of the wheel in radians [0, 2 pi] /// /// [LibraryImport("jolt", EntryPoint = "Wheel_GetRotationAngle")] public static partial float Wheel_GetRotationAngle(Wheel self); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:67 ///
/// void SetRotationAngle(float inAngle) ///
///
/// /// /// Set the current rotation angle of the wheel in radians [0, 2 pi] /// /// [LibraryImport("jolt", EntryPoint = "Wheel_SetRotationAngle")] public static partial void Wheel_SetRotationAngle(Wheel self, float angle); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:70 ///
/// float GetSteerAngle() const ///
///
/// /// /// Get the current steer angle of the wheel in radians [-pi, pi], positive is to the left /// /// [LibraryImport("jolt", EntryPoint = "Wheel_GetSteerAngle")] public static partial float Wheel_GetSteerAngle(Wheel self); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:73 ///
/// void SetSteerAngle(float inAngle) ///
///
/// /// /// Set the current steer angle of the wheel in radians [-pi, pi] /// /// [LibraryImport("jolt", EntryPoint = "Wheel_SetSteerAngle")] public static partial void Wheel_SetSteerAngle(Wheel self, float angle); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:76 ///
/// inline bool HasContact() const ///
///
/// /// /// Returns true if the wheel is touching an object /// /// [LibraryImport("jolt", EntryPoint = "Wheel_HasContact")] public static partial Brutal.Bool8 Wheel_HasContact(Wheel self); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:79 ///
/// BodyID GetContactBodyID() const ///
///
/// /// /// Returns the body ID of the body that this wheel is touching /// /// [LibraryImport("jolt", EntryPoint = "Wheel_GetContactBodyID")] public static partial uint Wheel_GetContactBodyID(Wheel self); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:82 ///
/// SubShapeID GetContactSubShapeID() const ///
///
/// /// /// Returns the sub shape ID where we're contacting the body /// /// [LibraryImport("jolt", EntryPoint = "Wheel_GetContactSubShapeID")] public static partial uint Wheel_GetContactSubShapeID(Wheel self); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:85 ///
/// RVec3 GetContactPosition() const ///
///
/// /// /// Returns the current contact position in world space (note by the time you call this the vehicle has /// moved) /// /// [LibraryImport("jolt", EntryPoint = "Wheel_GetContactPosition")] public static partial float3 Wheel_GetContactPosition(Wheel self); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:88 ///
/// Vec3 GetContactPointVelocity() const ///
///
/// /// /// Velocity of the contact point (m / s, not relative to the wheel but in world space) /// /// [LibraryImport("jolt", EntryPoint = "Wheel_GetContactPointVelocity")] public static partial float3 Wheel_GetContactPointVelocity(Wheel self); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:91 ///
/// Vec3 GetContactNormal() const ///
///
/// /// /// Returns the current contact normal in world space (note by the time you call this the vehicle has /// moved) /// /// [LibraryImport("jolt", EntryPoint = "Wheel_GetContactNormal")] public static partial float3 Wheel_GetContactNormal(Wheel self); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:94 ///
/// Vec3 GetContactLongitudinal() const ///
///
/// /// /// Returns longitudinal direction (direction along the wheel relative to floor) in world space (note by /// the time you call this the vehicle has moved) /// /// [LibraryImport("jolt", EntryPoint = "Wheel_GetContactLongitudinal")] public static partial float3 Wheel_GetContactLongitudinal(Wheel self); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:97 ///
/// Vec3 GetContactLateral() const ///
///
/// /// /// Returns lateral direction (sideways direction) in world space (note by the time you call this the /// vehicle has moved) /// /// [LibraryImport("jolt", EntryPoint = "Wheel_GetContactLateral")] public static partial float3 Wheel_GetContactLateral(Wheel self); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:100 ///
/// float GetSuspensionLength() const ///
///
/// /// /// Get the length of the suspension for a wheel (m) relative to the suspension attachment point (hard /// point) /// /// [LibraryImport("jolt", EntryPoint = "Wheel_GetSuspensionLength")] public static partial float Wheel_GetSuspensionLength(Wheel self); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:103 ///
/// bool HasHitHardPoint() const ///
///
/// /// /// Check if the suspension hit its upper limit /// /// [LibraryImport("jolt", EntryPoint = "Wheel_HasHitHardPoint")] public static partial Brutal.Bool8 Wheel_HasHitHardPoint(Wheel self); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:106 ///
/// float GetSuspensionLambda() const ///
///
/// /// /// Get the total impulse (N s) that was applied by the suspension /// /// [LibraryImport("jolt", EntryPoint = "Wheel_GetSuspensionLambda")] public static partial float Wheel_GetSuspensionLambda(Wheel self); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:109 ///
/// float GetLongitudinalLambda() const ///
///
/// /// /// Get total impulse (N s) applied along the forward direction of the wheel /// /// [LibraryImport("jolt", EntryPoint = "Wheel_GetLongitudinalLambda")] public static partial float Wheel_GetLongitudinalLambda(Wheel self); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:112 ///
/// float GetLateralLambda() const ///
///
/// /// /// Get total impulse (N s) applied along the sideways direction of the wheel /// /// [LibraryImport("jolt", EntryPoint = "Wheel_GetLateralLambda")] public static partial float Wheel_GetLateralLambda(Wheel self); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:115 ///
/// bool SolveLongitudinalConstraintPart(const VehicleConstraint &inConstraint, float inMinImpulse, float inMaxImpulse) ///
///
/// /// /// Internal function that should only be called by the controller. Used to apply impulses in the /// forward direction of the vehicle. /// /// [LibraryImport("jolt", EntryPoint = "Wheel_SolveLongitudinalConstraintPart")] public static partial Brutal.Bool8 Wheel_SolveLongitudinalConstraintPart(Wheel self, VehicleConstraint constraint, float minImpulse, float maxImpulse); /// /// /// C++: /// Jolt/Physics/Vehicle/Wheel.h:118 ///
/// bool SolveLateralConstraintPart(const VehicleConstraint &inConstraint, float inMinImpulse, float inMaxImpulse) ///
///
/// /// /// Internal function that should only be called by the controller. Used to apply impulses in the /// sideways direction of the vehicle. /// /// [LibraryImport("jolt", EntryPoint = "Wheel_SolveLateralConstraintPart")] public static partial Brutal.Bool8 Wheel_SolveLateralConstraintPart(Wheel self, VehicleConstraint constraint, float minImpulse, float maxImpulse); } } }