// // 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/Shape/StaticCompoundShape.h:32 ///
/// class StaticCompoundShape final : public CompoundShape ///
///
/// /// /// A compound shape, sub shapes can be rotated and translated. /// Sub shapes cannot be modified once the shape is constructed. /// Shifts all child objects so that they're centered around the center of mass. /// /// [InteropHandle] public readonly partial struct StaticCompoundShape : IDisposable { /// /// /// C++: /// Jolt/Physics/Collision/Shape/StaticCompoundShape.h:118 ///
/// struct Node ///
///
/// /// /// Node structure /// /// [StructLayout(LayoutKind.Explicit, Size = 64)] public struct Node { /// /// /// 4 child bounding boxes /// /// /// C++: /// Jolt/Physics/Collision/Shape/StaticCompoundShape.h:123 ///
/// HalfFloat mBoundsMinX[4] ///
///
[FieldOffset(0)] public ushort_4 mBoundsMinX; /// /// /// C++: /// Jolt/Physics/Collision/Shape/StaticCompoundShape.h:124 ///
/// HalfFloat mBoundsMinY[4] ///
///
[FieldOffset(8)] public ushort_4 mBoundsMinY; /// /// /// C++: /// Jolt/Physics/Collision/Shape/StaticCompoundShape.h:125 ///
/// HalfFloat mBoundsMinZ[4] ///
///
[FieldOffset(16)] public ushort_4 mBoundsMinZ; /// /// /// C++: /// Jolt/Physics/Collision/Shape/StaticCompoundShape.h:126 ///
/// HalfFloat mBoundsMaxX[4] ///
///
[FieldOffset(24)] public ushort_4 mBoundsMaxX; /// /// /// C++: /// Jolt/Physics/Collision/Shape/StaticCompoundShape.h:127 ///
/// HalfFloat mBoundsMaxY[4] ///
///
[FieldOffset(32)] public ushort_4 mBoundsMaxY; /// /// /// C++: /// Jolt/Physics/Collision/Shape/StaticCompoundShape.h:128 ///
/// HalfFloat mBoundsMaxZ[4] ///
///
[FieldOffset(40)] public ushort_4 mBoundsMaxZ; /// /// /// 4 child node properties /// /// /// C++: /// Jolt/Physics/Collision/Shape/StaticCompoundShape.h:129 ///
/// uint32 mNodeProperties[4] ///
///
[FieldOffset(48)] public uint_4 mNodeProperties; } /// /// /// C++: /// Jolt/Physics/Collision/Shape/StaticCompoundShape.h:38 ///
/// StaticCompoundShape() ///
///
/// /// /// Constructor /// /// public static StaticCompoundShape Create() => Jolt.PInvoke.StaticCompoundShape_Create(); /// /// /// C++: /// Jolt/Physics/Collision/Shape/StaticCompoundShape.h:52 ///
/// virtual int GetIntersectingSubShapes(const AABox &inBox, uint *outSubShapeIndices, int inMaxSubShapeIndices) const override ///
///
/// /// /// See: CompoundShape::GetIntersectingSubShapes /// /// public unsafe int GetIntersectingSubShapes(AABox box, Ptr subShapeIndices, int maxSubShapeIndices) => Jolt.PInvoke.StaticCompoundShape_GetIntersectingSubShapes(this, box, subShapeIndices, maxSubShapeIndices); /// /// /// C++: /// Jolt/Physics/Collision/Shape/StaticCompoundShape.h:55 ///
/// virtual int GetIntersectingSubShapes(const OrientedBox &inBox, uint *outSubShapeIndices, int inMaxSubShapeIndices) const override ///
///
/// /// /// See: CompoundShape::GetIntersectingSubShapes /// /// public unsafe int GetIntersectingSubShapes(OrientedBox box, Ptr subShapeIndices, int maxSubShapeIndices) => Jolt.PInvoke.StaticCompoundShape_GetIntersectingSubShapes_2(this, box, subShapeIndices, maxSubShapeIndices); /// /// /// C++: /// Jolt/Physics/Collision/Shape/StaticCompoundShape.h:58 ///
/// virtual void SaveBinaryState(StreamOut &inStream) const override ///
///
/// /// /// See Shape /// /// public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.StaticCompoundShape_SaveBinaryState(this, stream); /// /// /// C++: /// Jolt/Physics/Collision/Shape/StaticCompoundShape.h:64 ///
/// static void sRegister() ///
///
/// /// /// Register shape functions with the registry /// /// public static void sRegister() => Jolt.PInvoke.StaticCompoundShape_sRegister(); public void AddRef() => Jolt.PInvoke.StaticCompoundShape_AddRef(this); public void Release() => Jolt.PInvoke.StaticCompoundShape_Release(this); public uint GetRefCount() => Jolt.PInvoke.StaticCompoundShape_GetRefCount(this); public static implicit operator CompoundShape(StaticCompoundShape value) => Jolt.PInvoke.StaticCompoundShape_AsCompoundShape(value); public static implicit operator Shape(StaticCompoundShape value) => Jolt.PInvoke.StaticCompoundShape_AsShape(value); public void Dispose() { if (IsNull()) return; Release(); } } }