//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
public static partial class Jolt
{
public static unsafe partial class PInvoke
{
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MutableCompoundShape.h:38
///
/// MutableCompoundShape()
///
///
///
///
/// Constructor
///
///
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_Create")]
public static partial MutableCompoundShape MutableCompoundShape_Create();
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MutableCompoundShape.h:42
///
/// Ref<MutableCompoundShape> Clone() const
///
///
///
///
/// Clone this shape. Can be used to avoid race conditions. See the documentation of this class for more
/// information.
///
///
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_Clone")]
public static partial MutableCompoundShape MutableCompoundShape_Clone(MutableCompoundShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MutableCompoundShape.h:55
///
/// virtual int GetIntersectingSubShapes(const AABox &inBox, uint *outSubShapeIndices, int inMaxSubShapeIndices) const override
///
///
///
///
/// See: CompoundShape::GetIntersectingSubShapes
///
///
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_GetIntersectingSubShapes")]
public static partial int MutableCompoundShape_GetIntersectingSubShapes(MutableCompoundShape self, AABox box, uint* subShapeIndices, int maxSubShapeIndices);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MutableCompoundShape.h:58
///
/// virtual int GetIntersectingSubShapes(const OrientedBox &inBox, uint *outSubShapeIndices, int inMaxSubShapeIndices) const override
///
///
///
///
/// See: CompoundShape::GetIntersectingSubShapes
///
///
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_GetIntersectingSubShapes_2")]
public static partial int MutableCompoundShape_GetIntersectingSubShapes_2(MutableCompoundShape self, OrientedBox box, uint* subShapeIndices, int maxSubShapeIndices);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MutableCompoundShape.h:61
///
/// virtual void SaveBinaryState(StreamOut &inStream) const override
///
///
///
///
/// See Shape
///
///
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_SaveBinaryState")]
public static partial void MutableCompoundShape_SaveBinaryState(MutableCompoundShape self, StreamOut stream);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MutableCompoundShape.h:77
///
/// uint AddShape(Vec3Arg inPosition, QuatArg inRotation, const Shape *inShape, uint32 inUserData = 0, uint inIndex = UINT_MAX)
///
///
///
///
/// Adding a new shape.
/// Beware this can create a race condition if you're running collision queries in parallel. See class documentation for more information.
/// @param inPosition The position of the new shape
/// @param inRotation The orientation of the new shape
/// @param inShape The shape to add
/// @param inUserData User data that will be stored with the shape and can be retrieved using GetCompoundUserData
/// @param inIndex Index where to insert the shape, UINT_MAX to add to the end
/// @return The index of the newly added shape
///
///
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_AddShape")]
public static partial uint MutableCompoundShape_AddShape(MutableCompoundShape self, float3 position, floatQuat rotation, Shape shape, uint userData, uint index);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MutableCompoundShape.h:81
///
/// void RemoveShape(uint inIndex)
///
///
///
///
/// Remove a shape by index.
/// Beware this can create a race condition if you're running collision queries in parallel. See class documentation for more information.
///
///
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_RemoveShape")]
public static partial void MutableCompoundShape_RemoveShape(MutableCompoundShape self, uint index);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MutableCompoundShape.h:85
///
/// void ModifyShape(uint inIndex, Vec3Arg inPosition, QuatArg inRotation)
///
///
///
///
/// Modify the position / orientation of a shape.
/// Beware this can create a race condition if you're running collision queries in parallel. See class documentation for more information.
///
///
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_ModifyShape")]
public static partial void MutableCompoundShape_ModifyShape(MutableCompoundShape self, uint index, float3 position, floatQuat rotation);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MutableCompoundShape.h:89
///
/// void ModifyShape(uint inIndex, Vec3Arg inPosition, QuatArg inRotation, const Shape *inShape)
///
///
///
///
/// Modify the position / orientation and shape at the same time.
/// Beware this can create a race condition if you're running collision queries in parallel. See class documentation for more information.
///
///
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_ModifyShape_2")]
public static partial void MutableCompoundShape_ModifyShape_2(MutableCompoundShape self, uint index, float3 position, floatQuat rotation, Shape shape);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MutableCompoundShape.h:105
///
/// void AdjustCenterOfMass()
///
///
///
///
/// Recalculate the center of mass and shift all objects so they're centered around it
/// (this needs to be done of dynamic bodies and if the center of mass changes significantly due to adding / removing / repositioning sub shapes or else the simulation will look unnatural)
/// Note that after adjusting the center of mass of an object you need to call BodyInterface::NotifyShapeChanged and Constraint::NotifyShapeChanged on the relevant bodies / constraints.
/// Beware this can create a race condition if you're running collision queries in parallel. See class documentation for more information.
///
///
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_AdjustCenterOfMass")]
public static partial void MutableCompoundShape_AdjustCenterOfMass(MutableCompoundShape self);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/MutableCompoundShape.h:110
///
/// static void sRegister()
///
///
///
///
/// Register shape functions with the registry
///
///
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_sRegister")]
public static partial void MutableCompoundShape_sRegister();
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_AddRef")]
public static partial void MutableCompoundShape_AddRef(MutableCompoundShape self);
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_Release")]
public static partial void MutableCompoundShape_Release(MutableCompoundShape self);
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_GetRefCount")]
public static partial uint MutableCompoundShape_GetRefCount(MutableCompoundShape self);
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_AsCompoundShape")]
public static partial CompoundShape MutableCompoundShape_AsCompoundShape(MutableCompoundShape self);
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_AsShape")]
public static partial Shape MutableCompoundShape_AsShape(MutableCompoundShape self);
}
}
}