// // 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 = "BroadPhaseCastResult_Create")] public static partial BroadPhaseCastResult BroadPhaseCastResult_Create(); [LibraryImport("jolt", EntryPoint = "BroadPhaseCastResult_Destroy")] public static partial void BroadPhaseCastResult_Destroy(BroadPhaseCastResult self); /// /// /// C++: /// Jolt/Physics/Collision/CastResult.h:19 ///
/// inline float GetEarlyOutFraction() const ///
///
/// /// /// Function required by the CollisionCollector. A smaller fraction is considered to be a 'better hit'. /// For rays/cast shapes we can just use the collision fraction. /// /// [LibraryImport("jolt", EntryPoint = "BroadPhaseCastResult_GetEarlyOutFraction")] public static partial float BroadPhaseCastResult_GetEarlyOutFraction(BroadPhaseCastResult self); /// /// /// C++: /// Jolt/Physics/Collision/CastResult.h:22 ///
/// inline void Reset() ///
///
/// /// /// Reset this result so it can be reused for a new cast. /// /// [LibraryImport("jolt", EntryPoint = "BroadPhaseCastResult_Reset")] public static partial void BroadPhaseCastResult_Reset(BroadPhaseCastResult self); /// /// /// Body that was hit /// /// /// C++: /// Jolt/Physics/Collision/CastResult.h:24 ///
/// BodyID mBodyID ///
///
[LibraryImport("jolt", EntryPoint = "BroadPhaseCastResult_GetBodyID")] public static partial uint BroadPhaseCastResult_GetBodyID(BroadPhaseCastResult self); /// /// /// Body that was hit /// /// /// C++: /// Jolt/Physics/Collision/CastResult.h:24 ///
/// BodyID mBodyID ///
///
[LibraryImport("jolt", EntryPoint = "BroadPhaseCastResult_SetBodyID")] public static partial void BroadPhaseCastResult_SetBodyID(BroadPhaseCastResult self, uint value); /// /// /// Hit fraction of the ray/object [0, 1], HitPoint = Start + mFraction * (End - Start) /// /// /// C++: /// Jolt/Physics/Collision/CastResult.h:25 ///
/// float mFraction = 1.0f + FLT_EPSILON ///
///
[LibraryImport("jolt", EntryPoint = "BroadPhaseCastResult_GetFraction")] public static partial float BroadPhaseCastResult_GetFraction(BroadPhaseCastResult self); /// /// /// Hit fraction of the ray/object [0, 1], HitPoint = Start + mFraction * (End - Start) /// /// /// C++: /// Jolt/Physics/Collision/CastResult.h:25 ///
/// float mFraction = 1.0f + FLT_EPSILON ///
///
[LibraryImport("jolt", EntryPoint = "BroadPhaseCastResult_SetFraction")] public static partial void BroadPhaseCastResult_SetFraction(BroadPhaseCastResult self, float value); } } }