// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// C++: /// Jolt/Physics/Collision/CollidePointResult.h:13 ///
/// class CollidePointResult ///
///
/// /// /// Structure that holds the result of colliding a point against a shape /// /// [InteropHandle] public readonly partial struct CollidePointResult : IDisposable { public static CollidePointResult Create() => Jolt.PInvoke.CollidePointResult_Create(); /// /// /// C++: /// Jolt/Physics/Collision/CollidePointResult.h:19 ///
/// inline float GetEarlyOutFraction() const ///
///
/// /// /// Function required by the CollisionCollector. A smaller fraction is considered to be a 'better hit'. For /// point queries there is no sensible return value. /// /// public float GetEarlyOutFraction() => Jolt.PInvoke.CollidePointResult_GetEarlyOutFraction(this); /// /// /// Body that was hit /// /// /// C++: /// Jolt/Physics/Collision/CollidePointResult.h:21 ///
/// BodyID mBodyID ///
///
public uint GetBodyID() => Jolt.PInvoke.CollidePointResult_GetBodyID(this); /// /// /// Body that was hit /// /// /// C++: /// Jolt/Physics/Collision/CollidePointResult.h:21 ///
/// BodyID mBodyID ///
///
public void SetBodyID(uint value) => Jolt.PInvoke.CollidePointResult_SetBodyID(this, value); /// /// /// Sub shape ID of shape that we collided against /// /// /// C++: /// Jolt/Physics/Collision/CollidePointResult.h:22 ///
/// SubShapeID mSubShapeID2 ///
///
public uint GetSubShapeID2() => Jolt.PInvoke.CollidePointResult_GetSubShapeID2(this); /// /// /// Sub shape ID of shape that we collided against /// /// /// C++: /// Jolt/Physics/Collision/CollidePointResult.h:22 ///
/// SubShapeID mSubShapeID2 ///
///
public void SetSubShapeID2(uint value) => Jolt.PInvoke.CollidePointResult_SetSubShapeID2(this, value); public void Dispose() => Jolt.PInvoke.CollidePointResult_Destroy(this); } }