// // 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 = "ShapeCastResult_Create")] public static partial ShapeCastResult ShapeCastResult_Create(); /// [LibraryImport("jolt", EntryPoint = "ShapeCastResult_Create_2")] public static partial ShapeCastResult ShapeCastResult_Create_2( float fraction, float3 contactPoint1, float3 contactPoint2, float3 contactNormalOrPenetrationDepth, Brutal.Bool8 backFaceHit, uint subShapeID1, uint subShapeID2, uint bodyID2 ); /// /// /// 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. The fraction and penetration depth are /// combined in such a way that deeper hits at fraction 0 go first. /// /// /// C++: /// Jolt/Physics/Collision/ShapeCast.h:141 ///
/// inline float GetEarlyOutFraction() const ///
///
[LibraryImport("jolt", EntryPoint = "ShapeCastResult_GetEarlyOutFraction")] public static partial float ShapeCastResult_GetEarlyOutFraction(ref ShapeCastResult self); /// /// /// Reverses the hit result, swapping contact point 1 with contact point 2 etc. /// /// /// C++: /// Jolt/Physics/Collision/ShapeCast.h:145 ///
/// ShapeCastResult Reversed(Vec3Arg inWorldSpaceCastDirection) const ///
///
/// /// /// Reverses the hit result, swapping contact point 1 with contact point 2 etc. /// @param inWorldSpaceCastDirection Direction of the shape cast in world space /// /// [LibraryImport("jolt", EntryPoint = "ShapeCastResult_Reversed")] public static partial ShapeCastResult ShapeCastResult_Reversed( ref ShapeCastResult self, float3 worldSpaceCastDirection ); } } }