// // 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/CastResult.h:29 ///
/// class RayCastResult : public BroadPhaseCastResult ///
///
/// /// /// Specialization of cast result against a shape /// /// [InteropHandle] public readonly partial struct RayCastResult : IDisposable { public static RayCastResult Create() => Jolt.PInvoke.RayCastResult_Create(); /// /// /// Sub shape ID of shape that we collided against /// /// /// C++: /// Jolt/Physics/Collision/CastResult.h:34 ///
/// SubShapeID mSubShapeID2 ///
///
public uint GetSubShapeID2() => Jolt.PInvoke.RayCastResult_GetSubShapeID2(this); /// /// /// Sub shape ID of shape that we collided against /// /// /// C++: /// Jolt/Physics/Collision/CastResult.h:34 ///
/// SubShapeID mSubShapeID2 ///
///
public void SetSubShapeID2(uint value) => Jolt.PInvoke.RayCastResult_SetSubShapeID2(this, value); public static implicit operator BroadPhaseCastResult(RayCastResult value) => Jolt.PInvoke.RayCastResult_AsBroadPhaseCastResult(value); public void Dispose() => Jolt.PInvoke.RayCastResult_Destroy(this); } }