// // 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/ShapeCast.h:91 ///
/// class ShapeCastSettings : public CollideSettingsBase ///
///
/// /// /// Settings to be passed with a shape cast /// /// [InteropHandle] public readonly partial struct ShapeCastSettings : IDisposable { public static ShapeCastSettings Create() => Jolt.PInvoke.ShapeCastSettings_Create(); /// /// /// C++: /// Jolt/Physics/Collision/ShapeCast.h:97 ///
/// void SetBackFaceMode(EBackFaceMode inMode) ///
///
/// /// /// Set the backfacing mode for all shapes /// /// public void SetBackFaceMode(EBackFaceMode mode) => Jolt.PInvoke.ShapeCastSettings_SetBackFaceMode(this, mode); /// /// /// C++: /// Jolt/Physics/Collision/ShapeCast.h:100 ///
/// EBackFaceMode mBackFaceModeTriangles = EBackFaceMode::IgnoreBackFaces ///
///
/// /// /// How backfacing triangles should be treated (should we report moving from back to front for triangle /// based shapes, e.g. for MeshShape/HeightFieldShape?) /// /// public EBackFaceMode GetBackFaceModeTriangles() => Jolt.PInvoke.ShapeCastSettings_GetBackFaceModeTriangles(this); /// /// /// C++: /// Jolt/Physics/Collision/ShapeCast.h:100 ///
/// EBackFaceMode mBackFaceModeTriangles = EBackFaceMode::IgnoreBackFaces ///
///
/// /// /// How backfacing triangles should be treated (should we report moving from back to front for triangle /// based shapes, e.g. for MeshShape/HeightFieldShape?) /// /// public void SetBackFaceModeTriangles(EBackFaceMode value) => Jolt.PInvoke.ShapeCastSettings_SetBackFaceModeTriangles(this, value); /// /// /// C++: /// Jolt/Physics/Collision/ShapeCast.h:103 ///
/// EBackFaceMode mBackFaceModeConvex = EBackFaceMode::IgnoreBackFaces ///
///
/// /// /// How backfacing convex objects should be treated (should we report starting inside an object and moving /// out?) /// /// public EBackFaceMode GetBackFaceModeConvex() => Jolt.PInvoke.ShapeCastSettings_GetBackFaceModeConvex(this); /// /// /// C++: /// Jolt/Physics/Collision/ShapeCast.h:103 ///
/// EBackFaceMode mBackFaceModeConvex = EBackFaceMode::IgnoreBackFaces ///
///
/// /// /// How backfacing convex objects should be treated (should we report starting inside an object and moving /// out?) /// /// public void SetBackFaceModeConvex(EBackFaceMode value) => Jolt.PInvoke.ShapeCastSettings_SetBackFaceModeConvex(this, value); /// /// /// C++: /// Jolt/Physics/Collision/ShapeCast.h:106 ///
/// bool mUseShrunkenShapeAndConvexRadius = false ///
///
/// /// /// Indicates if we want to shrink the shape by the convex radius and then expand it again. This speeds up /// collision detection and gives a more accurate normal at the cost of a more 'rounded' shape. /// /// public bool GetUseShrunkenShapeAndConvexRadius() => Jolt.PInvoke.ShapeCastSettings_GetUseShrunkenShapeAndConvexRadius(this); /// /// /// C++: /// Jolt/Physics/Collision/ShapeCast.h:106 ///
/// bool mUseShrunkenShapeAndConvexRadius = false ///
///
/// /// /// Indicates if we want to shrink the shape by the convex radius and then expand it again. This speeds up /// collision detection and gives a more accurate normal at the cost of a more 'rounded' shape. /// /// public void SetUseShrunkenShapeAndConvexRadius(bool value) => Jolt.PInvoke.ShapeCastSettings_SetUseShrunkenShapeAndConvexRadius(this, value); /// /// /// C++: /// Jolt/Physics/Collision/ShapeCast.h:109 ///
/// bool mReturnDeepestPoint = false ///
///
/// /// /// When true, and the shape is intersecting at the beginning of the cast (fraction = 0) then this will /// calculate the deepest penetration point (costing additional CPU time) /// /// public bool GetReturnDeepestPoint() => Jolt.PInvoke.ShapeCastSettings_GetReturnDeepestPoint(this); /// /// /// C++: /// Jolt/Physics/Collision/ShapeCast.h:109 ///
/// bool mReturnDeepestPoint = false ///
///
/// /// /// When true, and the shape is intersecting at the beginning of the cast (fraction = 0) then this will /// calculate the deepest penetration point (costing additional CPU time) /// /// public void SetReturnDeepestPoint(bool value) => Jolt.PInvoke.ShapeCastSettings_SetReturnDeepestPoint(this, value); public static implicit operator CollideSettingsBase(ShapeCastSettings value) => Jolt.PInvoke.ShapeCastSettings_AsCollideSettingsBase(value); public void Dispose() => Jolt.PInvoke.ShapeCastSettings_Destroy(this); } }