mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
1365 lines
74 KiB
C#
1365 lines
74 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/Body.h#L44">Jolt/Physics/Body/Body.h:44</see>
|
|
/// <br/>
|
|
/// <c>inline const BodyID & GetID() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the id of this body
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetID")]
|
|
public static partial uint Body_GetID(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L47">Jolt/Physics/Body/Body.h:47</see>
|
|
/// <br/>
|
|
/// <c>inline EBodyType GetBodyType() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the type of body (rigid or soft)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetBodyType")]
|
|
public static partial EBodyType Body_GetBodyType(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L50">Jolt/Physics/Body/Body.h:50</see>
|
|
/// <br/>
|
|
/// <c>inline bool IsRigidBody() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if this body is a rigid body
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_IsRigidBody")]
|
|
public static partial Brutal.Bool8 Body_IsRigidBody(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L53">Jolt/Physics/Body/Body.h:53</see>
|
|
/// <br/>
|
|
/// <c>inline bool IsSoftBody() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if this body is a soft body
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_IsSoftBody")]
|
|
public static partial Brutal.Bool8 Body_IsSoftBody(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L58">Jolt/Physics/Body/Body.h:58</see>
|
|
/// <br/>
|
|
/// <c>inline bool IsActive() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// If this body is currently actively simulating (true) or sleeping (false)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_IsActive")]
|
|
public static partial Brutal.Bool8 Body_IsActive(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L61">Jolt/Physics/Body/Body.h:61</see>
|
|
/// <br/>
|
|
/// <c>inline bool IsStatic() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if this body is static (not movable)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_IsStatic")]
|
|
public static partial Brutal.Bool8 Body_IsStatic(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L64">Jolt/Physics/Body/Body.h:64</see>
|
|
/// <br/>
|
|
/// <c>inline bool IsKinematic() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if this body is kinematic (keyframed), which means that it will move according to its current
|
|
/// velocity, but forces don't affect it
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_IsKinematic")]
|
|
public static partial Brutal.Bool8 Body_IsKinematic(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L67">Jolt/Physics/Body/Body.h:67</see>
|
|
/// <br/>
|
|
/// <c>inline bool IsDynamic() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if this body is dynamic, which means that it moves and forces can act on it
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_IsDynamic")]
|
|
public static partial Brutal.Bool8 Body_IsDynamic(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L70">Jolt/Physics/Body/Body.h:70</see>
|
|
/// <br/>
|
|
/// <c>inline bool CanBeKinematicOrDynamic() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if a body could be made kinematic or dynamic (if it was created dynamic or with
|
|
/// mAllowDynamicOrKinematic set to true)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_CanBeKinematicOrDynamic")]
|
|
public static partial Brutal.Bool8 Body_CanBeKinematicOrDynamic(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L77">Jolt/Physics/Body/Body.h:77</see>
|
|
/// <br/>
|
|
/// <c>inline void SetIsSensor(bool inIsSensor)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Change the body to a sensor. A sensor will receive collision callbacks, but will not cause any collision responses and can be used as a trigger volume.
|
|
/// The cheapest sensor (in terms of CPU usage) is a sensor with motion type Static (they can be moved around using BodyInterface::SetPosition/SetPositionAndRotation).
|
|
/// These sensors will only detect collisions with active Dynamic or Kinematic bodies. As soon as a body go to sleep, the contact point with the sensor will be lost.
|
|
/// If you make a sensor Dynamic or Kinematic and activate them, the sensor will be able to detect collisions with sleeping bodies too. An active sensor will never go to sleep automatically.
|
|
/// When you make a Dynamic or Kinematic sensor, make sure it is in an ObjectLayer that does not collide with Static bodies or other sensors to avoid extra overhead in the broad phase.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SetIsSensor")]
|
|
public static partial void Body_SetIsSensor(Body self, Brutal.Bool8 isSensor);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L80">Jolt/Physics/Body/Body.h:80</see>
|
|
/// <br/>
|
|
/// <c>inline bool IsSensor() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if this body is a sensor.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_IsSensor")]
|
|
public static partial Brutal.Bool8 Body_IsSensor(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L85">Jolt/Physics/Body/Body.h:85</see>
|
|
/// <br/>
|
|
/// <c>inline void SetCollideKinematicVsNonDynamic(bool inCollide)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// If kinematic objects can generate contact points against other kinematic or static objects.
|
|
/// Note that turning this on can be CPU intensive as much more collision detection work will be done without any effect on the simulation (kinematic objects are not affected by other kinematic/static objects).
|
|
/// This can be used to make sensors detect static objects. Note that the sensor must be kinematic and active for it to detect static objects.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SetCollideKinematicVsNonDynamic")]
|
|
public static partial void Body_SetCollideKinematicVsNonDynamic(Body self, Brutal.Bool8 collide);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L88">Jolt/Physics/Body/Body.h:88</see>
|
|
/// <br/>
|
|
/// <c>inline bool GetCollideKinematicVsNonDynamic() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if kinematic objects can generate contact points against other kinematic or static objects.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetCollideKinematicVsNonDynamic")]
|
|
public static partial Brutal.Bool8 Body_GetCollideKinematicVsNonDynamic(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L94">Jolt/Physics/Body/Body.h:94</see>
|
|
/// <br/>
|
|
/// <c>inline void SetUseManifoldReduction(bool inUseReduction)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// If PhysicsSettings::mUseManifoldReduction is true, this allows turning off manifold reduction for this specific body.
|
|
/// Manifold reduction by default will combine contacts with similar normals that come from different SubShapeIDs (e.g. different triangles in a mesh shape or different compound shapes).
|
|
/// If the application requires tracking exactly which SubShapeIDs are in contact, you can turn off manifold reduction. Note that this comes at a performance cost.
|
|
/// Consider using BodyInterface::SetUseManifoldReduction if the body could already be in contact with other bodies to ensure that the contact cache is invalidated and you get the correct contact callbacks.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SetUseManifoldReduction")]
|
|
public static partial void Body_SetUseManifoldReduction(Body self, Brutal.Bool8 useReduction);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L97">Jolt/Physics/Body/Body.h:97</see>
|
|
/// <br/>
|
|
/// <c>inline bool GetUseManifoldReduction() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if this body can use manifold reduction.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetUseManifoldReduction")]
|
|
public static partial Brutal.Bool8 Body_GetUseManifoldReduction(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L100">Jolt/Physics/Body/Body.h:100</see>
|
|
/// <br/>
|
|
/// <c>inline bool GetUseManifoldReductionWithBody(const Body &inBody2) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Checks if the combination of this body and inBody2 should use manifold reduction
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetUseManifoldReductionWithBody")]
|
|
public static partial Brutal.Bool8 Body_GetUseManifoldReductionWithBody(Body self, Body body2);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L103">Jolt/Physics/Body/Body.h:103</see>
|
|
/// <br/>
|
|
/// <c>inline void SetApplyGyroscopicForce(bool inApply)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Set to indicate that the gyroscopic force should be applied to this body (aka Dzhanibekov effect,
|
|
/// see https://en.wikipedia.org/wiki/Tennis_racket_theorem)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SetApplyGyroscopicForce")]
|
|
public static partial void Body_SetApplyGyroscopicForce(Body self, Brutal.Bool8 apply);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L106">Jolt/Physics/Body/Body.h:106</see>
|
|
/// <br/>
|
|
/// <c>inline bool GetApplyGyroscopicForce() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if the gyroscopic force is being applied for this body
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetApplyGyroscopicForce")]
|
|
public static partial Brutal.Bool8 Body_GetApplyGyroscopicForce(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L109">Jolt/Physics/Body/Body.h:109</see>
|
|
/// <br/>
|
|
/// <c>inline void SetEnhancedInternalEdgeRemoval(bool inApply)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Set to indicate that extra effort should be made to try to remove ghost contacts (collisions with
|
|
/// internal edges of a mesh). This is more expensive but makes bodies move smoother over a mesh with
|
|
/// convex edges.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SetEnhancedInternalEdgeRemoval")]
|
|
public static partial void Body_SetEnhancedInternalEdgeRemoval(Body self, Brutal.Bool8 apply);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L112">Jolt/Physics/Body/Body.h:112</see>
|
|
/// <br/>
|
|
/// <c>inline bool GetEnhancedInternalEdgeRemoval() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if enhanced internal edge removal is turned on
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetEnhancedInternalEdgeRemoval")]
|
|
public static partial Brutal.Bool8 Body_GetEnhancedInternalEdgeRemoval(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L115">Jolt/Physics/Body/Body.h:115</see>
|
|
/// <br/>
|
|
/// <c>inline bool GetEnhancedInternalEdgeRemovalWithBody(const Body &inBody2) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Checks if the combination of this body and inBody2 should use enhanced internal edge removal
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetEnhancedInternalEdgeRemovalWithBody")]
|
|
public static partial Brutal.Bool8 Body_GetEnhancedInternalEdgeRemovalWithBody(Body self, Body body2);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L118">Jolt/Physics/Body/Body.h:118</see>
|
|
/// <br/>
|
|
/// <c>inline EMotionType GetMotionType() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the bodies motion type.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetMotionType")]
|
|
public static partial EMotionType Body_GetMotionType(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L121">Jolt/Physics/Body/Body.h:121</see>
|
|
/// <br/>
|
|
/// <c>void SetMotionType(EMotionType inMotionType)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Set the motion type of this body. Consider using BodyInterface::SetMotionType instead of this
|
|
/// function if the body may be active or if it needs to be activated.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SetMotionType")]
|
|
public static partial void Body_SetMotionType(Body self, EMotionType motionType);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L124">Jolt/Physics/Body/Body.h:124</see>
|
|
/// <br/>
|
|
/// <c>inline BroadPhaseLayer GetBroadPhaseLayer() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get broadphase layer, this determines in which broad phase sub-tree the object is placed
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetBroadPhaseLayer")]
|
|
public static partial byte Body_GetBroadPhaseLayer(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L127">Jolt/Physics/Body/Body.h:127</see>
|
|
/// <br/>
|
|
/// <c>inline ObjectLayer GetObjectLayer() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get object layer, this determines which other objects it collides with
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetObjectLayer")]
|
|
public static partial ushort Body_GetObjectLayer(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L130">Jolt/Physics/Body/Body.h:130</see>
|
|
/// <br/>
|
|
/// <c>const CollisionGroup & GetCollisionGroup() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Collision group and sub-group ID, determines which other objects it collides with
|
|
/// </para>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetCollisionGroup")]
|
|
public static partial CollisionGroup Body_GetCollisionGroup(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L132">Jolt/Physics/Body/Body.h:132</see>
|
|
/// <br/>
|
|
/// <c>void SetCollisionGroup(const CollisionGroup &inGroup)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SetCollisionGroup")]
|
|
public static partial void Body_SetCollisionGroup(Body self, CollisionGroup group);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L135">Jolt/Physics/Body/Body.h:135</see>
|
|
/// <br/>
|
|
/// <c>bool GetAllowSleeping() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// If this body can go to sleep. Note that disabling sleeping on a sleeping object will not wake it up.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetAllowSleeping")]
|
|
public static partial Brutal.Bool8 Body_GetAllowSleeping(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L136">Jolt/Physics/Body/Body.h:136</see>
|
|
/// <br/>
|
|
/// <c>void SetAllowSleeping(bool inAllow)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SetAllowSleeping")]
|
|
public static partial void Body_SetAllowSleeping(Body self, Brutal.Bool8 allow);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L139">Jolt/Physics/Body/Body.h:139</see>
|
|
/// <br/>
|
|
/// <c>inline void ResetSleepTimer()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Resets the sleep timer. This does not wake up the body if it is sleeping, but allows resetting the
|
|
/// system that detects when a body is sleeping.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_ResetSleepTimer")]
|
|
public static partial void Body_ResetSleepTimer(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L142">Jolt/Physics/Body/Body.h:142</see>
|
|
/// <br/>
|
|
/// <c>inline float GetFriction() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Friction (dimensionless number, usually between 0 and 1, 0 = no friction, 1 = friction force equals
|
|
/// force that presses the two bodies together). Note that bodies can have negative friction but the
|
|
/// combined friction (see PhysicsSystem::SetCombineFriction) should never go below zero.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetFriction")]
|
|
public static partial float Body_GetFriction(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L143">Jolt/Physics/Body/Body.h:143</see>
|
|
/// <br/>
|
|
/// <c>void SetFriction(float inFriction)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SetFriction")]
|
|
public static partial void Body_SetFriction(Body self, float friction);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L146">Jolt/Physics/Body/Body.h:146</see>
|
|
/// <br/>
|
|
/// <c>inline float GetRestitution() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Restitution (dimensionless number, usually between 0 and 1, 0 = completely inelastic collision
|
|
/// response, 1 = completely elastic collision response). Note that bodies can have negative restitution
|
|
/// but the combined restitution (see PhysicsSystem::SetCombineRestitution) should never go below zero.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetRestitution")]
|
|
public static partial float Body_GetRestitution(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L147">Jolt/Physics/Body/Body.h:147</see>
|
|
/// <br/>
|
|
/// <c>void SetRestitution(float inRestitution)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SetRestitution")]
|
|
public static partial void Body_SetRestitution(Body self, float restitution);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L150">Jolt/Physics/Body/Body.h:150</see>
|
|
/// <br/>
|
|
/// <c>inline Vec3 GetLinearVelocity() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get world space linear velocity of the center of mass (unit: m/s)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetLinearVelocity")]
|
|
public static partial float3 Body_GetLinearVelocity(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L154">Jolt/Physics/Body/Body.h:154</see>
|
|
/// <br/>
|
|
/// <c>void SetLinearVelocity(Vec3Arg inLinearVelocity)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Set world space linear velocity of the center of mass (unit: m/s).
|
|
/// If you want the body to wake up when it is sleeping, use BodyInterface::SetLinearVelocity instead.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SetLinearVelocity")]
|
|
public static partial void Body_SetLinearVelocity(Body self, float3 linearVelocity);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L158">Jolt/Physics/Body/Body.h:158</see>
|
|
/// <br/>
|
|
/// <c>void SetLinearVelocityClamped(Vec3Arg inLinearVelocity)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Set world space linear velocity of the center of mass, will make sure the value is clamped against the maximum linear velocity.
|
|
/// If you want the body to wake up when it is sleeping, use BodyInterface::SetLinearVelocity instead.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SetLinearVelocityClamped")]
|
|
public static partial void Body_SetLinearVelocityClamped(Body self, float3 linearVelocity);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L161">Jolt/Physics/Body/Body.h:161</see>
|
|
/// <br/>
|
|
/// <c>inline Vec3 GetAngularVelocity() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get world space angular velocity of the center of mass (unit: rad/s)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetAngularVelocity")]
|
|
public static partial float3 Body_GetAngularVelocity(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L165">Jolt/Physics/Body/Body.h:165</see>
|
|
/// <br/>
|
|
/// <c>void SetAngularVelocity(Vec3Arg inAngularVelocity)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Set world space angular velocity of the center of mass (unit: rad/s).
|
|
/// If you want the body to wake up when it is sleeping, use BodyInterface::SetAngularVelocity instead.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SetAngularVelocity")]
|
|
public static partial void Body_SetAngularVelocity(Body self, float3 angularVelocity);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L169">Jolt/Physics/Body/Body.h:169</see>
|
|
/// <br/>
|
|
/// <c>void SetAngularVelocityClamped(Vec3Arg inAngularVelocity)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Set world space angular velocity of the center of mass, will make sure the value is clamped against the maximum angular velocity.
|
|
/// If you want the body to wake up when it is sleeping, use BodyInterface::SetAngularVelocity instead.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SetAngularVelocityClamped")]
|
|
public static partial void Body_SetAngularVelocityClamped(Body self, float3 angularVelocity);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L172">Jolt/Physics/Body/Body.h:172</see>
|
|
/// <br/>
|
|
/// <c>inline Vec3 GetPointVelocityCOM(Vec3Arg inPointRelativeToCOM) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Velocity of point inPoint (in center of mass space, e.g. on the surface of the body) of the body
|
|
/// (unit: m/s)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetPointVelocityCOM")]
|
|
public static partial float3 Body_GetPointVelocityCOM(Body self, float3 pointRelativeToCOM);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L175">Jolt/Physics/Body/Body.h:175</see>
|
|
/// <br/>
|
|
/// <c>inline Vec3 GetPointVelocity(RVec3Arg inPoint) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Velocity of point inPoint (in world space, e.g. on the surface of the body) of the body (unit: m/s)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetPointVelocity")]
|
|
public static partial float3 Body_GetPointVelocity(Body self, float3 point);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L179">Jolt/Physics/Body/Body.h:179</see>
|
|
/// <br/>
|
|
/// <c>inline void AddForce(Vec3Arg inForce)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Add force (unit: N) at center of mass for the next time step, will be reset after the next call to PhysicsSystem::Update.
|
|
/// If you want the body to wake up when it is sleeping, use BodyInterface::AddForce instead.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_AddForce")]
|
|
public static partial void Body_AddForce(Body self, float3 force);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L183">Jolt/Physics/Body/Body.h:183</see>
|
|
/// <br/>
|
|
/// <c>inline void AddForce(Vec3Arg inForce, RVec3Arg inPosition)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Add force (unit: N) at world space position inPosition for the next time step, will be reset after the next call to PhysicsSystem::Update.
|
|
/// If you want the body to wake up when it is sleeping, use BodyInterface::AddForce instead.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_AddForce_2")]
|
|
public static partial void Body_AddForce_2(Body self, float3 force, float3 position);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L187">Jolt/Physics/Body/Body.h:187</see>
|
|
/// <br/>
|
|
/// <c>inline void AddTorque(Vec3Arg inTorque)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Add torque (unit: N m) for the next time step, will be reset after the next call to PhysicsSystem::Update.
|
|
/// If you want the body to wake up when it is sleeping, use BodyInterface::AddTorque instead.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_AddTorque")]
|
|
public static partial void Body_AddTorque(Body self, float3 torque);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L190">Jolt/Physics/Body/Body.h:190</see>
|
|
/// <br/>
|
|
/// <c>inline Vec3 GetAccumulatedForce() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the total amount of force applied to the center of mass this time step (through AddForce calls).
|
|
/// Note that it will reset to zero after PhysicsSystem::Update.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetAccumulatedForce")]
|
|
public static partial float3 Body_GetAccumulatedForce(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L193">Jolt/Physics/Body/Body.h:193</see>
|
|
/// <br/>
|
|
/// <c>inline Vec3 GetAccumulatedTorque() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the total amount of torque applied to the center of mass this time step (through
|
|
/// AddForce/AddTorque calls). Note that it will reset to zero after PhysicsSystem::Update.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetAccumulatedTorque")]
|
|
public static partial float3 Body_GetAccumulatedTorque(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L196">Jolt/Physics/Body/Body.h:196</see>
|
|
/// <br/>
|
|
/// <c>void ResetForce()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Reset the total accumulated force, not that this will be done automatically after every time step.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_ResetForce")]
|
|
public static partial void Body_ResetForce(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L199">Jolt/Physics/Body/Body.h:199</see>
|
|
/// <br/>
|
|
/// <c>void ResetTorque()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Reset the total accumulated torque, not that this will be done automatically after every time step.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_ResetTorque")]
|
|
public static partial void Body_ResetTorque(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L202">Jolt/Physics/Body/Body.h:202</see>
|
|
/// <br/>
|
|
/// <c>void ResetMotion()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Reset the current velocity and accumulated force and torque.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_ResetMotion")]
|
|
public static partial void Body_ResetMotion(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L205">Jolt/Physics/Body/Body.h:205</see>
|
|
/// <br/>
|
|
/// <c>inline Mat44 GetInverseInertia() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get inverse inertia tensor in world space
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetInverseInertia")]
|
|
public static partial float4x4 Body_GetInverseInertia(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L209">Jolt/Physics/Body/Body.h:209</see>
|
|
/// <br/>
|
|
/// <c>inline void AddImpulse(Vec3Arg inImpulse)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Add impulse to center of mass (unit: kg m/s).
|
|
/// If you want the body to wake up when it is sleeping, use BodyInterface::AddImpulse instead.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_AddImpulse")]
|
|
public static partial void Body_AddImpulse(Body self, float3 impulse);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L213">Jolt/Physics/Body/Body.h:213</see>
|
|
/// <br/>
|
|
/// <c>inline void AddImpulse(Vec3Arg inImpulse, RVec3Arg inPosition)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Add impulse to point in world space (unit: kg m/s).
|
|
/// If you want the body to wake up when it is sleeping, use BodyInterface::AddImpulse instead.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_AddImpulse_2")]
|
|
public static partial void Body_AddImpulse_2(Body self, float3 impulse, float3 position);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L217">Jolt/Physics/Body/Body.h:217</see>
|
|
/// <br/>
|
|
/// <c>inline void AddAngularImpulse(Vec3Arg inAngularImpulse)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Add angular impulse in world space (unit: N m s).
|
|
/// If you want the body to wake up when it is sleeping, use BodyInterface::AddAngularImpulse instead.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_AddAngularImpulse")]
|
|
public static partial void Body_AddAngularImpulse(Body self, float3 angularImpulse);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L221">Jolt/Physics/Body/Body.h:221</see>
|
|
/// <br/>
|
|
/// <c>void MoveKinematic(RVec3Arg inTargetPosition, QuatArg inTargetRotation, float inDeltaTime)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Set velocity of body such that it will be positioned at inTargetPosition/Rotation in inDeltaTime seconds.
|
|
/// If you want the body to wake up when it is sleeping, use BodyInterface::MoveKinematic instead.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_MoveKinematic")]
|
|
public static partial void Body_MoveKinematic(Body self, float3 targetPosition, floatQuat targetRotation, float deltaTime);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L229">Jolt/Physics/Body/Body.h:229</see>
|
|
/// <br/>
|
|
/// <c>void GetSubmergedVolume(RVec3Arg inSurfacePosition, Vec3Arg inSurfaceNormal, float &outTotalVolume, float &outSubmergedVolume, Vec3 &outRelativeCenterOfBuoyancy) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Gets the properties needed to do buoyancy calculations
|
|
/// @param inSurfacePosition Position of the fluid surface in world space
|
|
/// @param inSurfaceNormal Normal of the fluid surface (should point up)
|
|
/// @param outTotalVolume On return this contains the total volume of the shape
|
|
/// @param outSubmergedVolume On return this contains the submerged volume of the shape
|
|
/// @param outRelativeCenterOfBuoyancy On return this contains the center of mass of the submerged volume relative to the center of mass of the body
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetSubmergedVolume")]
|
|
public static partial void Body_GetSubmergedVolume(Body self, float3 surfacePosition, float3 surfaceNormal, out float totalVolume, out float submergedVolume, out float3 relativeCenterOfBuoyancy);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L242">Jolt/Physics/Body/Body.h:242</see>
|
|
/// <br/>
|
|
/// <c>bool ApplyBuoyancyImpulse(RVec3Arg inSurfacePosition, Vec3Arg inSurfaceNormal, float inBuoyancy, float inLinearDrag, float inAngularDrag, Vec3Arg inFluidVelocity, Vec3Arg inGravity, float inDeltaTime)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Applies an impulse to the body that simulates fluid buoyancy and drag.
|
|
/// If you want the body to wake up when it is sleeping, use BodyInterface::ApplyBuoyancyImpulse instead.
|
|
/// @param inSurfacePosition Position of the fluid surface in world space
|
|
/// @param inSurfaceNormal Normal of the fluid surface (should point up)
|
|
/// @param inBuoyancy The buoyancy factor for the body. 1 = neutral body, &lt; 1 sinks, &gt; 1 floats. Note that we don't use the fluid density since it is harder to configure than a simple number between [0, 2]
|
|
/// @param inLinearDrag Linear drag factor that slows down the body when in the fluid (approx. 0.5)
|
|
/// @param inAngularDrag Angular drag factor that slows down rotation when the body is in the fluid (approx. 0.01)
|
|
/// @param inFluidVelocity The average velocity of the fluid (in m/s) in which the body resides
|
|
/// @param inGravity The gravity vector (pointing down)
|
|
/// @param inDeltaTime Delta time of the next simulation step (in s)
|
|
/// @return true if an impulse was applied, false if the body was not in the fluid
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_ApplyBuoyancyImpulse")]
|
|
public static partial Brutal.Bool8 Body_ApplyBuoyancyImpulse(Body self, float3 surfacePosition, float3 surfaceNormal, float buoyancy, float linearDrag, float angularDrag, float3 fluidVelocity, float3 gravity, float deltaTime);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L256">Jolt/Physics/Body/Body.h:256</see>
|
|
/// <br/>
|
|
/// <c>bool ApplyBuoyancyImpulse(float inTotalVolume, float inSubmergedVolume, Vec3Arg inRelativeCenterOfBuoyancy, float inBuoyancy, float inLinearDrag, float inAngularDrag, Vec3Arg inFluidVelocity, Vec3Arg inGravity, float inDeltaTime)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Applies an impulse to the body that simulates fluid buoyancy and drag.
|
|
/// If you want the body to wake up when it is sleeping, use BodyInterface::ApplyBuoyancyImpulse instead.
|
|
/// @param inTotalVolume Total volume of the shape of this body (m^3)
|
|
/// @param inSubmergedVolume Submerged volume of the shape of this body (m^3)
|
|
/// @param inRelativeCenterOfBuoyancy The center of mass of the submerged volume relative to the center of mass of the body
|
|
/// @param inBuoyancy The buoyancy factor for the body. 1 = neutral body, &lt; 1 sinks, &gt; 1 floats. Note that we don't use the fluid density since it is harder to configure than a simple number between [0, 2]
|
|
/// @param inLinearDrag Linear drag factor that slows down the body when in the fluid (approx. 0.5)
|
|
/// @param inAngularDrag Angular drag factor that slows down rotation when the body is in the fluid (approx. 0.01)
|
|
/// @param inFluidVelocity The average velocity of the fluid (in m/s) in which the body resides
|
|
/// @param inGravity The gravity vector (pointing down)
|
|
/// @param inDeltaTime Delta time of the next simulation step (in s)
|
|
/// @return true if an impulse was applied, false if the body was not in the fluid
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_ApplyBuoyancyImpulse_2")]
|
|
public static partial Brutal.Bool8 Body_ApplyBuoyancyImpulse_2(Body self, float totalVolume, float submergedVolume, float3 relativeCenterOfBuoyancy, float buoyancy, float linearDrag, float angularDrag, float3 fluidVelocity, float3 gravity, float deltaTime);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L259">Jolt/Physics/Body/Body.h:259</see>
|
|
/// <br/>
|
|
/// <c>inline bool IsInBroadPhase() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if this body has been added to the physics system
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_IsInBroadPhase")]
|
|
public static partial Brutal.Bool8 Body_IsInBroadPhase(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L262">Jolt/Physics/Body/Body.h:262</see>
|
|
/// <br/>
|
|
/// <c>inline bool IsCollisionCacheInvalid() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if this body has been changed in such a way that the collision cache should be considered
|
|
/// invalid for any body interacting with this body
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_IsCollisionCacheInvalid")]
|
|
public static partial Brutal.Bool8 Body_IsCollisionCacheInvalid(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L265">Jolt/Physics/Body/Body.h:265</see>
|
|
/// <br/>
|
|
/// <c>inline const Shape * GetShape() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the shape of this body
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetShape")]
|
|
public static partial Shape Body_GetShape(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L268">Jolt/Physics/Body/Body.h:268</see>
|
|
/// <br/>
|
|
/// <c>inline RVec3 GetPosition() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// World space position of the body
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetPosition")]
|
|
public static partial float3 Body_GetPosition(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L271">Jolt/Physics/Body/Body.h:271</see>
|
|
/// <br/>
|
|
/// <c>inline Quat GetRotation() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// World space rotation of the body
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetRotation")]
|
|
public static partial floatQuat Body_GetRotation(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L274">Jolt/Physics/Body/Body.h:274</see>
|
|
/// <br/>
|
|
/// <c>inline RMat44 GetWorldTransform() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Calculates the transform of this body
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetWorldTransform")]
|
|
public static partial float4x4 Body_GetWorldTransform(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L277">Jolt/Physics/Body/Body.h:277</see>
|
|
/// <br/>
|
|
/// <c>inline RVec3 GetCenterOfMassPosition() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Gets the world space position of this body's center of mass
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetCenterOfMassPosition")]
|
|
public static partial float3 Body_GetCenterOfMassPosition(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L280">Jolt/Physics/Body/Body.h:280</see>
|
|
/// <br/>
|
|
/// <c>inline RMat44 GetCenterOfMassTransform() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Calculates the transform for this body's center of mass
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetCenterOfMassTransform")]
|
|
public static partial float4x4 Body_GetCenterOfMassTransform(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L283">Jolt/Physics/Body/Body.h:283</see>
|
|
/// <br/>
|
|
/// <c>inline RMat44 GetInverseCenterOfMassTransform() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Calculates the inverse of the transform for this body's center of mass
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetInverseCenterOfMassTransform")]
|
|
public static partial float4x4 Body_GetInverseCenterOfMassTransform(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L286">Jolt/Physics/Body/Body.h:286</see>
|
|
/// <br/>
|
|
/// <c>inline const AABox & GetWorldSpaceBounds() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get world space bounding box
|
|
/// </para>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetWorldSpaceBounds")]
|
|
public static partial AABox Body_GetWorldSpaceBounds(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L308">Jolt/Physics/Body/Body.h:308</see>
|
|
/// <br/>
|
|
/// <c>const MotionProperties *GetMotionProperties() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Access to the motion properties
|
|
/// </para>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetMotionProperties")]
|
|
public static partial MotionProperties Body_GetMotionProperties(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L312">Jolt/Physics/Body/Body.h:312</see>
|
|
/// <br/>
|
|
/// <c>const MotionProperties *GetMotionPropertiesUnchecked() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Access to the motion properties (version that does not check if the object is kinematic or dynamic)
|
|
/// </para>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetMotionPropertiesUnchecked")]
|
|
public static partial MotionProperties Body_GetMotionPropertiesUnchecked(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L316">Jolt/Physics/Body/Body.h:316</see>
|
|
/// <br/>
|
|
/// <c>uint64 GetUserData() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Access to the user data, can be used for anything by the application
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetUserData")]
|
|
public static partial ulong Body_GetUserData(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L317">Jolt/Physics/Body/Body.h:317</see>
|
|
/// <br/>
|
|
/// <c>void SetUserData(uint64 inUserData)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SetUserData")]
|
|
public static partial void Body_SetUserData(Body self, ulong userData);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L320">Jolt/Physics/Body/Body.h:320</see>
|
|
/// <br/>
|
|
/// <c>inline Vec3 GetWorldSpaceSurfaceNormal(const SubShapeID &inSubShapeID, RVec3Arg inPosition) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get surface normal of a particular sub shape and its world space surface position on this body
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetWorldSpaceSurfaceNormal")]
|
|
public static partial float3 Body_GetWorldSpaceSurfaceNormal(Body self, uint subShapeID, float3 position);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L339">Jolt/Physics/Body/Body.h:339</see>
|
|
/// <br/>
|
|
/// <c>static inline bool sFindCollidingPairsCanCollide(const Body &inBody1, const Body &inBody2)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Helper function for BroadPhase::FindCollidingPairs that returns true when two bodies can collide
|
|
/// It assumes that body 1 is dynamic and active and guarantees that it body 1 collides with body 2 that body 2 will not collide with body 1 in order to avoid finding duplicate collision pairs
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_sFindCollidingPairsCanCollide")]
|
|
public static partial Brutal.Bool8 Body_sFindCollidingPairsCanCollide(Body body1, Body body2);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L342">Jolt/Physics/Body/Body.h:342</see>
|
|
/// <br/>
|
|
/// <c>inline void AddPositionStep(Vec3Arg inLinearVelocityTimesDeltaTime)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Update position using an Euler step (used during position integrate & constraint solving)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_AddPositionStep")]
|
|
public static partial void Body_AddPositionStep(Body self, float3 linearVelocityTimesDeltaTime);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L343">Jolt/Physics/Body/Body.h:343</see>
|
|
/// <br/>
|
|
/// <c>inline void SubPositionStep(Vec3Arg inLinearVelocityTimesDeltaTime)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SubPositionStep")]
|
|
public static partial void Body_SubPositionStep(Body self, float3 linearVelocityTimesDeltaTime);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L346">Jolt/Physics/Body/Body.h:346</see>
|
|
/// <br/>
|
|
/// <c>inline void AddRotationStep(Vec3Arg inAngularVelocityTimesDeltaTime)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Update rotation using an Euler step (used during position integrate & constraint solving)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_AddRotationStep")]
|
|
public static partial void Body_AddRotationStep(Body self, float3 angularVelocityTimesDeltaTime);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L347">Jolt/Physics/Body/Body.h:347</see>
|
|
/// <br/>
|
|
/// <c>inline void SubRotationStep(Vec3Arg inAngularVelocityTimesDeltaTime)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SubRotationStep")]
|
|
public static partial void Body_SubRotationStep(Body self, float3 angularVelocityTimesDeltaTime);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L350">Jolt/Physics/Body/Body.h:350</see>
|
|
/// <br/>
|
|
/// <c>inline void SetInBroadPhaseInternal(bool inInBroadPhase)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Flag if body is in the broadphase (should only be called by the BroadPhase)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SetInBroadPhaseInternal")]
|
|
public static partial void Body_SetInBroadPhaseInternal(Body self, Brutal.Bool8 inBroadPhase);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L353">Jolt/Physics/Body/Body.h:353</see>
|
|
/// <br/>
|
|
/// <c>inline bool InvalidateContactCacheInternal()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Invalidate the contact cache (should only be called by the BodyManager), will be reset the next
|
|
/// simulation step. Returns true if the contact cache was still valid.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_InvalidateContactCacheInternal")]
|
|
public static partial Brutal.Bool8 Body_InvalidateContactCacheInternal(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L356">Jolt/Physics/Body/Body.h:356</see>
|
|
/// <br/>
|
|
/// <c>inline void ValidateContactCacheInternal()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Reset the collision cache invalid flag (should only be called by the BodyManager).
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_ValidateContactCacheInternal")]
|
|
public static partial void Body_ValidateContactCacheInternal(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L359">Jolt/Physics/Body/Body.h:359</see>
|
|
/// <br/>
|
|
/// <c>void CalculateWorldSpaceBoundsInternal()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Updates world space bounding box (should only be called by the PhysicsSystem)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_CalculateWorldSpaceBoundsInternal")]
|
|
public static partial void Body_CalculateWorldSpaceBoundsInternal(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L362">Jolt/Physics/Body/Body.h:362</see>
|
|
/// <br/>
|
|
/// <c>void SetPositionAndRotationInternal(RVec3Arg inPosition, QuatArg inRotation, bool inResetSleepTimer = true)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Function to update body's position (should only be called by the BodyInterface since it also
|
|
/// requires updating the broadphase)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SetPositionAndRotationInternal")]
|
|
public static partial void Body_SetPositionAndRotationInternal(Body self, float3 position, floatQuat rotation, Brutal.Bool8 resetSleepTimer);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L367">Jolt/Physics/Body/Body.h:367</see>
|
|
/// <br/>
|
|
/// <c>void UpdateCenterOfMassInternal(Vec3Arg inPreviousCenterOfMass, bool inUpdateMassProperties)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Updates the center of mass and optionally mass properties after shifting the center of mass or changes to the shape (should only be called by the BodyInterface since it also requires updating the broadphase)
|
|
/// @param inPreviousCenterOfMass Center of mass of the shape before the alterations
|
|
/// @param inUpdateMassProperties When true, the mass and inertia tensor is recalculated
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_UpdateCenterOfMassInternal")]
|
|
public static partial void Body_UpdateCenterOfMassInternal(Body self, float3 previousCenterOfMass, Brutal.Bool8 updateMassProperties);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L372">Jolt/Physics/Body/Body.h:372</see>
|
|
/// <br/>
|
|
/// <c>void SetShapeInternal(const Shape *inShape, bool inUpdateMassProperties)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Function to update a body's shape (should only be called by the BodyInterface since it also requires updating the broadphase)
|
|
/// @param inShape The new shape for this body
|
|
/// @param inUpdateMassProperties When true, the mass and inertia tensor is recalculated
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_SetShapeInternal")]
|
|
public static partial void Body_SetShapeInternal(Body self, Shape shape, Brutal.Bool8 updateMassProperties);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L380">Jolt/Physics/Body/Body.h:380</see>
|
|
/// <br/>
|
|
/// <c>uint32 GetIndexInActiveBodiesInternal() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Access to the index in the BodyManager::mActiveBodies list
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_GetIndexInActiveBodiesInternal")]
|
|
public static partial uint Body_GetIndexInActiveBodiesInternal(Body self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Body/Body.h#L383">Jolt/Physics/Body/Body.h:383</see>
|
|
/// <br/>
|
|
/// <c>ECanSleep UpdateSleepStateInternal(float inDeltaTime, float inMaxMovement, float inTimeBeforeSleep)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Update eligibility for sleeping
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "Body_UpdateSleepStateInternal")]
|
|
public static partial ECanSleep Body_UpdateSleepStateInternal(Body self, float deltaTime, float maxMovement, float timeBeforeSleep);
|
|
}
|
|
}
|
|
}
|