mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
801 lines
51 KiB
C#
801 lines
51 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/Character/CharacterVirtual.h#L215">Jolt/Physics/Character/CharacterVirtual.h:215</see>
|
|
/// <br/>
|
|
/// <c>CharacterVirtual(const CharacterVirtualSettings *inSettings, RVec3Arg inPosition, QuatArg inRotation, uint64 inUserData, PhysicsSystem *inSystem)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Constructor
|
|
/// @param inSettings The settings for the character
|
|
/// @param inPosition Initial position for the character
|
|
/// @param inRotation Initial rotation for the character (usually only around the up-axis)
|
|
/// @param inUserData Application specific value
|
|
/// @param inSystem Physics system that this character will be added to
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_Create")]
|
|
public static partial CharacterVirtual CharacterVirtual_Create(CharacterVirtualSettings settings, float3 position, floatQuat rotation, ulong userData, PhysicsSystem system);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L218">Jolt/Physics/Character/CharacterVirtual.h:218</see>
|
|
/// <br/>
|
|
/// <c>CharacterVirtual(const CharacterVirtualSettings *inSettings, RVec3Arg inPosition, QuatArg inRotation, PhysicsSystem *inSystem)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Constructor without user data
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_Create_2")]
|
|
public static partial CharacterVirtual CharacterVirtual_Create_2(CharacterVirtualSettings settings, float3 position, floatQuat rotation, PhysicsSystem system);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L224">Jolt/Physics/Character/CharacterVirtual.h:224</see>
|
|
/// <br/>
|
|
/// <c>inline const CharacterID & GetID() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The ID of this character
|
|
/// </para>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_GetID")]
|
|
public static partial CharacterID CharacterVirtual_GetID(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L227">Jolt/Physics/Character/CharacterVirtual.h:227</see>
|
|
/// <br/>
|
|
/// <c>void SetListener(CharacterContactListener *inListener)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Set the contact listener
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_SetListener")]
|
|
public static partial void CharacterVirtual_SetListener(CharacterVirtual self, CharacterContactListener listener);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L230">Jolt/Physics/Character/CharacterVirtual.h:230</see>
|
|
/// <br/>
|
|
/// <c>CharacterContactListener * GetListener() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the current contact listener
|
|
/// </para>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_GetListener")]
|
|
public static partial CharacterContactListener CharacterVirtual_GetListener(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L233">Jolt/Physics/Character/CharacterVirtual.h:233</see>
|
|
/// <br/>
|
|
/// <c>void SetCharacterVsCharacterCollision(CharacterVsCharacterCollision *inCharacterVsCharacterCollision)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Set the character vs character collision interface
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_SetCharacterVsCharacterCollision")]
|
|
public static partial void CharacterVirtual_SetCharacterVsCharacterCollision(CharacterVirtual self, CharacterVsCharacterCollision characterVsCharacterCollision);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L236">Jolt/Physics/Character/CharacterVirtual.h:236</see>
|
|
/// <br/>
|
|
/// <c>Vec3 GetLinearVelocity() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the linear velocity of the character (m / s)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_GetLinearVelocity")]
|
|
public static partial float3 CharacterVirtual_GetLinearVelocity(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L239">Jolt/Physics/Character/CharacterVirtual.h:239</see>
|
|
/// <br/>
|
|
/// <c>void SetLinearVelocity(Vec3Arg inLinearVelocity)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Set the linear velocity of the character (m / s)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_SetLinearVelocity")]
|
|
public static partial void CharacterVirtual_SetLinearVelocity(CharacterVirtual self, float3 linearVelocity);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L242">Jolt/Physics/Character/CharacterVirtual.h:242</see>
|
|
/// <br/>
|
|
/// <c>RVec3 GetPosition() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the position of the character
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_GetPosition")]
|
|
public static partial float3 CharacterVirtual_GetPosition(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L245">Jolt/Physics/Character/CharacterVirtual.h:245</see>
|
|
/// <br/>
|
|
/// <c>void SetPosition(RVec3Arg inPosition)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Set the position of the character
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_SetPosition")]
|
|
public static partial void CharacterVirtual_SetPosition(CharacterVirtual self, float3 position);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L248">Jolt/Physics/Character/CharacterVirtual.h:248</see>
|
|
/// <br/>
|
|
/// <c>Quat GetRotation() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the rotation of the character
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_GetRotation")]
|
|
public static partial floatQuat CharacterVirtual_GetRotation(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L251">Jolt/Physics/Character/CharacterVirtual.h:251</see>
|
|
/// <br/>
|
|
/// <c>void SetRotation(QuatArg inRotation)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Set the rotation of the character
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_SetRotation")]
|
|
public static partial void CharacterVirtual_SetRotation(CharacterVirtual self, floatQuat rotation);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L254">Jolt/Physics/Character/CharacterVirtual.h:254</see>
|
|
/// <br/>
|
|
/// <c>inline RVec3 GetCenterOfMassPosition() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the center of mass position of the shape
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_GetCenterOfMassPosition")]
|
|
public static partial float3 CharacterVirtual_GetCenterOfMassPosition(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L257">Jolt/Physics/Character/CharacterVirtual.h:257</see>
|
|
/// <br/>
|
|
/// <c>RMat44 GetWorldTransform() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Calculate the world transform of the character
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_GetWorldTransform")]
|
|
public static partial float4x4 CharacterVirtual_GetWorldTransform(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L260">Jolt/Physics/Character/CharacterVirtual.h:260</see>
|
|
/// <br/>
|
|
/// <c>RMat44 GetCenterOfMassTransform() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Calculates the transform for this character's center of mass
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_GetCenterOfMassTransform")]
|
|
public static partial float4x4 CharacterVirtual_GetCenterOfMassTransform(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L263">Jolt/Physics/Character/CharacterVirtual.h:263</see>
|
|
/// <br/>
|
|
/// <c>float GetMass() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Character mass (kg)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_GetMass")]
|
|
public static partial float CharacterVirtual_GetMass(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L264">Jolt/Physics/Character/CharacterVirtual.h:264</see>
|
|
/// <br/>
|
|
/// <c>void SetMass(float inMass)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_SetMass")]
|
|
public static partial void CharacterVirtual_SetMass(CharacterVirtual self, float mass);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L267">Jolt/Physics/Character/CharacterVirtual.h:267</see>
|
|
/// <br/>
|
|
/// <c>float GetMaxStrength() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Maximum force with which the character can push other bodies (N)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_GetMaxStrength")]
|
|
public static partial float CharacterVirtual_GetMaxStrength(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L268">Jolt/Physics/Character/CharacterVirtual.h:268</see>
|
|
/// <br/>
|
|
/// <c>void SetMaxStrength(float inMaxStrength)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_SetMaxStrength")]
|
|
public static partial void CharacterVirtual_SetMaxStrength(CharacterVirtual self, float maxStrength);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L271">Jolt/Physics/Character/CharacterVirtual.h:271</see>
|
|
/// <br/>
|
|
/// <c>float GetPenetrationRecoverySpeed() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// This value governs how fast a penetration will be resolved, 0 = nothing is resolved, 1 = everything
|
|
/// in one update
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_GetPenetrationRecoverySpeed")]
|
|
public static partial float CharacterVirtual_GetPenetrationRecoverySpeed(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L272">Jolt/Physics/Character/CharacterVirtual.h:272</see>
|
|
/// <br/>
|
|
/// <c>void SetPenetrationRecoverySpeed(float inSpeed)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_SetPenetrationRecoverySpeed")]
|
|
public static partial void CharacterVirtual_SetPenetrationRecoverySpeed(CharacterVirtual self, float speed);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L275">Jolt/Physics/Character/CharacterVirtual.h:275</see>
|
|
/// <br/>
|
|
/// <c>bool GetEnhancedInternalEdgeRemoval() const</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 = "CharacterVirtual_GetEnhancedInternalEdgeRemoval")]
|
|
public static partial Brutal.Bool8 CharacterVirtual_GetEnhancedInternalEdgeRemoval(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L276">Jolt/Physics/Character/CharacterVirtual.h:276</see>
|
|
/// <br/>
|
|
/// <c>void SetEnhancedInternalEdgeRemoval(bool inApply)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_SetEnhancedInternalEdgeRemoval")]
|
|
public static partial void CharacterVirtual_SetEnhancedInternalEdgeRemoval(CharacterVirtual self, Brutal.Bool8 apply);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L279">Jolt/Physics/Character/CharacterVirtual.h:279</see>
|
|
/// <br/>
|
|
/// <c>float GetCharacterPadding() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Character padding
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_GetCharacterPadding")]
|
|
public static partial float CharacterVirtual_GetCharacterPadding(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L282">Jolt/Physics/Character/CharacterVirtual.h:282</see>
|
|
/// <br/>
|
|
/// <c>uint GetMaxNumHits() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Max num hits to collect in order to avoid excess of contact points collection
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_GetMaxNumHits")]
|
|
public static partial uint CharacterVirtual_GetMaxNumHits(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L283">Jolt/Physics/Character/CharacterVirtual.h:283</see>
|
|
/// <br/>
|
|
/// <c>void SetMaxNumHits(uint inMaxHits)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_SetMaxNumHits")]
|
|
public static partial void CharacterVirtual_SetMaxNumHits(CharacterVirtual self, uint maxHits);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L286">Jolt/Physics/Character/CharacterVirtual.h:286</see>
|
|
/// <br/>
|
|
/// <c>float GetHitReductionCosMaxAngle() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Cos(angle) where angle is the maximum angle between two hits contact normals that are allowed to be
|
|
/// merged during hit reduction. Default is around 2.5 degrees. Set to -1 to turn off.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_GetHitReductionCosMaxAngle")]
|
|
public static partial float CharacterVirtual_GetHitReductionCosMaxAngle(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L287">Jolt/Physics/Character/CharacterVirtual.h:287</see>
|
|
/// <br/>
|
|
/// <c>void SetHitReductionCosMaxAngle(float inCosMaxAngle)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_SetHitReductionCosMaxAngle")]
|
|
public static partial void CharacterVirtual_SetHitReductionCosMaxAngle(CharacterVirtual self, float cosMaxAngle);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L293">Jolt/Physics/Character/CharacterVirtual.h:293</see>
|
|
/// <br/>
|
|
/// <c>bool GetMaxHitsExceeded() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Returns if we exceeded the maximum number of hits during the last collision check and had to discard hits based on distance.
|
|
/// This can be used to find areas that have too complex geometry for the character to navigate properly.
|
|
/// To solve you can either increase the max number of hits or simplify the geometry. Note that the character simulation will
|
|
/// try to do its best to select the most relevant contacts to avoid the character from getting stuck.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_GetMaxHitsExceeded")]
|
|
public static partial Brutal.Bool8 CharacterVirtual_GetMaxHitsExceeded(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L296">Jolt/Physics/Character/CharacterVirtual.h:296</see>
|
|
/// <br/>
|
|
/// <c>Vec3 GetShapeOffset() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// An extra offset applied to the shape in local space. This allows applying an extra offset to the
|
|
/// shape in local space. Note that setting it on the fly can cause the shape to teleport into
|
|
/// collision.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_GetShapeOffset")]
|
|
public static partial float3 CharacterVirtual_GetShapeOffset(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L297">Jolt/Physics/Character/CharacterVirtual.h:297</see>
|
|
/// <br/>
|
|
/// <c>void SetShapeOffset(Vec3Arg inShapeOffset)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_SetShapeOffset")]
|
|
public static partial void CharacterVirtual_SetShapeOffset(CharacterVirtual self, float3 shapeOffset);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L300">Jolt/Physics/Character/CharacterVirtual.h:300</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 = "CharacterVirtual_GetUserData")]
|
|
public static partial ulong CharacterVirtual_GetUserData(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L301">Jolt/Physics/Character/CharacterVirtual.h:301</see>
|
|
/// <br/>
|
|
/// <c>void SetUserData(uint64 inUserData)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_SetUserData")]
|
|
public static partial void CharacterVirtual_SetUserData(CharacterVirtual self, ulong userData);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L304">Jolt/Physics/Character/CharacterVirtual.h:304</see>
|
|
/// <br/>
|
|
/// <c>BodyID GetInnerBodyID() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Optional inner rigid body that proxies the character in the world. Can be used to update body
|
|
/// properties.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_GetInnerBodyID")]
|
|
public static partial uint CharacterVirtual_GetInnerBodyID(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L310">Jolt/Physics/Character/CharacterVirtual.h:310</see>
|
|
/// <br/>
|
|
/// <c>Vec3 CancelVelocityTowardsSteepSlopes(Vec3Arg inDesiredVelocity) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This function can be called prior to calling Update() to convert a desired velocity into a velocity that won't make the character move further onto steep slopes.
|
|
/// This velocity can then be set on the character using SetLinearVelocity()
|
|
/// @param inDesiredVelocity Velocity to clamp against steep walls
|
|
/// @return A new velocity vector that won't make the character move up steep slopes
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_CancelVelocityTowardsSteepSlopes")]
|
|
public static partial float3 CharacterVirtual_CancelVelocityTowardsSteepSlopes(CharacterVirtual self, float3 desiredVelocity);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L316">Jolt/Physics/Character/CharacterVirtual.h:316</see>
|
|
/// <br/>
|
|
/// <c>void StartTrackingContactChanges()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This function is internally called by Update, WalkStairs, StickToFloor and ExtendedUpdate and is responsible for tracking if contacts are added, persisted or removed.
|
|
/// If you want to do multiple operations on a character (e.g. first Update then WalkStairs), you can surround the code with a StartTrackingContactChanges and FinishTrackingContactChanges pair
|
|
/// to only receive a single callback per contact on the CharacterContactListener. If you don't do this then you could for example receive a contact added callback during the Update and a
|
|
/// contact persisted callback during WalkStairs.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_StartTrackingContactChanges")]
|
|
public static partial void CharacterVirtual_StartTrackingContactChanges(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L319">Jolt/Physics/Character/CharacterVirtual.h:319</see>
|
|
/// <br/>
|
|
/// <c>void FinishTrackingContactChanges()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// This call triggers contact removal callbacks and is used in conjunction with
|
|
/// StartTrackingContactChanges.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_FinishTrackingContactChanges")]
|
|
public static partial void CharacterVirtual_FinishTrackingContactChanges(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L331">Jolt/Physics/Character/CharacterVirtual.h:331</see>
|
|
/// <br/>
|
|
/// <c>void Update(float inDeltaTime, Vec3Arg inGravity, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter, const ObjectLayerFilter &inObjectLayerFilter, const BodyFilter &inBodyFilter, const ShapeFilter &inShapeFilter, TempAllocator &inAllocator)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This is the main update function. It moves the character according to its current velocity (the character is similar to a kinematic body in the sense
|
|
/// that you set the velocity and the character will follow unless collision is blocking the way). Note it's your own responsibility to apply gravity to the character velocity!
|
|
/// Different surface materials (like ice) can be emulated by getting the ground material and adjusting the velocity and/or the max slope angle accordingly every frame.
|
|
/// @param inDeltaTime Time step to simulate.
|
|
/// @param inGravity Gravity vector (m/s^2). This gravity vector is only used when the character is standing on top of another object to apply downward force.
|
|
/// @param inBroadPhaseLayerFilter Filter that is used to check if the character collides with something in the broadphase.
|
|
/// @param inObjectLayerFilter Filter that is used to check if a character collides with a layer.
|
|
/// @param inBodyFilter Filter that is used to check if a character collides with a body.
|
|
/// @param inShapeFilter Filter that is used to check if a character collides with a subshape.
|
|
/// @param inAllocator An allocator for temporary allocations. All memory will be freed by the time this function returns.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_Update")]
|
|
public static partial void CharacterVirtual_Update(CharacterVirtual self, float deltaTime, float3 gravity, BroadPhaseLayerFilter broadPhaseLayerFilter, ObjectLayerFilter objectLayerFilter, BodyFilter bodyFilter, ShapeFilter shapeFilter, TempAllocator allocator);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L336">Jolt/Physics/Character/CharacterVirtual.h:336</see>
|
|
/// <br/>
|
|
/// <c>bool CanWalkStairs(Vec3Arg inLinearVelocity) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This function will return true if the character has moved into a slope that is too steep (e.g. a vertical wall).
|
|
/// You would call WalkStairs to attempt to step up stairs.
|
|
/// @param inLinearVelocity The linear velocity that the player desired. This is used to determine if we're pushing into a step.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_CanWalkStairs")]
|
|
public static partial Brutal.Bool8 CharacterVirtual_CanWalkStairs(CharacterVirtual self, float3 linearVelocity);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L350">Jolt/Physics/Character/CharacterVirtual.h:350</see>
|
|
/// <br/>
|
|
/// <c>bool WalkStairs(float inDeltaTime, Vec3Arg inStepUp, Vec3Arg inStepForward, Vec3Arg inStepForwardTest, Vec3Arg inStepDownExtra, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter, const ObjectLayerFilter &inObjectLayerFilter, const BodyFilter &inBodyFilter, const ShapeFilter &inShapeFilter, TempAllocator &inAllocator)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// When stair walking is needed, you can call the WalkStairs function to cast up, forward and down again to try to find a valid position
|
|
/// @param inDeltaTime Time step to simulate.
|
|
/// @param inStepUp The direction and distance to step up (this corresponds to the max step height)
|
|
/// @param inStepForward The direction and distance to step forward after the step up
|
|
/// @param inStepForwardTest When running at a high frequency, inStepForward can be very small and it's likely that you hit the side of the stairs on the way down. This could produce a normal that violates the max slope angle. If this happens, we test again using this distance from the up position to see if we find a valid slope.
|
|
/// @param inStepDownExtra An additional translation that is added when stepping down at the end. Allows you to step further down than up. Set to zero if you don't want this. Should be in the opposite direction of up.
|
|
/// @param inBroadPhaseLayerFilter Filter that is used to check if the character collides with something in the broadphase.
|
|
/// @param inObjectLayerFilter Filter that is used to check if a character collides with a layer.
|
|
/// @param inBodyFilter Filter that is used to check if a character collides with a body.
|
|
/// @param inShapeFilter Filter that is used to check if a character collides with a subshape.
|
|
/// @param inAllocator An allocator for temporary allocations. All memory will be freed by the time this function returns.
|
|
/// @return true if the stair walk was successful
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_WalkStairs")]
|
|
public static partial Brutal.Bool8 CharacterVirtual_WalkStairs(CharacterVirtual self, float deltaTime, float3 stepUp, float3 stepForward, float3 stepForwardTest, float3 stepDownExtra, BroadPhaseLayerFilter broadPhaseLayerFilter, ObjectLayerFilter objectLayerFilter, BodyFilter bodyFilter, ShapeFilter shapeFilter, TempAllocator allocator);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L362">Jolt/Physics/Character/CharacterVirtual.h:362</see>
|
|
/// <br/>
|
|
/// <c>bool StickToFloor(Vec3Arg inStepDown, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter, const ObjectLayerFilter &inObjectLayerFilter, const BodyFilter &inBodyFilter, const ShapeFilter &inShapeFilter, TempAllocator &inAllocator)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This function can be used to artificially keep the character to the floor. Normally when a character is on a small step and starts moving horizontally, the character will
|
|
/// lose contact with the floor because the initial vertical velocity is zero while the horizontal velocity is quite high. To prevent the character from losing contact with the floor,
|
|
/// we do an additional collision check downwards and if we find the floor within a certain distance, we project the character onto the floor.
|
|
/// @param inStepDown Max amount to project the character downwards (if no floor is found within this distance, the function will return false)
|
|
/// @param inBroadPhaseLayerFilter Filter that is used to check if the character collides with something in the broadphase.
|
|
/// @param inObjectLayerFilter Filter that is used to check if a character collides with a layer.
|
|
/// @param inBodyFilter Filter that is used to check if a character collides with a body.
|
|
/// @param inShapeFilter Filter that is used to check if a character collides with a subshape.
|
|
/// @param inAllocator An allocator for temporary allocations. All memory will be freed by the time this function returns.
|
|
/// @return True if the character was successfully projected onto the floor.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_StickToFloor")]
|
|
public static partial Brutal.Bool8 CharacterVirtual_StickToFloor(CharacterVirtual self, float3 stepDown, BroadPhaseLayerFilter broadPhaseLayerFilter, ObjectLayerFilter objectLayerFilter, BodyFilter bodyFilter, ShapeFilter shapeFilter, TempAllocator allocator);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L387">Jolt/Physics/Character/CharacterVirtual.h:387</see>
|
|
/// <br/>
|
|
/// <c>void ExtendedUpdate(float inDeltaTime, Vec3Arg inGravity, const ExtendedUpdateSettings &inSettings, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter, const ObjectLayerFilter &inObjectLayerFilter, const BodyFilter &inBodyFilter, const ShapeFilter &inShapeFilter, TempAllocator &inAllocator)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// This function combines Update, StickToFloor and WalkStairs. This function serves as an example of how these functions could be combined.
|
|
/// Before calling, call SetLinearVelocity to update the horizontal/vertical speed of the character, typically this is:
|
|
/// - When on OnGround and not moving away from ground: velocity = GetGroundVelocity() + horizontal speed as input by player + optional vertical jump velocity + delta time * gravity
|
|
/// - Else: velocity = current vertical velocity + horizontal speed as input by player + delta time * gravity
|
|
/// @param inDeltaTime Time step to simulate.
|
|
/// @param inGravity Gravity vector (m/s^2). This gravity vector is only used when the character is standing on top of another object to apply downward force.
|
|
/// @param inSettings A structure containing settings for the algorithm.
|
|
/// @param inBroadPhaseLayerFilter Filter that is used to check if the character collides with something in the broadphase.
|
|
/// @param inObjectLayerFilter Filter that is used to check if a character collides with a layer.
|
|
/// @param inBodyFilter Filter that is used to check if a character collides with a body.
|
|
/// @param inShapeFilter Filter that is used to check if a character collides with a subshape.
|
|
/// @param inAllocator An allocator for temporary allocations. All memory will be freed by the time this function returns.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_ExtendedUpdate")]
|
|
public static partial void CharacterVirtual_ExtendedUpdate(CharacterVirtual self, float deltaTime, float3 gravity, ref CharacterVirtual.ExtendedUpdateSettings settings, BroadPhaseLayerFilter broadPhaseLayerFilter, ObjectLayerFilter objectLayerFilter, BodyFilter bodyFilter, ShapeFilter shapeFilter, TempAllocator allocator);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L390">Jolt/Physics/Character/CharacterVirtual.h:390</see>
|
|
/// <br/>
|
|
/// <c>void RefreshContacts(const BroadPhaseLayerFilter &inBroadPhaseLayerFilter, const ObjectLayerFilter &inObjectLayerFilter, const BodyFilter &inBodyFilter, const ShapeFilter &inShapeFilter, TempAllocator &inAllocator)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// This function can be used after a character has teleported to determine the new contacts with the
|
|
/// world.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_RefreshContacts")]
|
|
public static partial void CharacterVirtual_RefreshContacts(CharacterVirtual self, BroadPhaseLayerFilter broadPhaseLayerFilter, ObjectLayerFilter objectLayerFilter, BodyFilter bodyFilter, ShapeFilter shapeFilter, TempAllocator allocator);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L394">Jolt/Physics/Character/CharacterVirtual.h:394</see>
|
|
/// <br/>
|
|
/// <c>void UpdateGroundVelocity()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Use the ground body ID to get an updated estimate of the ground velocity. This function can be used if the ground body has moved / changed velocity and you want a new estimate of the ground velocity.
|
|
/// It will not perform collision detection, so is less accurate than RefreshContacts but a lot faster.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_UpdateGroundVelocity")]
|
|
public static partial void CharacterVirtual_UpdateGroundVelocity(CharacterVirtual self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L405">Jolt/Physics/Character/CharacterVirtual.h:405</see>
|
|
/// <br/>
|
|
/// <c>bool SetShape(const Shape *inShape, float inMaxPenetrationDepth, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter, const ObjectLayerFilter &inObjectLayerFilter, const BodyFilter &inBodyFilter, const ShapeFilter &inShapeFilter, TempAllocator &inAllocator)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Switch the shape of the character (e.g. for stance).
|
|
/// @param inShape The shape to switch to.
|
|
/// @param inMaxPenetrationDepth When inMaxPenetrationDepth is not FLT_MAX, it checks if the new shape collides before switching shape. This is the max penetration we're willing to accept after the switch.
|
|
/// @param inBroadPhaseLayerFilter Filter that is used to check if the character collides with something in the broadphase.
|
|
/// @param inObjectLayerFilter Filter that is used to check if a character collides with a layer.
|
|
/// @param inBodyFilter Filter that is used to check if a character collides with a body.
|
|
/// @param inShapeFilter Filter that is used to check if a character collides with a subshape.
|
|
/// @param inAllocator An allocator for temporary allocations. All memory will be freed by the time this function returns.
|
|
/// @return Returns true if the switch succeeded.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_SetShape")]
|
|
public static partial Brutal.Bool8 CharacterVirtual_SetShape(CharacterVirtual self, Shape shape, float maxPenetrationDepth, BroadPhaseLayerFilter broadPhaseLayerFilter, ObjectLayerFilter objectLayerFilter, BodyFilter bodyFilter, ShapeFilter shapeFilter, TempAllocator allocator);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L408">Jolt/Physics/Character/CharacterVirtual.h:408</see>
|
|
/// <br/>
|
|
/// <c>void SetInnerBodyShape(const Shape *inShape)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Updates the shape of the inner rigid body. Should be called after a successful call to SetShape.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_SetInnerBodyShape")]
|
|
public static partial void CharacterVirtual_SetInnerBodyShape(CharacterVirtual self, Shape shape);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L513">Jolt/Physics/Character/CharacterVirtual.h:513</see>
|
|
/// <br/>
|
|
/// <c>bool HasCollidedWith(const BodyID &inBody) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if the character is currently in contact with or has collided with another body in the last
|
|
/// operation (e.g. Update or WalkStairs)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_HasCollidedWith")]
|
|
public static partial Brutal.Bool8 CharacterVirtual_HasCollidedWith(CharacterVirtual self, uint body);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L522">Jolt/Physics/Character/CharacterVirtual.h:522</see>
|
|
/// <br/>
|
|
/// <c>bool HasCollidedWith(const CharacterID &inCharacterID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if the character is currently in contact with or has collided with another character in the
|
|
/// last time step (e.g. Update or WalkStairs)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_HasCollidedWith_2")]
|
|
public static partial Brutal.Bool8 CharacterVirtual_HasCollidedWith_2(CharacterVirtual self, CharacterID characterID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L531">Jolt/Physics/Character/CharacterVirtual.h:531</see>
|
|
/// <br/>
|
|
/// <c>bool HasCollidedWith(const CharacterVirtual *inCharacter) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if the character is currently in contact with or has collided with another character in the
|
|
/// last time step (e.g. Update or WalkStairs)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_HasCollidedWith_3")]
|
|
public static partial Brutal.Bool8 CharacterVirtual_HasCollidedWith_3(CharacterVirtual self, CharacterVirtual character);
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_AddRef")]
|
|
public static partial void CharacterVirtual_AddRef(CharacterVirtual self);
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_Release")]
|
|
public static partial void CharacterVirtual_Release(CharacterVirtual self);
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_GetRefCount")]
|
|
public static partial uint CharacterVirtual_GetRefCount(CharacterVirtual self);
|
|
[LibraryImport("jolt", EntryPoint = "CharacterVirtual_AsCharacterBase")]
|
|
public static partial CharacterBase CharacterVirtual_AsCharacterBase(CharacterVirtual self);
|
|
}
|
|
}
|
|
}
|