// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using System.Runtime.CompilerServices; using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// Structure that holds the result of colliding a point against a shape /// /// /// C++: /// Jolt/Physics/Collision/CollidePointResult.h:13 ///
/// class CollidePointResult ///
///
[StructLayout(LayoutKind.Explicit, Size = 8)] public partial struct CollidePointResult { /// /// /// Body that was hit /// /// /// C++: /// Jolt/Physics/Collision/CollidePointResult.h:21 ///
/// BodyID mBodyID ///
///
[FieldOffset(0)] public uint BodyID; /// /// /// Sub shape ID of shape that we collided against /// /// /// C++: /// Jolt/Physics/Collision/CollidePointResult.h:22 ///
/// SubShapeID mSubShapeID2 ///
///
[FieldOffset(4)] public uint SubShapeID2; /// /// /// Function required by the CollisionCollector. A smaller fraction is considered to be a 'better hit'. For /// point queries there is no sensible return value. /// /// /// C++: /// Jolt/Physics/Collision/CollidePointResult.h:19 ///
/// inline float GetEarlyOutFraction() const ///
///
public readonly float GetEarlyOutFraction() => Jolt.PInvoke.CollidePointResult_GetEarlyOutFraction(ref Unsafe.AsRef(in this)); } }