mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
1341 lines
76 KiB
C#
1341 lines
76 KiB
C#
// <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/Body/BodyInterface.h#L39">Jolt/Physics/Body/BodyInterface.h:39</see>
|
|
/// <br/>
|
|
/// <c>void Init(BodyLockInterface &inBodyLockInterface, BodyManager &inBodyManager, BroadPhase &inBroadPhase)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Initialize the interface (should only be called by PhysicsSystem)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_Init")]
|
|
public static partial void BodyInterface_Init(BodyInterface self, BodyLockInterface bodyLockInterface, BodyManager bodyManager, BroadPhase broadPhase);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L43">Jolt/Physics/Body/BodyInterface.h:43</see>
|
|
/// <br/>
|
|
/// <c>Body * CreateBody(const BodyCreationSettings &inSettings)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Create a rigid body
|
|
/// @return Created body or null when out of bodies
|
|
/// </code>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateBody")]
|
|
public static partial Body BodyInterface_CreateBody(BodyInterface self, BodyCreationSettings settings);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L47">Jolt/Physics/Body/BodyInterface.h:47</see>
|
|
/// <br/>
|
|
/// <c>Body * CreateSoftBody(const SoftBodyCreationSettings &inSettings)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Create a soft body
|
|
/// @return Created body or null when out of bodies
|
|
/// </code>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateSoftBody")]
|
|
public static partial Body BodyInterface_CreateSoftBody(BodyInterface self, SoftBodyCreationSettings settings);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L52">Jolt/Physics/Body/BodyInterface.h:52</see>
|
|
/// <br/>
|
|
/// <c>Body * CreateBodyWithID(const BodyID &inBodyID, const BodyCreationSettings &inSettings)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Create a rigid body with specified ID. This function can be used if a simulation is to run in sync between clients or if a simulation needs to be restored exactly.
|
|
/// The ID created on the server can be replicated to the client and used to create a deterministic simulation.
|
|
/// @return Created body or null when the body ID is invalid or a body of the same ID already exists.
|
|
/// </code>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateBodyWithID")]
|
|
public static partial Body BodyInterface_CreateBodyWithID(BodyInterface self, uint bodyID, BodyCreationSettings settings);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L55">Jolt/Physics/Body/BodyInterface.h:55</see>
|
|
/// <br/>
|
|
/// <c>Body * CreateSoftBodyWithID(const BodyID &inBodyID, const SoftBodyCreationSettings &inSettings)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Create a soft body with specified ID. See comments at CreateBodyWithID.
|
|
/// </para>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateSoftBodyWithID")]
|
|
public static partial Body BodyInterface_CreateSoftBodyWithID(BodyInterface self, uint bodyID, SoftBodyCreationSettings settings);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L60">Jolt/Physics/Body/BodyInterface.h:60</see>
|
|
/// <br/>
|
|
/// <c>Body * CreateBodyWithoutID(const BodyCreationSettings &inSettings) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Advanced use only. Creates a rigid body without specifying an ID. This body cannot be added to the physics system until it has been assigned a body ID.
|
|
/// This can be used to decouple allocation from registering the body. A call to CreateBodyWithoutID followed by AssignBodyID is equivalent to calling CreateBodyWithID.
|
|
/// @return Created body
|
|
/// </code>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateBodyWithoutID")]
|
|
public static partial Body BodyInterface_CreateBodyWithoutID(BodyInterface self, BodyCreationSettings settings);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L63">Jolt/Physics/Body/BodyInterface.h:63</see>
|
|
/// <br/>
|
|
/// <c>Body * CreateSoftBodyWithoutID(const SoftBodyCreationSettings &inSettings) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Advanced use only. Creates a body without specifying an ID. See comments at CreateBodyWithoutID.
|
|
/// </para>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateSoftBodyWithoutID")]
|
|
public static partial Body BodyInterface_CreateSoftBodyWithoutID(BodyInterface self, SoftBodyCreationSettings settings);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L67">Jolt/Physics/Body/BodyInterface.h:67</see>
|
|
/// <br/>
|
|
/// <c>void DestroyBodyWithoutID(Body *inBody) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Advanced use only. Destroy a body previously created with CreateBodyWithoutID that hasn't gotten an ID yet through the AssignBodyID function,
|
|
/// or a body that has had its body ID unassigned through UnassignBodyIDs. Bodies that have an ID should be destroyed through DestroyBody.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_DestroyBodyWithoutID")]
|
|
public static partial void BodyInterface_DestroyBodyWithoutID(BodyInterface self, Body body);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L71">Jolt/Physics/Body/BodyInterface.h:71</see>
|
|
/// <br/>
|
|
/// <c>bool AssignBodyID(Body *ioBody)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Advanced use only. Assigns the next available body ID to a body that was created using CreateBodyWithoutID. After this call, the body can be added to the physics system.
|
|
/// @return false if the body already has an ID or out of body ids.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AssignBodyID")]
|
|
public static partial Brutal.Bool8 BodyInterface_AssignBodyID(BodyInterface self, Body body);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L75">Jolt/Physics/Body/BodyInterface.h:75</see>
|
|
/// <br/>
|
|
/// <c>bool AssignBodyID(Body *ioBody, const BodyID &inBodyID)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Advanced use only. Assigns a body ID to a body that was created using CreateBodyWithoutID. After this call, the body can be added to the physics system.
|
|
/// @return false if the body already has an ID or if the ID is not valid.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AssignBodyID_2")]
|
|
public static partial Brutal.Bool8 BodyInterface_AssignBodyID_2(BodyInterface self, Body body, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L78">Jolt/Physics/Body/BodyInterface.h:78</see>
|
|
/// <br/>
|
|
/// <c>Body * UnassignBodyID(const BodyID &inBodyID)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Advanced use only. See UnassignBodyIDs. Unassigns the ID of a single body.
|
|
/// </para>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_UnassignBodyID")]
|
|
public static partial Body BodyInterface_UnassignBodyID(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L89">Jolt/Physics/Body/BodyInterface.h:89</see>
|
|
/// <br/>
|
|
/// <c>void DestroyBody(const BodyID &inBodyID)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Destroy a body.
|
|
/// Make sure that you remove the body from the physics system using BodyInterface::RemoveBody before calling this function.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_DestroyBody")]
|
|
public static partial void BodyInterface_DestroyBody(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L93">Jolt/Physics/Body/BodyInterface.h:93</see>
|
|
/// <br/>
|
|
/// <c>void DestroyBodies(const BodyID *inBodyIDs, int inNumber)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Destroy multiple bodies
|
|
/// Make sure that you remove the bodies from the physics system using BodyInterface::RemoveBody before calling this function.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_DestroyBodies")]
|
|
public static partial void BodyInterface_DestroyBodies(BodyInterface self, uint* bodyIDs, int number);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L99">Jolt/Physics/Body/BodyInterface.h:99</see>
|
|
/// <br/>
|
|
/// <c>void AddBody(const BodyID &inBodyID, EActivation inActivationMode)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Add body to the physics system.
|
|
/// Note that if you need to add multiple bodies, use the AddBodiesPrepare/AddBodiesFinalize function.
|
|
/// Adding many bodies, one at a time, results in a really inefficient broadphase until PhysicsSystem::OptimizeBroadPhase is called or when PhysicsSystem::Update rebuilds the tree!
|
|
/// After adding, to get a body by ID use the BodyLockRead or BodyLockWrite interface!
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddBody")]
|
|
public static partial void BodyInterface_AddBody(BodyInterface self, uint bodyID, EActivation activationMode);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L102">Jolt/Physics/Body/BodyInterface.h:102</see>
|
|
/// <br/>
|
|
/// <c>void RemoveBody(const BodyID &inBodyID)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Remove body from the physics system. Note that you need to add a body to the physics system before
|
|
/// you can remove it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_RemoveBody")]
|
|
public static partial void BodyInterface_RemoveBody(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L105">Jolt/Physics/Body/BodyInterface.h:105</see>
|
|
/// <br/>
|
|
/// <c>bool IsAdded(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if a body has been added to the physics system.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_IsAdded")]
|
|
public static partial Brutal.Bool8 BodyInterface_IsAdded(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L109">Jolt/Physics/Body/BodyInterface.h:109</see>
|
|
/// <br/>
|
|
/// <c>BodyID CreateAndAddBody(const BodyCreationSettings &inSettings, EActivation inActivationMode)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Combines CreateBody and AddBody
|
|
/// @return Created body ID or an invalid ID when out of bodies
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateAndAddBody")]
|
|
public static partial uint BodyInterface_CreateAndAddBody(BodyInterface self, BodyCreationSettings settings, EActivation activationMode);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L113">Jolt/Physics/Body/BodyInterface.h:113</see>
|
|
/// <br/>
|
|
/// <c>BodyID CreateAndAddSoftBody(const SoftBodyCreationSettings &inSettings, EActivation inActivationMode)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Combines CreateSoftBody and AddBody
|
|
/// @return Created body ID or an invalid ID when out of bodies
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateAndAddSoftBody")]
|
|
public static partial uint BodyInterface_CreateAndAddSoftBody(BodyInterface self, SoftBodyCreationSettings settings, EActivation activationMode);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L137">Jolt/Physics/Body/BodyInterface.h:137</see>
|
|
/// <br/>
|
|
/// <c>void RemoveBodies(BodyID *ioBodies, int inNumber)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Remove inNumber bodies in ioBodies from the PhysicsSystem. Note that bodies need to be added to the physics system before they can be removed.
|
|
/// ioBodies may be shuffled around by this function.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_RemoveBodies")]
|
|
public static partial void BodyInterface_RemoveBodies(BodyInterface self, uint* bodies, int number);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L142">Jolt/Physics/Body/BodyInterface.h:142</see>
|
|
/// <br/>
|
|
/// <c>void ActivateBody(const BodyID &inBodyID)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @name Activate / deactivate a body. Note that you need to add a body to the physics system before you can activate it.
|
|
/// @{
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_ActivateBody")]
|
|
public static partial void BodyInterface_ActivateBody(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L143">Jolt/Physics/Body/BodyInterface.h:143</see>
|
|
/// <br/>
|
|
/// <c>void ActivateBodies(const BodyID *inBodyIDs, int inNumber)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_ActivateBodies")]
|
|
public static partial void BodyInterface_ActivateBodies(BodyInterface self, uint* bodyIDs, int number);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L144">Jolt/Physics/Body/BodyInterface.h:144</see>
|
|
/// <br/>
|
|
/// <c>void ActivateBodiesInAABox(const AABox &inBox, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter, const ObjectLayerFilter &inObjectLayerFilter)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_ActivateBodiesInAABox")]
|
|
public static partial void BodyInterface_ActivateBodiesInAABox(BodyInterface self, AABox box, BroadPhaseLayerFilter broadPhaseLayerFilter, ObjectLayerFilter objectLayerFilter);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L145">Jolt/Physics/Body/BodyInterface.h:145</see>
|
|
/// <br/>
|
|
/// <c>void DeactivateBody(const BodyID &inBodyID)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_DeactivateBody")]
|
|
public static partial void BodyInterface_DeactivateBody(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L146">Jolt/Physics/Body/BodyInterface.h:146</see>
|
|
/// <br/>
|
|
/// <c>void DeactivateBodies(const BodyID *inBodyIDs, int inNumber)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_DeactivateBodies")]
|
|
public static partial void BodyInterface_DeactivateBodies(BodyInterface self, uint* bodyIDs, int number);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Checks if a body is currently actively simulating
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L147">Jolt/Physics/Body/BodyInterface.h:147</see>
|
|
/// <br/>
|
|
/// <c>bool IsActive(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_IsActive")]
|
|
public static partial Brutal.Bool8 BodyInterface_IsActive(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::ResetSleepTimer
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L148">Jolt/Physics/Body/BodyInterface.h:148</see>
|
|
/// <br/>
|
|
/// <c>void ResetSleepTimer(const BodyID &inBodyID)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_ResetSleepTimer")]
|
|
public static partial void BodyInterface_ResetSleepTimer(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L152">Jolt/Physics/Body/BodyInterface.h:152</see>
|
|
/// <br/>
|
|
/// <c>TwoBodyConstraint * CreateConstraint(const TwoBodyConstraintSettings *inSettings, const BodyID &inBodyID1, const BodyID &inBodyID2)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Create a two body constraint
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_CreateConstraint")]
|
|
public static partial TwoBodyConstraint BodyInterface_CreateConstraint(BodyInterface self, TwoBodyConstraintSettings settings, uint bodyID1, uint bodyID2);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L156">Jolt/Physics/Body/BodyInterface.h:156</see>
|
|
/// <br/>
|
|
/// <c>void ActivateConstraint(const TwoBodyConstraint *inConstraint)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Activate non-static bodies attached to a constraint.
|
|
/// Note that the bodies involved in the constraint should be added to the physics system before activating a constraint.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_ActivateConstraint")]
|
|
public static partial void BodyInterface_ActivateConstraint(BodyInterface self, TwoBodyConstraint constraint);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L162">Jolt/Physics/Body/BodyInterface.h:162</see>
|
|
/// <br/>
|
|
/// <c>RefConst<Shape> GetShape(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the current shape
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetShape")]
|
|
public static partial Shape BodyInterface_GetShape(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L169">Jolt/Physics/Body/BodyInterface.h:169</see>
|
|
/// <br/>
|
|
/// <c>void SetShape(const BodyID &inBodyID, const Shape *inShape, bool inUpdateMassProperties, EActivation inActivationMode) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Set a new shape on the body
|
|
/// @param inBodyID Body ID of body that had its shape changed
|
|
/// @param inShape The new shape
|
|
/// @param inUpdateMassProperties When true, the mass and inertia tensor is recalculated
|
|
/// @param inActivationMode Whether or not to activate the body
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetShape")]
|
|
public static partial void BodyInterface_SetShape(BodyInterface self, uint bodyID, Shape shape, Brutal.Bool8 updateMassProperties, EActivation activationMode);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L176">Jolt/Physics/Body/BodyInterface.h:176</see>
|
|
/// <br/>
|
|
/// <c>void NotifyShapeChanged(const BodyID &inBodyID, Vec3Arg inPreviousCenterOfMass, bool inUpdateMassProperties, EActivation inActivationMode) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Notify all systems to indicate that a shape has changed (usable for MutableCompoundShapes)
|
|
/// @param inBodyID Body ID of body that had its shape changed
|
|
/// @param inPreviousCenterOfMass Center of mass of the shape before the alterations
|
|
/// @param inUpdateMassProperties When true, the mass and inertia tensor is recalculated
|
|
/// @param inActivationMode Whether or not to activate the body
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_NotifyShapeChanged")]
|
|
public static partial void BodyInterface_NotifyShapeChanged(BodyInterface self, uint bodyID, float3 previousCenterOfMass, Brutal.Bool8 updateMassProperties, EActivation activationMode);
|
|
/// <summary>
|
|
/// <para>
|
|
/// The collision layer this body belongs to (determines if two objects can collide)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L181">Jolt/Physics/Body/BodyInterface.h:181</see>
|
|
/// <br/>
|
|
/// <c>void SetObjectLayer(const BodyID &inBodyID, ObjectLayer inLayer)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @name Object layer of a body
|
|
/// @{
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetObjectLayer")]
|
|
public static partial void BodyInterface_SetObjectLayer(BodyInterface self, uint bodyID, ushort layer);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::GetObjectLayer
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L182">Jolt/Physics/Body/BodyInterface.h:182</see>
|
|
/// <br/>
|
|
/// <c>ObjectLayer GetObjectLayer(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetObjectLayer")]
|
|
public static partial ushort BodyInterface_GetObjectLayer(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L187">Jolt/Physics/Body/BodyInterface.h:187</see>
|
|
/// <br/>
|
|
/// <c>void SetPositionAndRotation(const BodyID &inBodyID, RVec3Arg inPosition, QuatArg inRotation, EActivation inActivationMode)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @name Position and rotation of a body
|
|
/// @{
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetPositionAndRotation")]
|
|
public static partial void BodyInterface_SetPositionAndRotation(BodyInterface self, uint bodyID, float3 position, floatQuat rotation, EActivation activationMode);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Will only update the position/rotation and activate the body when the difference is larger than a
|
|
/// very small number. This avoids updating the broadphase/waking up a body when the resulting
|
|
/// position/orientation doesn't really change.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L188">Jolt/Physics/Body/BodyInterface.h:188</see>
|
|
/// <br/>
|
|
/// <c>void SetPositionAndRotationWhenChanged(const BodyID &inBodyID, RVec3Arg inPosition, QuatArg inRotation, EActivation inActivationMode)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetPositionAndRotationWhenChanged")]
|
|
public static partial void BodyInterface_SetPositionAndRotationWhenChanged(BodyInterface self, uint bodyID, float3 position, floatQuat rotation, EActivation activationMode);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L189">Jolt/Physics/Body/BodyInterface.h:189</see>
|
|
/// <br/>
|
|
/// <c>void GetPositionAndRotation(const BodyID &inBodyID, RVec3 &outPosition, Quat &outRotation) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetPositionAndRotation")]
|
|
public static partial void BodyInterface_GetPositionAndRotation(BodyInterface self, uint bodyID, out float3 position, out floatQuat rotation);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L190">Jolt/Physics/Body/BodyInterface.h:190</see>
|
|
/// <br/>
|
|
/// <c>void SetPosition(const BodyID &inBodyID, RVec3Arg inPosition, EActivation inActivationMode)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetPosition")]
|
|
public static partial void BodyInterface_SetPosition(BodyInterface self, uint bodyID, float3 position, EActivation activationMode);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L191">Jolt/Physics/Body/BodyInterface.h:191</see>
|
|
/// <br/>
|
|
/// <c>RVec3 GetPosition(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetPosition")]
|
|
public static partial float3 BodyInterface_GetPosition(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::GetCenterOfMassPosition
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L192">Jolt/Physics/Body/BodyInterface.h:192</see>
|
|
/// <br/>
|
|
/// <c>RVec3 GetCenterOfMassPosition(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetCenterOfMassPosition")]
|
|
public static partial float3 BodyInterface_GetCenterOfMassPosition(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L193">Jolt/Physics/Body/BodyInterface.h:193</see>
|
|
/// <br/>
|
|
/// <c>void SetRotation(const BodyID &inBodyID, QuatArg inRotation, EActivation inActivationMode)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetRotation")]
|
|
public static partial void BodyInterface_SetRotation(BodyInterface self, uint bodyID, floatQuat rotation, EActivation activationMode);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L194">Jolt/Physics/Body/BodyInterface.h:194</see>
|
|
/// <br/>
|
|
/// <c>Quat GetRotation(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetRotation")]
|
|
public static partial floatQuat BodyInterface_GetRotation(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::GetWorldTransform
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L195">Jolt/Physics/Body/BodyInterface.h:195</see>
|
|
/// <br/>
|
|
/// <c>RMat44 GetWorldTransform(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetWorldTransform")]
|
|
public static partial float4x4 BodyInterface_GetWorldTransform(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::GetCenterOfMassTransform
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L196">Jolt/Physics/Body/BodyInterface.h:196</see>
|
|
/// <br/>
|
|
/// <c>RMat44 GetCenterOfMassTransform(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetCenterOfMassTransform")]
|
|
public static partial float4x4 BodyInterface_GetCenterOfMassTransform(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L200">Jolt/Physics/Body/BodyInterface.h:200</see>
|
|
/// <br/>
|
|
/// <c>void MoveKinematic(const BodyID &inBodyID, RVec3Arg inTargetPosition, QuatArg inTargetRotation, float inDeltaTime)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Set velocity of body such that it will be positioned at inTargetPosition/Rotation in inDeltaTime
|
|
/// seconds (will activate body if needed)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_MoveKinematic")]
|
|
public static partial void BodyInterface_MoveKinematic(BodyInterface self, uint bodyID, float3 targetPosition, floatQuat targetRotation, float deltaTime);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L204">Jolt/Physics/Body/BodyInterface.h:204</see>
|
|
/// <br/>
|
|
/// <c>void SetLinearAndAngularVelocity(const BodyID &inBodyID, Vec3Arg inLinearVelocity, Vec3Arg inAngularVelocity)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Linear or angular velocity (functions will activate body if needed).
|
|
/// Note that the linear velocity is the velocity of the center of mass, which may not coincide with the position of your object, to correct for this: \f$VelocityCOM = Velocity - AngularVelocity \times ShapeCOM\f$
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetLinearAndAngularVelocity")]
|
|
public static partial void BodyInterface_SetLinearAndAngularVelocity(BodyInterface self, uint bodyID, float3 linearVelocity, float3 angularVelocity);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L205">Jolt/Physics/Body/BodyInterface.h:205</see>
|
|
/// <br/>
|
|
/// <c>void GetLinearAndAngularVelocity(const BodyID &inBodyID, Vec3 &outLinearVelocity, Vec3 &outAngularVelocity) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetLinearAndAngularVelocity")]
|
|
public static partial void BodyInterface_GetLinearAndAngularVelocity(BodyInterface self, uint bodyID, out float3 linearVelocity, out float3 angularVelocity);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::SetLinearVelocity
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L206">Jolt/Physics/Body/BodyInterface.h:206</see>
|
|
/// <br/>
|
|
/// <c>void SetLinearVelocity(const BodyID &inBodyID, Vec3Arg inLinearVelocity)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetLinearVelocity")]
|
|
public static partial void BodyInterface_SetLinearVelocity(BodyInterface self, uint bodyID, float3 linearVelocity);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::GetLinearVelocity
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L207">Jolt/Physics/Body/BodyInterface.h:207</see>
|
|
/// <br/>
|
|
/// <c>Vec3 GetLinearVelocity(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetLinearVelocity")]
|
|
public static partial float3 BodyInterface_GetLinearVelocity(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Add velocity to current velocity
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L208">Jolt/Physics/Body/BodyInterface.h:208</see>
|
|
/// <br/>
|
|
/// <c>void AddLinearVelocity(const BodyID &inBodyID, Vec3Arg inLinearVelocity)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddLinearVelocity")]
|
|
public static partial void BodyInterface_AddLinearVelocity(BodyInterface self, uint bodyID, float3 linearVelocity);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Add linear and angular to current velocities
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L209">Jolt/Physics/Body/BodyInterface.h:209</see>
|
|
/// <br/>
|
|
/// <c>void AddLinearAndAngularVelocity(const BodyID &inBodyID, Vec3Arg inLinearVelocity, Vec3Arg inAngularVelocity)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddLinearAndAngularVelocity")]
|
|
public static partial void BodyInterface_AddLinearAndAngularVelocity(BodyInterface self, uint bodyID, float3 linearVelocity, float3 angularVelocity);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::SetAngularVelocity
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L210">Jolt/Physics/Body/BodyInterface.h:210</see>
|
|
/// <br/>
|
|
/// <c>void SetAngularVelocity(const BodyID &inBodyID, Vec3Arg inAngularVelocity)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetAngularVelocity")]
|
|
public static partial void BodyInterface_SetAngularVelocity(BodyInterface self, uint bodyID, float3 angularVelocity);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::GetAngularVelocity
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L211">Jolt/Physics/Body/BodyInterface.h:211</see>
|
|
/// <br/>
|
|
/// <c>Vec3 GetAngularVelocity(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetAngularVelocity")]
|
|
public static partial float3 BodyInterface_GetAngularVelocity(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Velocity of point inPoint (in world space, e.g. on the surface of the body) of the body. @see
|
|
/// Body::GetPointVelocity
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L212">Jolt/Physics/Body/BodyInterface.h:212</see>
|
|
/// <br/>
|
|
/// <c>Vec3 GetPointVelocity(const BodyID &inBodyID, RVec3Arg inPoint) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetPointVelocity")]
|
|
public static partial float3 BodyInterface_GetPointVelocity(BodyInterface self, uint bodyID, float3 point);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L216">Jolt/Physics/Body/BodyInterface.h:216</see>
|
|
/// <br/>
|
|
/// <c>void SetPositionRotationAndVelocity(const BodyID &inBodyID, RVec3Arg inPosition, QuatArg inRotation, Vec3Arg inLinearVelocity, Vec3Arg inAngularVelocity)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Set the complete motion state of a body.
|
|
/// Note that the linear velocity is the velocity of the center of mass, which may not coincide with the position of your object, to correct for this: \f$VelocityCOM = Velocity - AngularVelocity \times ShapeCOM\f$
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetPositionRotationAndVelocity")]
|
|
public static partial void BodyInterface_SetPositionRotationAndVelocity(BodyInterface self, uint bodyID, float3 position, floatQuat rotation, float3 linearVelocity, float3 angularVelocity);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::AddForce
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L220">Jolt/Physics/Body/BodyInterface.h:220</see>
|
|
/// <br/>
|
|
/// <c>void AddForce(const BodyID &inBodyID, Vec3Arg inForce, EActivation inActivationMode = EActivation::Activate)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @name Add forces to the body. Note that you should add a body to the physics system before applying forces or torques.
|
|
/// @{
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddForce")]
|
|
public static partial void BodyInterface_AddForce(BodyInterface self, uint bodyID, float3 force, EActivation activationMode);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Applied at world space position inPoint. @see Body::AddForce
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L221">Jolt/Physics/Body/BodyInterface.h:221</see>
|
|
/// <br/>
|
|
/// <c>void AddForce(const BodyID &inBodyID, Vec3Arg inForce, RVec3Arg inPoint, EActivation inActivationMode = EActivation::Activate)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddForce_2")]
|
|
public static partial void BodyInterface_AddForce_2(BodyInterface self, uint bodyID, float3 force, float3 point, EActivation activationMode);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::AddTorque
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L222">Jolt/Physics/Body/BodyInterface.h:222</see>
|
|
/// <br/>
|
|
/// <c>void AddTorque(const BodyID &inBodyID, Vec3Arg inTorque, EActivation inActivationMode = EActivation::Activate)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddTorque")]
|
|
public static partial void BodyInterface_AddTorque(BodyInterface self, uint bodyID, float3 torque, EActivation activationMode);
|
|
/// <summary>
|
|
/// <para>
|
|
/// A combination of Body::AddForce and Body::AddTorque
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L223">Jolt/Physics/Body/BodyInterface.h:223</see>
|
|
/// <br/>
|
|
/// <c>void AddForceAndTorque(const BodyID &inBodyID, Vec3Arg inForce, Vec3Arg inTorque, EActivation inActivationMode = EActivation::Activate)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddForceAndTorque")]
|
|
public static partial void BodyInterface_AddForceAndTorque(BodyInterface self, uint bodyID, float3 force, float3 torque, EActivation activationMode);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Applied at center of mass. @see Body::AddImpulse
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L228">Jolt/Physics/Body/BodyInterface.h:228</see>
|
|
/// <br/>
|
|
/// <c>void AddImpulse(const BodyID &inBodyID, Vec3Arg inImpulse)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @name Add an impulse to the body. Note that you should add a body to the physics system before applying impulses.
|
|
/// @{
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddImpulse")]
|
|
public static partial void BodyInterface_AddImpulse(BodyInterface self, uint bodyID, float3 impulse);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Applied at world space position inPoint. @see Body::AddImpulse
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L229">Jolt/Physics/Body/BodyInterface.h:229</see>
|
|
/// <br/>
|
|
/// <c>void AddImpulse(const BodyID &inBodyID, Vec3Arg inImpulse, RVec3Arg inPoint)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddImpulse_2")]
|
|
public static partial void BodyInterface_AddImpulse_2(BodyInterface self, uint bodyID, float3 impulse, float3 point);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::AddAngularImpulse
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L230">Jolt/Physics/Body/BodyInterface.h:230</see>
|
|
/// <br/>
|
|
/// <c>void AddAngularImpulse(const BodyID &inBodyID, Vec3Arg inAngularImpulse)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddAngularImpulse")]
|
|
public static partial void BodyInterface_AddAngularImpulse(BodyInterface self, uint bodyID, float3 angularImpulse);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::ApplyBuoyancyImpulse
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L231">Jolt/Physics/Body/BodyInterface.h:231</see>
|
|
/// <br/>
|
|
/// <c>bool ApplyBuoyancyImpulse(const BodyID &inBodyID, RVec3Arg inSurfacePosition, Vec3Arg inSurfaceNormal, float inBuoyancy, float inLinearDrag, float inAngularDrag, Vec3Arg inFluidVelocity, Vec3Arg inGravity, float inDeltaTime)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_ApplyBuoyancyImpulse")]
|
|
public static partial Brutal.Bool8 BodyInterface_ApplyBuoyancyImpulse(BodyInterface self, uint bodyID, float3 surfacePosition, float3 surfaceNormal, float buoyancy, float linearDrag, float angularDrag, float3 fluidVelocity, float3 gravity, float deltaTime);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::GetBodyType
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L236">Jolt/Physics/Body/BodyInterface.h:236</see>
|
|
/// <br/>
|
|
/// <c>EBodyType GetBodyType(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @name Body type
|
|
/// @{
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetBodyType")]
|
|
public static partial EBodyType BodyInterface_GetBodyType(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::SetMotionType
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L241">Jolt/Physics/Body/BodyInterface.h:241</see>
|
|
/// <br/>
|
|
/// <c>void SetMotionType(const BodyID &inBodyID, EMotionType inMotionType, EActivation inActivationMode)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @name Body motion type
|
|
/// @{
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetMotionType")]
|
|
public static partial void BodyInterface_SetMotionType(BodyInterface self, uint bodyID, EMotionType motionType, EActivation activationMode);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::GetMotionType
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L242">Jolt/Physics/Body/BodyInterface.h:242</see>
|
|
/// <br/>
|
|
/// <c>EMotionType GetMotionType(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMotionType")]
|
|
public static partial EMotionType BodyInterface_GetMotionType(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// How well it detects collisions when it has a high velocity
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L247">Jolt/Physics/Body/BodyInterface.h:247</see>
|
|
/// <br/>
|
|
/// <c>void SetMotionQuality(const BodyID &inBodyID, EMotionQuality inMotionQuality)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @name Body motion quality
|
|
/// @{
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetMotionQuality")]
|
|
public static partial void BodyInterface_SetMotionQuality(BodyInterface self, uint bodyID, EMotionQuality motionQuality);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see MotionProperties::GetMotionQuality
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L248">Jolt/Physics/Body/BodyInterface.h:248</see>
|
|
/// <br/>
|
|
/// <c>EMotionQuality GetMotionQuality(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMotionQuality")]
|
|
public static partial EMotionQuality BodyInterface_GetMotionQuality(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::GetInverseInertia
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L252">Jolt/Physics/Body/BodyInterface.h:252</see>
|
|
/// <br/>
|
|
/// <c>Mat44 GetInverseInertia(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get inverse inertia tensor in world space
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetInverseInertia")]
|
|
public static partial float4x4 BodyInterface_GetInverseInertia(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::SetRestitution
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L256">Jolt/Physics/Body/BodyInterface.h:256</see>
|
|
/// <br/>
|
|
/// <c>void SetRestitution(const BodyID &inBodyID, float inRestitution)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @name Restitution
|
|
/// @{
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetRestitution")]
|
|
public static partial void BodyInterface_SetRestitution(BodyInterface self, uint bodyID, float restitution);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::GetRestitution
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L257">Jolt/Physics/Body/BodyInterface.h:257</see>
|
|
/// <br/>
|
|
/// <c>float GetRestitution(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetRestitution")]
|
|
public static partial float BodyInterface_GetRestitution(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::SetFriction
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L262">Jolt/Physics/Body/BodyInterface.h:262</see>
|
|
/// <br/>
|
|
/// <c>void SetFriction(const BodyID &inBodyID, float inFriction)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @name Friction
|
|
/// @{
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetFriction")]
|
|
public static partial void BodyInterface_SetFriction(BodyInterface self, uint bodyID, float friction);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::GetFriction
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L263">Jolt/Physics/Body/BodyInterface.h:263</see>
|
|
/// <br/>
|
|
/// <c>float GetFriction(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetFriction")]
|
|
public static partial float BodyInterface_GetFriction(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see MotionProperties::SetGravityFactor
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L268">Jolt/Physics/Body/BodyInterface.h:268</see>
|
|
/// <br/>
|
|
/// <c>void SetGravityFactor(const BodyID &inBodyID, float inGravityFactor)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @name Gravity factor
|
|
/// @{
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetGravityFactor")]
|
|
public static partial void BodyInterface_SetGravityFactor(BodyInterface self, uint bodyID, float gravityFactor);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see MotionProperties::GetGravityFactor
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L269">Jolt/Physics/Body/BodyInterface.h:269</see>
|
|
/// <br/>
|
|
/// <c>float GetGravityFactor(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetGravityFactor")]
|
|
public static partial float BodyInterface_GetGravityFactor(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see MotionProperties::SetMaxLinearVelocity
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L274">Jolt/Physics/Body/BodyInterface.h:274</see>
|
|
/// <br/>
|
|
/// <c>void SetMaxLinearVelocity(const BodyID &inBodyID, float inLinearVelocity)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @name Max linear velocity
|
|
/// @{
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetMaxLinearVelocity")]
|
|
public static partial void BodyInterface_SetMaxLinearVelocity(BodyInterface self, uint bodyID, float linearVelocity);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see MotionProperties::GetMaxLinearVelocity
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L275">Jolt/Physics/Body/BodyInterface.h:275</see>
|
|
/// <br/>
|
|
/// <c>float GetMaxLinearVelocity(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMaxLinearVelocity")]
|
|
public static partial float BodyInterface_GetMaxLinearVelocity(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see MotionProperties::SetMaxAngularVelocity
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L280">Jolt/Physics/Body/BodyInterface.h:280</see>
|
|
/// <br/>
|
|
/// <c>void SetMaxAngularVelocity(const BodyID &inBodyID, float inAngularVelocity)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @name Max angular velocity
|
|
/// @{
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetMaxAngularVelocity")]
|
|
public static partial void BodyInterface_SetMaxAngularVelocity(BodyInterface self, uint bodyID, float angularVelocity);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see MotionProperties::GetMaxAngularVelocity
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L281">Jolt/Physics/Body/BodyInterface.h:281</see>
|
|
/// <br/>
|
|
/// <c>float GetMaxAngularVelocity(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMaxAngularVelocity")]
|
|
public static partial float BodyInterface_GetMaxAngularVelocity(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::SetUseManifoldReduction
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L286">Jolt/Physics/Body/BodyInterface.h:286</see>
|
|
/// <br/>
|
|
/// <c>void SetUseManifoldReduction(const BodyID &inBodyID, bool inUseReduction)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @name Manifold reduction
|
|
/// @{
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetUseManifoldReduction")]
|
|
public static partial void BodyInterface_SetUseManifoldReduction(BodyInterface self, uint bodyID, Brutal.Bool8 useReduction);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::GetUseManifoldReduction
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L287">Jolt/Physics/Body/BodyInterface.h:287</see>
|
|
/// <br/>
|
|
/// <c>bool GetUseManifoldReduction(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetUseManifoldReduction")]
|
|
public static partial Brutal.Bool8 BodyInterface_GetUseManifoldReduction(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::SetIsSensor
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L292">Jolt/Physics/Body/BodyInterface.h:292</see>
|
|
/// <br/>
|
|
/// <c>void SetIsSensor(const BodyID &inBodyID, bool inIsSensor)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @name Sensor
|
|
/// @{
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetIsSensor")]
|
|
public static partial void BodyInterface_SetIsSensor(BodyInterface self, uint bodyID, Brutal.Bool8 isSensor);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::IsSensor
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L293">Jolt/Physics/Body/BodyInterface.h:293</see>
|
|
/// <br/>
|
|
/// <c>bool IsSensor(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_IsSensor")]
|
|
public static partial Brutal.Bool8 BodyInterface_IsSensor(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::SetCollisionGroup
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L298">Jolt/Physics/Body/BodyInterface.h:298</see>
|
|
/// <br/>
|
|
/// <c>void SetCollisionGroup(const BodyID &inBodyID, const CollisionGroup &inCollisionGroup)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// @name Collision group
|
|
/// @{
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetCollisionGroup")]
|
|
public static partial void BodyInterface_SetCollisionGroup(BodyInterface self, uint bodyID, CollisionGroup collisionGroup);
|
|
/// <summary>
|
|
/// <para>
|
|
/// @see Body::GetCollisionGroup
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L299">Jolt/Physics/Body/BodyInterface.h:299</see>
|
|
/// <br/>
|
|
/// <c>const CollisionGroup & GetCollisionGroup(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetCollisionGroup")]
|
|
public static partial CollisionGroup BodyInterface_GetCollisionGroup(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L306">Jolt/Physics/Body/BodyInterface.h:306</see>
|
|
/// <br/>
|
|
/// <c>uint64 GetUserData(const BodyID &inBodyID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the user data for a body
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetUserData")]
|
|
public static partial ulong BodyInterface_GetUserData(BodyInterface self, uint bodyID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L307">Jolt/Physics/Body/BodyInterface.h:307</see>
|
|
/// <br/>
|
|
/// <c>void SetUserData(const BodyID &inBodyID, uint64 inUserData) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetUserData")]
|
|
public static partial void BodyInterface_SetUserData(BodyInterface self, uint bodyID, ulong userData);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L310">Jolt/Physics/Body/BodyInterface.h:310</see>
|
|
/// <br/>
|
|
/// <c>const PhysicsMaterial * GetMaterial(const BodyID &inBodyID, const SubShapeID &inSubShapeID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the material for a particular sub shape
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMaterial")]
|
|
public static partial PhysicsMaterial BodyInterface_GetMaterial(BodyInterface self, uint bodyID, uint subShapeID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/BodyInterface.h#L313">Jolt/Physics/Body/BodyInterface.h:313</see>
|
|
/// <br/>
|
|
/// <c>void InvalidateContactCache(const BodyID &inBodyID)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Set the Body::EFlags::InvalidateContactCache flag for the specified body. This means that the
|
|
/// collision cache is invalid for any body pair involving that body until the next physics step.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BodyInterface_InvalidateContactCache")]
|
|
public static partial void BodyInterface_InvalidateContactCache(BodyInterface self, uint bodyID);
|
|
}
|
|
}
|
|
}
|