mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,204 @@
|
|||
// <auto-generated/>
|
||||
// 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
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MutableCompoundShape.h#L38">Jolt/Physics/Collision/Shape/MutableCompoundShape.h:38</see>
|
||||
/// <br/>
|
||||
/// <c>MutableCompoundShape()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Constructor
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_Create")]
|
||||
public static partial MutableCompoundShape MutableCompoundShape_Create();
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MutableCompoundShape.h#L42">Jolt/Physics/Collision/Shape/MutableCompoundShape.h:42</see>
|
||||
/// <br/>
|
||||
/// <c>Ref<MutableCompoundShape> Clone() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Clone this shape. Can be used to avoid race conditions. See the documentation of this class for more
|
||||
/// information.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_Clone")]
|
||||
public static partial MutableCompoundShape MutableCompoundShape_Clone(MutableCompoundShape self);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MutableCompoundShape.h#L55">Jolt/Physics/Collision/Shape/MutableCompoundShape.h:55</see>
|
||||
/// <br/>
|
||||
/// <c>virtual int GetIntersectingSubShapes(const AABox &inBox, uint *outSubShapeIndices, int inMaxSubShapeIndices) const override</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// See: CompoundShape::GetIntersectingSubShapes
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_GetIntersectingSubShapes")]
|
||||
public static partial int MutableCompoundShape_GetIntersectingSubShapes(MutableCompoundShape self, AABox box, uint* subShapeIndices, int maxSubShapeIndices);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MutableCompoundShape.h#L58">Jolt/Physics/Collision/Shape/MutableCompoundShape.h:58</see>
|
||||
/// <br/>
|
||||
/// <c>virtual int GetIntersectingSubShapes(const OrientedBox &inBox, uint *outSubShapeIndices, int inMaxSubShapeIndices) const override</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// See: CompoundShape::GetIntersectingSubShapes
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_GetIntersectingSubShapes_2")]
|
||||
public static partial int MutableCompoundShape_GetIntersectingSubShapes_2(MutableCompoundShape self, OrientedBox box, uint* subShapeIndices, int maxSubShapeIndices);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MutableCompoundShape.h#L61">Jolt/Physics/Collision/Shape/MutableCompoundShape.h:61</see>
|
||||
/// <br/>
|
||||
/// <c>virtual void SaveBinaryState(StreamOut &inStream) const override</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// See Shape
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_SaveBinaryState")]
|
||||
public static partial void MutableCompoundShape_SaveBinaryState(MutableCompoundShape self, StreamOut stream);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MutableCompoundShape.h#L77">Jolt/Physics/Collision/Shape/MutableCompoundShape.h:77</see>
|
||||
/// <br/>
|
||||
/// <c>uint AddShape(Vec3Arg inPosition, QuatArg inRotation, const Shape *inShape, uint32 inUserData = 0, uint inIndex = UINT_MAX)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// 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
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_AddShape")]
|
||||
public static partial uint MutableCompoundShape_AddShape(MutableCompoundShape self, float3 position, floatQuat rotation, Shape shape, uint userData, uint index);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MutableCompoundShape.h#L81">Jolt/Physics/Collision/Shape/MutableCompoundShape.h:81</see>
|
||||
/// <br/>
|
||||
/// <c>void RemoveShape(uint inIndex)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// 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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_RemoveShape")]
|
||||
public static partial void MutableCompoundShape_RemoveShape(MutableCompoundShape self, uint index);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MutableCompoundShape.h#L85">Jolt/Physics/Collision/Shape/MutableCompoundShape.h:85</see>
|
||||
/// <br/>
|
||||
/// <c>void ModifyShape(uint inIndex, Vec3Arg inPosition, QuatArg inRotation)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// 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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_ModifyShape")]
|
||||
public static partial void MutableCompoundShape_ModifyShape(MutableCompoundShape self, uint index, float3 position, floatQuat rotation);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MutableCompoundShape.h#L89">Jolt/Physics/Collision/Shape/MutableCompoundShape.h:89</see>
|
||||
/// <br/>
|
||||
/// <c>void ModifyShape(uint inIndex, Vec3Arg inPosition, QuatArg inRotation, const Shape *inShape)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// 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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_ModifyShape_2")]
|
||||
public static partial void MutableCompoundShape_ModifyShape_2(MutableCompoundShape self, uint index, float3 position, floatQuat rotation, Shape shape);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MutableCompoundShape.h#L105">Jolt/Physics/Collision/Shape/MutableCompoundShape.h:105</see>
|
||||
/// <br/>
|
||||
/// <c>void AdjustCenterOfMass()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// 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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[LibraryImport("jolt", EntryPoint = "MutableCompoundShape_AdjustCenterOfMass")]
|
||||
public static partial void MutableCompoundShape_AdjustCenterOfMass(MutableCompoundShape self);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/MutableCompoundShape.h#L110">Jolt/Physics/Collision/Shape/MutableCompoundShape.h:110</see>
|
||||
/// <br/>
|
||||
/// <c>static void sRegister()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Register shape functions with the registry
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue