// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { public static partial class Jolt { public static unsafe partial class PInvoke { /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:39 ///
/// void Init(BodyLockInterface &inBodyLockInterface, BodyManager &inBodyManager, BroadPhase &inBroadPhase) ///
///
/// /// /// Initialize the interface (should only be called by PhysicsSystem) /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_Init")] public static partial void BodyInterface_Init(BodyInterface self, BodyLockInterface bodyLockInterface, BodyManager bodyManager, BroadPhase broadPhase); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:43 ///
/// Body * CreateBody(const BodyCreationSettings &inSettings) ///
///
/// /// /// Create a rigid body /// @return Created body or null when out of bodies /// /// /// The returned handle is borrowed from its owner; don't Dispose it. /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_CreateBody")] public static partial Body BodyInterface_CreateBody(BodyInterface self, BodyCreationSettings settings); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:47 ///
/// Body * CreateSoftBody(const SoftBodyCreationSettings &inSettings) ///
///
/// /// /// Create a soft body /// @return Created body or null when out of bodies /// /// /// The returned handle is borrowed from its owner; don't Dispose it. /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_CreateSoftBody")] public static partial Body BodyInterface_CreateSoftBody(BodyInterface self, SoftBodyCreationSettings settings); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:52 ///
/// Body * CreateBodyWithID(const BodyID &inBodyID, const BodyCreationSettings &inSettings) ///
///
/// /// /// 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. /// /// /// The returned handle is borrowed from its owner; don't Dispose it. /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_CreateBodyWithID")] public static partial Body BodyInterface_CreateBodyWithID(BodyInterface self, uint bodyID, BodyCreationSettings settings); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:55 ///
/// Body * CreateSoftBodyWithID(const BodyID &inBodyID, const SoftBodyCreationSettings &inSettings) ///
///
/// /// /// Create a soft body with specified ID. See comments at CreateBodyWithID. /// /// /// The returned handle is borrowed from its owner; don't Dispose it. /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_CreateSoftBodyWithID")] public static partial Body BodyInterface_CreateSoftBodyWithID(BodyInterface self, uint bodyID, SoftBodyCreationSettings settings); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:60 ///
/// Body * CreateBodyWithoutID(const BodyCreationSettings &inSettings) const ///
///
/// /// /// 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 /// /// /// The returned handle is borrowed from its owner; don't Dispose it. /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_CreateBodyWithoutID")] public static partial Body BodyInterface_CreateBodyWithoutID(BodyInterface self, BodyCreationSettings settings); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:63 ///
/// Body * CreateSoftBodyWithoutID(const SoftBodyCreationSettings &inSettings) const ///
///
/// /// /// Advanced use only. Creates a body without specifying an ID. See comments at CreateBodyWithoutID. /// /// /// The returned handle is borrowed from its owner; don't Dispose it. /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_CreateSoftBodyWithoutID")] public static partial Body BodyInterface_CreateSoftBodyWithoutID(BodyInterface self, SoftBodyCreationSettings settings); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:67 ///
/// void DestroyBodyWithoutID(Body *inBody) const ///
///
/// /// /// 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. /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_DestroyBodyWithoutID")] public static partial void BodyInterface_DestroyBodyWithoutID(BodyInterface self, Body body); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:71 ///
/// bool AssignBodyID(Body *ioBody) ///
///
/// /// /// 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. /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_AssignBodyID")] public static partial Brutal.Bool8 BodyInterface_AssignBodyID(BodyInterface self, Body body); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:75 ///
/// bool AssignBodyID(Body *ioBody, const BodyID &inBodyID) ///
///
/// /// /// 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. /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_AssignBodyID_2")] public static partial Brutal.Bool8 BodyInterface_AssignBodyID_2(BodyInterface self, Body body, uint bodyID); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:78 ///
/// Body * UnassignBodyID(const BodyID &inBodyID) ///
///
/// /// /// Advanced use only. See UnassignBodyIDs. Unassigns the ID of a single body. /// /// /// The returned handle is borrowed from its owner; don't Dispose it. /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_UnassignBodyID")] public static partial Body BodyInterface_UnassignBodyID(BodyInterface self, uint bodyID); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:89 ///
/// void DestroyBody(const BodyID &inBodyID) ///
///
/// /// /// Destroy a body. /// Make sure that you remove the body from the physics system using BodyInterface::RemoveBody before calling this function. /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_DestroyBody")] public static partial void BodyInterface_DestroyBody(BodyInterface self, uint bodyID); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:93 ///
/// void DestroyBodies(const BodyID *inBodyIDs, int inNumber) ///
///
/// /// /// Destroy multiple bodies /// Make sure that you remove the bodies from the physics system using BodyInterface::RemoveBody before calling this function. /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_DestroyBodies")] public static partial void BodyInterface_DestroyBodies(BodyInterface self, uint* bodyIDs, int number); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:99 ///
/// void AddBody(const BodyID &inBodyID, EActivation inActivationMode) ///
///
/// /// /// 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! /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_AddBody")] public static partial void BodyInterface_AddBody(BodyInterface self, uint bodyID, EActivation activationMode); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:102 ///
/// void RemoveBody(const BodyID &inBodyID) ///
///
/// /// /// Remove body from the physics system. Note that you need to add a body to the physics system before /// you can remove it. /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_RemoveBody")] public static partial void BodyInterface_RemoveBody(BodyInterface self, uint bodyID); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:105 ///
/// bool IsAdded(const BodyID &inBodyID) const ///
///
/// /// /// Check if a body has been added to the physics system. /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_IsAdded")] public static partial Brutal.Bool8 BodyInterface_IsAdded(BodyInterface self, uint bodyID); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:109 ///
/// BodyID CreateAndAddBody(const BodyCreationSettings &inSettings, EActivation inActivationMode) ///
///
/// /// /// Combines CreateBody and AddBody /// @return Created body ID or an invalid ID when out of bodies /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_CreateAndAddBody")] public static partial uint BodyInterface_CreateAndAddBody(BodyInterface self, BodyCreationSettings settings, EActivation activationMode); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:113 ///
/// BodyID CreateAndAddSoftBody(const SoftBodyCreationSettings &inSettings, EActivation inActivationMode) ///
///
/// /// /// Combines CreateSoftBody and AddBody /// @return Created body ID or an invalid ID when out of bodies /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_CreateAndAddSoftBody")] public static partial uint BodyInterface_CreateAndAddSoftBody(BodyInterface self, SoftBodyCreationSettings settings, EActivation activationMode); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:137 ///
/// void RemoveBodies(BodyID *ioBodies, int inNumber) ///
///
/// /// /// 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. /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_RemoveBodies")] public static partial void BodyInterface_RemoveBodies(BodyInterface self, uint* bodies, int number); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:142 ///
/// void ActivateBody(const BodyID &inBodyID) ///
///
/// /// /// @name Activate / deactivate a body. Note that you need to add a body to the physics system before you can activate it. /// @{ /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_ActivateBody")] public static partial void BodyInterface_ActivateBody(BodyInterface self, uint bodyID); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:143 ///
/// void ActivateBodies(const BodyID *inBodyIDs, int inNumber) ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_ActivateBodies")] public static partial void BodyInterface_ActivateBodies(BodyInterface self, uint* bodyIDs, int number); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:144 ///
/// void ActivateBodiesInAABox(const AABox &inBox, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter, const ObjectLayerFilter &inObjectLayerFilter) ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_ActivateBodiesInAABox")] public static partial void BodyInterface_ActivateBodiesInAABox(BodyInterface self, AABox box, BroadPhaseLayerFilter broadPhaseLayerFilter, ObjectLayerFilter objectLayerFilter); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:145 ///
/// void DeactivateBody(const BodyID &inBodyID) ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_DeactivateBody")] public static partial void BodyInterface_DeactivateBody(BodyInterface self, uint bodyID); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:146 ///
/// void DeactivateBodies(const BodyID *inBodyIDs, int inNumber) ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_DeactivateBodies")] public static partial void BodyInterface_DeactivateBodies(BodyInterface self, uint* bodyIDs, int number); /// /// /// Checks if a body is currently actively simulating /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:147 ///
/// bool IsActive(const BodyID &inBodyID) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_IsActive")] public static partial Brutal.Bool8 BodyInterface_IsActive(BodyInterface self, uint bodyID); /// /// /// @see Body::ResetSleepTimer /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:148 ///
/// void ResetSleepTimer(const BodyID &inBodyID) ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_ResetSleepTimer")] public static partial void BodyInterface_ResetSleepTimer(BodyInterface self, uint bodyID); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:152 ///
/// TwoBodyConstraint * CreateConstraint(const TwoBodyConstraintSettings *inSettings, const BodyID &inBodyID1, const BodyID &inBodyID2) ///
///
/// /// /// Create a two body constraint /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_CreateConstraint")] public static partial TwoBodyConstraint BodyInterface_CreateConstraint(BodyInterface self, TwoBodyConstraintSettings settings, uint bodyID1, uint bodyID2); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:156 ///
/// void ActivateConstraint(const TwoBodyConstraint *inConstraint) ///
///
/// /// /// 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. /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_ActivateConstraint")] public static partial void BodyInterface_ActivateConstraint(BodyInterface self, TwoBodyConstraint constraint); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:162 ///
/// RefConst<Shape> GetShape(const BodyID &inBodyID) const ///
///
/// /// /// Get the current shape /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_GetShape")] public static partial Shape BodyInterface_GetShape(BodyInterface self, uint bodyID); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:169 ///
/// void SetShape(const BodyID &inBodyID, const Shape *inShape, bool inUpdateMassProperties, EActivation inActivationMode) const ///
///
/// /// /// 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 /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_SetShape")] public static partial void BodyInterface_SetShape(BodyInterface self, uint bodyID, Shape shape, Brutal.Bool8 updateMassProperties, EActivation activationMode); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:176 ///
/// void NotifyShapeChanged(const BodyID &inBodyID, Vec3Arg inPreviousCenterOfMass, bool inUpdateMassProperties, EActivation inActivationMode) const ///
///
/// /// /// 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 /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_NotifyShapeChanged")] public static partial void BodyInterface_NotifyShapeChanged(BodyInterface self, uint bodyID, float3 previousCenterOfMass, Brutal.Bool8 updateMassProperties, EActivation activationMode); /// /// /// The collision layer this body belongs to (determines if two objects can collide) /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:181 ///
/// void SetObjectLayer(const BodyID &inBodyID, ObjectLayer inLayer) ///
///
/// /// /// @name Object layer of a body /// @{ /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_SetObjectLayer")] public static partial void BodyInterface_SetObjectLayer(BodyInterface self, uint bodyID, ushort layer); /// /// /// @see Body::GetObjectLayer /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:182 ///
/// ObjectLayer GetObjectLayer(const BodyID &inBodyID) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetObjectLayer")] public static partial ushort BodyInterface_GetObjectLayer(BodyInterface self, uint bodyID); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:187 ///
/// void SetPositionAndRotation(const BodyID &inBodyID, RVec3Arg inPosition, QuatArg inRotation, EActivation inActivationMode) ///
///
/// /// /// @name Position and rotation of a body /// @{ /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_SetPositionAndRotation")] public static partial void BodyInterface_SetPositionAndRotation(BodyInterface self, uint bodyID, float3 position, floatQuat rotation, EActivation activationMode); /// /// /// 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. /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:188 ///
/// void SetPositionAndRotationWhenChanged(const BodyID &inBodyID, RVec3Arg inPosition, QuatArg inRotation, EActivation inActivationMode) ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetPositionAndRotationWhenChanged")] public static partial void BodyInterface_SetPositionAndRotationWhenChanged(BodyInterface self, uint bodyID, float3 position, floatQuat rotation, EActivation activationMode); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:189 ///
/// void GetPositionAndRotation(const BodyID &inBodyID, RVec3 &outPosition, Quat &outRotation) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetPositionAndRotation")] public static partial void BodyInterface_GetPositionAndRotation(BodyInterface self, uint bodyID, out float3 position, out floatQuat rotation); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:190 ///
/// void SetPosition(const BodyID &inBodyID, RVec3Arg inPosition, EActivation inActivationMode) ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetPosition")] public static partial void BodyInterface_SetPosition(BodyInterface self, uint bodyID, float3 position, EActivation activationMode); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:191 ///
/// RVec3 GetPosition(const BodyID &inBodyID) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetPosition")] public static partial float3 BodyInterface_GetPosition(BodyInterface self, uint bodyID); /// /// /// @see Body::GetCenterOfMassPosition /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:192 ///
/// RVec3 GetCenterOfMassPosition(const BodyID &inBodyID) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetCenterOfMassPosition")] public static partial float3 BodyInterface_GetCenterOfMassPosition(BodyInterface self, uint bodyID); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:193 ///
/// void SetRotation(const BodyID &inBodyID, QuatArg inRotation, EActivation inActivationMode) ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetRotation")] public static partial void BodyInterface_SetRotation(BodyInterface self, uint bodyID, floatQuat rotation, EActivation activationMode); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:194 ///
/// Quat GetRotation(const BodyID &inBodyID) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetRotation")] public static partial floatQuat BodyInterface_GetRotation(BodyInterface self, uint bodyID); /// /// /// @see Body::GetWorldTransform /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:195 ///
/// RMat44 GetWorldTransform(const BodyID &inBodyID) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetWorldTransform")] public static partial float4x4 BodyInterface_GetWorldTransform(BodyInterface self, uint bodyID); /// /// /// @see Body::GetCenterOfMassTransform /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:196 ///
/// RMat44 GetCenterOfMassTransform(const BodyID &inBodyID) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetCenterOfMassTransform")] public static partial float4x4 BodyInterface_GetCenterOfMassTransform(BodyInterface self, uint bodyID); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:200 ///
/// void MoveKinematic(const BodyID &inBodyID, RVec3Arg inTargetPosition, QuatArg inTargetRotation, float inDeltaTime) ///
///
/// /// /// Set velocity of body such that it will be positioned at inTargetPosition/Rotation in inDeltaTime /// seconds (will activate body if needed) /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_MoveKinematic")] public static partial void BodyInterface_MoveKinematic(BodyInterface self, uint bodyID, float3 targetPosition, floatQuat targetRotation, float deltaTime); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:204 ///
/// void SetLinearAndAngularVelocity(const BodyID &inBodyID, Vec3Arg inLinearVelocity, Vec3Arg inAngularVelocity) ///
///
/// /// /// 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$ /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_SetLinearAndAngularVelocity")] public static partial void BodyInterface_SetLinearAndAngularVelocity(BodyInterface self, uint bodyID, float3 linearVelocity, float3 angularVelocity); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:205 ///
/// void GetLinearAndAngularVelocity(const BodyID &inBodyID, Vec3 &outLinearVelocity, Vec3 &outAngularVelocity) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetLinearAndAngularVelocity")] public static partial void BodyInterface_GetLinearAndAngularVelocity(BodyInterface self, uint bodyID, out float3 linearVelocity, out float3 angularVelocity); /// /// /// @see Body::SetLinearVelocity /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:206 ///
/// void SetLinearVelocity(const BodyID &inBodyID, Vec3Arg inLinearVelocity) ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetLinearVelocity")] public static partial void BodyInterface_SetLinearVelocity(BodyInterface self, uint bodyID, float3 linearVelocity); /// /// /// @see Body::GetLinearVelocity /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:207 ///
/// Vec3 GetLinearVelocity(const BodyID &inBodyID) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetLinearVelocity")] public static partial float3 BodyInterface_GetLinearVelocity(BodyInterface self, uint bodyID); /// /// /// Add velocity to current velocity /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:208 ///
/// void AddLinearVelocity(const BodyID &inBodyID, Vec3Arg inLinearVelocity) ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddLinearVelocity")] public static partial void BodyInterface_AddLinearVelocity(BodyInterface self, uint bodyID, float3 linearVelocity); /// /// /// Add linear and angular to current velocities /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:209 ///
/// void AddLinearAndAngularVelocity(const BodyID &inBodyID, Vec3Arg inLinearVelocity, Vec3Arg inAngularVelocity) ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddLinearAndAngularVelocity")] public static partial void BodyInterface_AddLinearAndAngularVelocity(BodyInterface self, uint bodyID, float3 linearVelocity, float3 angularVelocity); /// /// /// @see Body::SetAngularVelocity /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:210 ///
/// void SetAngularVelocity(const BodyID &inBodyID, Vec3Arg inAngularVelocity) ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetAngularVelocity")] public static partial void BodyInterface_SetAngularVelocity(BodyInterface self, uint bodyID, float3 angularVelocity); /// /// /// @see Body::GetAngularVelocity /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:211 ///
/// Vec3 GetAngularVelocity(const BodyID &inBodyID) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetAngularVelocity")] public static partial float3 BodyInterface_GetAngularVelocity(BodyInterface self, uint bodyID); /// /// /// Velocity of point inPoint (in world space, e.g. on the surface of the body) of the body. @see /// Body::GetPointVelocity /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:212 ///
/// Vec3 GetPointVelocity(const BodyID &inBodyID, RVec3Arg inPoint) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetPointVelocity")] public static partial float3 BodyInterface_GetPointVelocity(BodyInterface self, uint bodyID, float3 point); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:216 ///
/// void SetPositionRotationAndVelocity(const BodyID &inBodyID, RVec3Arg inPosition, QuatArg inRotation, Vec3Arg inLinearVelocity, Vec3Arg inAngularVelocity) ///
///
/// /// /// 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$ /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_SetPositionRotationAndVelocity")] public static partial void BodyInterface_SetPositionRotationAndVelocity(BodyInterface self, uint bodyID, float3 position, floatQuat rotation, float3 linearVelocity, float3 angularVelocity); /// /// /// @see Body::AddForce /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:220 ///
/// void AddForce(const BodyID &inBodyID, Vec3Arg inForce, EActivation inActivationMode = EActivation::Activate) ///
///
/// /// /// @name Add forces to the body. Note that you should add a body to the physics system before applying forces or torques. /// @{ /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_AddForce")] public static partial void BodyInterface_AddForce(BodyInterface self, uint bodyID, float3 force, EActivation activationMode); /// /// /// Applied at world space position inPoint. @see Body::AddForce /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:221 ///
/// void AddForce(const BodyID &inBodyID, Vec3Arg inForce, RVec3Arg inPoint, EActivation inActivationMode = EActivation::Activate) ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddForce_2")] public static partial void BodyInterface_AddForce_2(BodyInterface self, uint bodyID, float3 force, float3 point, EActivation activationMode); /// /// /// @see Body::AddTorque /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:222 ///
/// void AddTorque(const BodyID &inBodyID, Vec3Arg inTorque, EActivation inActivationMode = EActivation::Activate) ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddTorque")] public static partial void BodyInterface_AddTorque(BodyInterface self, uint bodyID, float3 torque, EActivation activationMode); /// /// /// A combination of Body::AddForce and Body::AddTorque /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:223 ///
/// void AddForceAndTorque(const BodyID &inBodyID, Vec3Arg inForce, Vec3Arg inTorque, EActivation inActivationMode = EActivation::Activate) ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddForceAndTorque")] public static partial void BodyInterface_AddForceAndTorque(BodyInterface self, uint bodyID, float3 force, float3 torque, EActivation activationMode); /// /// /// Applied at center of mass. @see Body::AddImpulse /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:228 ///
/// void AddImpulse(const BodyID &inBodyID, Vec3Arg inImpulse) ///
///
/// /// /// @name Add an impulse to the body. Note that you should add a body to the physics system before applying impulses. /// @{ /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_AddImpulse")] public static partial void BodyInterface_AddImpulse(BodyInterface self, uint bodyID, float3 impulse); /// /// /// Applied at world space position inPoint. @see Body::AddImpulse /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:229 ///
/// void AddImpulse(const BodyID &inBodyID, Vec3Arg inImpulse, RVec3Arg inPoint) ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddImpulse_2")] public static partial void BodyInterface_AddImpulse_2(BodyInterface self, uint bodyID, float3 impulse, float3 point); /// /// /// @see Body::AddAngularImpulse /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:230 ///
/// void AddAngularImpulse(const BodyID &inBodyID, Vec3Arg inAngularImpulse) ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_AddAngularImpulse")] public static partial void BodyInterface_AddAngularImpulse(BodyInterface self, uint bodyID, float3 angularImpulse); /// /// /// @see Body::ApplyBuoyancyImpulse /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:231 ///
/// bool ApplyBuoyancyImpulse(const BodyID &inBodyID, RVec3Arg inSurfacePosition, Vec3Arg inSurfaceNormal, float inBuoyancy, float inLinearDrag, float inAngularDrag, Vec3Arg inFluidVelocity, Vec3Arg inGravity, float inDeltaTime) ///
///
[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); /// /// /// @see Body::GetBodyType /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:236 ///
/// EBodyType GetBodyType(const BodyID &inBodyID) const ///
///
/// /// /// @name Body type /// @{ /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_GetBodyType")] public static partial EBodyType BodyInterface_GetBodyType(BodyInterface self, uint bodyID); /// /// /// @see Body::SetMotionType /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:241 ///
/// void SetMotionType(const BodyID &inBodyID, EMotionType inMotionType, EActivation inActivationMode) ///
///
/// /// /// @name Body motion type /// @{ /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_SetMotionType")] public static partial void BodyInterface_SetMotionType(BodyInterface self, uint bodyID, EMotionType motionType, EActivation activationMode); /// /// /// @see Body::GetMotionType /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:242 ///
/// EMotionType GetMotionType(const BodyID &inBodyID) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMotionType")] public static partial EMotionType BodyInterface_GetMotionType(BodyInterface self, uint bodyID); /// /// /// How well it detects collisions when it has a high velocity /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:247 ///
/// void SetMotionQuality(const BodyID &inBodyID, EMotionQuality inMotionQuality) ///
///
/// /// /// @name Body motion quality /// @{ /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_SetMotionQuality")] public static partial void BodyInterface_SetMotionQuality(BodyInterface self, uint bodyID, EMotionQuality motionQuality); /// /// /// @see MotionProperties::GetMotionQuality /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:248 ///
/// EMotionQuality GetMotionQuality(const BodyID &inBodyID) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMotionQuality")] public static partial EMotionQuality BodyInterface_GetMotionQuality(BodyInterface self, uint bodyID); /// /// /// @see Body::GetInverseInertia /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:252 ///
/// Mat44 GetInverseInertia(const BodyID &inBodyID) const ///
///
/// /// /// Get inverse inertia tensor in world space /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_GetInverseInertia")] public static partial float4x4 BodyInterface_GetInverseInertia(BodyInterface self, uint bodyID); /// /// /// @see Body::SetRestitution /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:256 ///
/// void SetRestitution(const BodyID &inBodyID, float inRestitution) ///
///
/// /// /// @name Restitution /// @{ /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_SetRestitution")] public static partial void BodyInterface_SetRestitution(BodyInterface self, uint bodyID, float restitution); /// /// /// @see Body::GetRestitution /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:257 ///
/// float GetRestitution(const BodyID &inBodyID) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetRestitution")] public static partial float BodyInterface_GetRestitution(BodyInterface self, uint bodyID); /// /// /// @see Body::SetFriction /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:262 ///
/// void SetFriction(const BodyID &inBodyID, float inFriction) ///
///
/// /// /// @name Friction /// @{ /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_SetFriction")] public static partial void BodyInterface_SetFriction(BodyInterface self, uint bodyID, float friction); /// /// /// @see Body::GetFriction /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:263 ///
/// float GetFriction(const BodyID &inBodyID) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetFriction")] public static partial float BodyInterface_GetFriction(BodyInterface self, uint bodyID); /// /// /// @see MotionProperties::SetGravityFactor /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:268 ///
/// void SetGravityFactor(const BodyID &inBodyID, float inGravityFactor) ///
///
/// /// /// @name Gravity factor /// @{ /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_SetGravityFactor")] public static partial void BodyInterface_SetGravityFactor(BodyInterface self, uint bodyID, float gravityFactor); /// /// /// @see MotionProperties::GetGravityFactor /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:269 ///
/// float GetGravityFactor(const BodyID &inBodyID) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetGravityFactor")] public static partial float BodyInterface_GetGravityFactor(BodyInterface self, uint bodyID); /// /// /// @see MotionProperties::SetMaxLinearVelocity /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:274 ///
/// void SetMaxLinearVelocity(const BodyID &inBodyID, float inLinearVelocity) ///
///
/// /// /// @name Max linear velocity /// @{ /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_SetMaxLinearVelocity")] public static partial void BodyInterface_SetMaxLinearVelocity(BodyInterface self, uint bodyID, float linearVelocity); /// /// /// @see MotionProperties::GetMaxLinearVelocity /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:275 ///
/// float GetMaxLinearVelocity(const BodyID &inBodyID) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMaxLinearVelocity")] public static partial float BodyInterface_GetMaxLinearVelocity(BodyInterface self, uint bodyID); /// /// /// @see MotionProperties::SetMaxAngularVelocity /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:280 ///
/// void SetMaxAngularVelocity(const BodyID &inBodyID, float inAngularVelocity) ///
///
/// /// /// @name Max angular velocity /// @{ /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_SetMaxAngularVelocity")] public static partial void BodyInterface_SetMaxAngularVelocity(BodyInterface self, uint bodyID, float angularVelocity); /// /// /// @see MotionProperties::GetMaxAngularVelocity /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:281 ///
/// float GetMaxAngularVelocity(const BodyID &inBodyID) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetMaxAngularVelocity")] public static partial float BodyInterface_GetMaxAngularVelocity(BodyInterface self, uint bodyID); /// /// /// @see Body::SetUseManifoldReduction /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:286 ///
/// void SetUseManifoldReduction(const BodyID &inBodyID, bool inUseReduction) ///
///
/// /// /// @name Manifold reduction /// @{ /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_SetUseManifoldReduction")] public static partial void BodyInterface_SetUseManifoldReduction(BodyInterface self, uint bodyID, Brutal.Bool8 useReduction); /// /// /// @see Body::GetUseManifoldReduction /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:287 ///
/// bool GetUseManifoldReduction(const BodyID &inBodyID) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_GetUseManifoldReduction")] public static partial Brutal.Bool8 BodyInterface_GetUseManifoldReduction(BodyInterface self, uint bodyID); /// /// /// @see Body::SetIsSensor /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:292 ///
/// void SetIsSensor(const BodyID &inBodyID, bool inIsSensor) ///
///
/// /// /// @name Sensor /// @{ /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_SetIsSensor")] public static partial void BodyInterface_SetIsSensor(BodyInterface self, uint bodyID, Brutal.Bool8 isSensor); /// /// /// @see Body::IsSensor /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:293 ///
/// bool IsSensor(const BodyID &inBodyID) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_IsSensor")] public static partial Brutal.Bool8 BodyInterface_IsSensor(BodyInterface self, uint bodyID); /// /// /// @see Body::SetCollisionGroup /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:298 ///
/// void SetCollisionGroup(const BodyID &inBodyID, const CollisionGroup &inCollisionGroup) ///
///
/// /// /// @name Collision group /// @{ /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_SetCollisionGroup")] public static partial void BodyInterface_SetCollisionGroup(BodyInterface self, uint bodyID, CollisionGroup collisionGroup); /// /// /// @see Body::GetCollisionGroup /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:299 ///
/// const CollisionGroup & GetCollisionGroup(const BodyID &inBodyID) const ///
///
/// /// /// The returned handle is borrowed from its owner; don't Dispose it. /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_GetCollisionGroup")] public static partial CollisionGroup BodyInterface_GetCollisionGroup(BodyInterface self, uint bodyID); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:306 ///
/// uint64 GetUserData(const BodyID &inBodyID) const ///
///
/// /// /// Get the user data for a body /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_GetUserData")] public static partial ulong BodyInterface_GetUserData(BodyInterface self, uint bodyID); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:307 ///
/// void SetUserData(const BodyID &inBodyID, uint64 inUserData) const ///
///
[LibraryImport("jolt", EntryPoint = "BodyInterface_SetUserData")] public static partial void BodyInterface_SetUserData(BodyInterface self, uint bodyID, ulong userData); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:310 ///
/// const PhysicsMaterial * GetMaterial(const BodyID &inBodyID, const SubShapeID &inSubShapeID) const ///
///
/// /// /// Get the material for a particular sub shape /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_GetMaterial")] public static partial PhysicsMaterial BodyInterface_GetMaterial(BodyInterface self, uint bodyID, uint subShapeID); /// /// /// C++: /// Jolt/Physics/Body/BodyInterface.h:313 ///
/// void InvalidateContactCache(const BodyID &inBodyID) ///
///
/// /// /// 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. /// /// [LibraryImport("jolt", EntryPoint = "BodyInterface_InvalidateContactCache")] public static partial void BodyInterface_InvalidateContactCache(BodyInterface self, uint bodyID); } } }