brutal/Brutal.Jolt/Generated/Classes/CharacterVirtual.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

1615 lines
82 KiB
C#

// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
/// <summary>
/// <para>
/// Runtime character object. This object usually represents the player. Contrary to the Character class it
/// doesn't use a rigid body but moves doing collision checks only (hence the name virtual). The advantage of
/// this is that you can determine when the character moves in the frame (usually this has to happen at a very
/// particular point in the frame) but the downside is that other objects don't see this virtual character. To
/// make a CharacterVirtual visible to the simulation, you can optionally create an inner rigid body through
/// CharacterVirtualSettings::mInnerBodyShape. A CharacterVirtual is not tracked by the PhysicsSystem so you
/// need to update it yourself. This also means that a call to PhysicsSystem::SaveState will not save its state,
/// you need to call CharacterVirtual::SaveState yourself.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L268">Jolt/Physics/Character/CharacterVirtual.h:268</see>
/// <br/>
/// <c>class CharacterVirtual : public CharacterBase</c>
/// </para>
/// </summary>
[InteropHandle]
public readonly partial struct CharacterVirtual : IDisposable
{
/// <summary>
/// <para>
/// Settings struct with settings for ExtendedUpdate
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L429">Jolt/Physics/Character/CharacterVirtual.h:429</see>
/// <br/>
/// <c>struct ExtendedUpdateSettings</c>
/// </para>
/// </summary>
[StructLayout(LayoutKind.Explicit, Size = 64)]
public partial struct ExtendedUpdateSettings
{
/// <summary>
/// <para>
/// See StickToFloor inStepDown parameter. Can be zero to turn off.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L431">Jolt/Physics/Character/CharacterVirtual.h:431</see>
/// <br/>
/// <c>Vec3 mStickToFloorStepDown { 0, -0.5f, 0 }</c>
/// </para>
/// </summary>
[FieldOffset(0)]
public float3 StickToFloorStepDown;
/// <summary>
/// <para>
/// See WalkStairs inStepUp parameter. Can be zero to turn off.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L432">Jolt/Physics/Character/CharacterVirtual.h:432</see>
/// <br/>
/// <c>Vec3 mWalkStairsStepUp { 0, 0.4f, 0 }</c>
/// </para>
/// </summary>
[FieldOffset(16)]
public float3 WalkStairsStepUp;
/// <summary>
/// <para>
/// See WalkStairs inStepForward parameter. Note that the parameter only indicates a magnitude,
/// direction is taken from current velocity.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L433">Jolt/Physics/Character/CharacterVirtual.h:433</see>
/// <br/>
/// <c>float mWalkStairsMinStepForward { 0.02f }</c>
/// </para>
/// </summary>
[FieldOffset(32)]
public float WalkStairsMinStepForward;
/// <summary>
/// <para>
/// See WalkStairs inStepForwardTest parameter. Note that the parameter only indicates a magnitude,
/// direction is taken from current velocity.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L434">Jolt/Physics/Character/CharacterVirtual.h:434</see>
/// <br/>
/// <c>float mWalkStairsStepForwardTest { 0.15f }</c>
/// </para>
/// </summary>
[FieldOffset(36)]
public float WalkStairsStepForwardTest;
/// <summary>
/// <para>
/// Cos(angle) where angle is the maximum angle between the ground normal in the horizontal plane and
/// the character forward vector where we're willing to adjust the step forward test towards the contact
/// normal.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L435">Jolt/Physics/Character/CharacterVirtual.h:435</see>
/// <br/>
/// <c>float mWalkStairsCosAngleForwardContact { Cos(DegreesToRadians(75.0f)) }</c>
/// </para>
/// </summary>
[FieldOffset(40)]
public float WalkStairsCosAngleForwardContact;
/// <summary>
/// <para>
/// See WalkStairs inStepDownExtra
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L436">Jolt/Physics/Character/CharacterVirtual.h:436</see>
/// <br/>
/// <c>Vec3 mWalkStairsStepDownExtra { Vec3::sZero() }</c>
/// </para>
/// </summary>
[FieldOffset(48)]
public float3 WalkStairsStepDownExtra;
}
/// <summary>
/// <para>
/// A constraint that limits the movement of the character
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L556">Jolt/Physics/Character/CharacterVirtual.h:556</see>
/// <br/>
/// <c>struct Constraint</c>
/// </para>
/// </summary>
[StructLayout(LayoutKind.Explicit, Size = 64)]
public partial struct Constraint
{
/// <summary>
/// <para>
/// Contact that this constraint was generated from
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L558">Jolt/Physics/Character/CharacterVirtual.h:558</see>
/// <br/>
/// <c>CharacterContact * mContact</c>
/// </para>
/// </summary>
[FieldOffset(0)]
public Ptr<CharacterContact> Contact;
/// <summary>
/// <para>
/// Calculated time of impact (can be negative if penetrating)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L559">Jolt/Physics/Character/CharacterVirtual.h:559</see>
/// <br/>
/// <c>float mTOI</c>
/// </para>
/// </summary>
[FieldOffset(8)]
public float TOI;
/// <summary>
/// <para>
/// Velocity of the contact projected on the contact normal (negative if separating)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L560">Jolt/Physics/Character/CharacterVirtual.h:560</see>
/// <br/>
/// <c>float mProjectedVelocity</c>
/// </para>
/// </summary>
[FieldOffset(12)]
public float ProjectedVelocity;
/// <summary>
/// <para>
/// Velocity of the contact (can contain a corrective velocity to resolve penetration)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L561">Jolt/Physics/Character/CharacterVirtual.h:561</see>
/// <br/>
/// <c>Vec3 mLinearVelocity</c>
/// </para>
/// </summary>
[FieldOffset(16)]
public float3 LinearVelocity;
/// <summary>
/// <para>
/// Plane around the origin that describes how far we can displace (from the origin)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L562">Jolt/Physics/Character/CharacterVirtual.h:562</see>
/// <br/>
/// <c>Plane mPlane</c>
/// </para>
/// </summary>
[FieldOffset(32)]
public Plane Plane;
/// <summary>
/// <para>
/// If this constraint belongs to a steep slope
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L563">Jolt/Physics/Character/CharacterVirtual.h:563</see>
/// <br/>
/// <c>bool mIsSteepSlope = false</c>
/// </para>
/// </summary>
[FieldOffset(48)]
public Brutal.Bool8 IsSteepSlope;
}
/// <summary>
/// <para>
/// View from a contact listener perspective on which contacts have been added/removed
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L736">Jolt/Physics/Character/CharacterVirtual.h:736</see>
/// <br/>
/// <c>struct ListenerContactValue</c>
/// </para>
/// </summary>
[StructLayout(LayoutKind.Explicit, Size = 8)]
public partial struct ListenerContactValue
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L741">Jolt/Physics/Character/CharacterVirtual.h:741</see>
/// <br/>
/// <c>CharacterContactSettings mSettings</c>
/// </para>
/// </summary>
[FieldOffset(0)]
public CharacterContactSettings Settings;
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L742">Jolt/Physics/Character/CharacterVirtual.h:742</see>
/// <br/>
/// <c>int mCount = 0</c>
/// </para>
/// </summary>
[FieldOffset(4)]
public int Count;
}
/// <summary>
/// <para>
/// Constructor
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L279">Jolt/Physics/Character/CharacterVirtual.h:279</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>
public static CharacterVirtual Create(
CharacterVirtualSettings settings,
float3 position,
floatQuat rotation,
ulong userData,
PhysicsSystem system
) => Jolt.PInvoke.CharacterVirtual_Create(settings, position, rotation, userData, system);
/// <summary>
/// <para>
/// Constructor without user data
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L282">Jolt/Physics/Character/CharacterVirtual.h:282</see>
/// <br/>
/// <c>CharacterVirtual(const CharacterVirtualSettings *inSettings, RVec3Arg inPosition, QuatArg inRotation, PhysicsSystem *inSystem)</c>
/// </para>
/// </summary>
public static CharacterVirtual Create(
CharacterVirtualSettings settings,
float3 position,
floatQuat rotation,
PhysicsSystem system
) => Jolt.PInvoke.CharacterVirtual_Create_2(settings, position, rotation, system);
/// <summary>
/// <para>
/// The ID of this character
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L288">Jolt/Physics/Character/CharacterVirtual.h:288</see>
/// <br/>
/// <c>inline const CharacterID &amp; GetID() const</c>
/// </para>
/// </summary>
public uint GetID() => Jolt.PInvoke.CharacterVirtual_GetID(this);
/// <summary>
/// <para>
/// Set the contact listener
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L291">Jolt/Physics/Character/CharacterVirtual.h:291</see>
/// <br/>
/// <c>void SetListener(CharacterContactListener *inListener)</c>
/// </para>
/// </summary>
public void SetListener(CharacterContactListener listener) =>
Jolt.PInvoke.CharacterVirtual_SetListener(this, listener);
/// <summary>
/// <para>
/// Get the current contact listener
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L294">Jolt/Physics/Character/CharacterVirtual.h:294</see>
/// <br/>
/// <c>CharacterContactListener * GetListener() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The returned handle is borrowed from its owner; don't Dispose it.
/// </para>
/// </remarks>
public CharacterContactListener GetListener() => Jolt.PInvoke.CharacterVirtual_GetListener(this);
/// <summary>
/// <para>
/// Set the character vs character collision interface
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L297">Jolt/Physics/Character/CharacterVirtual.h:297</see>
/// <br/>
/// <c>void SetCharacterVsCharacterCollision(CharacterVsCharacterCollision *inCharacterVsCharacterCollision)</c>
/// </para>
/// </summary>
public void SetCharacterVsCharacterCollision(CharacterVsCharacterCollision characterVsCharacterCollision) =>
Jolt.PInvoke.CharacterVirtual_SetCharacterVsCharacterCollision(this, characterVsCharacterCollision);
/// <summary>
/// <para>
/// Get the linear velocity of the character (m / s)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L300">Jolt/Physics/Character/CharacterVirtual.h:300</see>
/// <br/>
/// <c>Vec3 GetLinearVelocity() const</c>
/// </para>
/// </summary>
public float3 GetLinearVelocity() => Jolt.PInvoke.CharacterVirtual_GetLinearVelocity(this);
/// <summary>
/// <para>
/// Set the linear velocity of the character (m / s)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L303">Jolt/Physics/Character/CharacterVirtual.h:303</see>
/// <br/>
/// <c>void SetLinearVelocity(Vec3Arg inLinearVelocity)</c>
/// </para>
/// </summary>
public void SetLinearVelocity(float3 linearVelocity) =>
Jolt.PInvoke.CharacterVirtual_SetLinearVelocity(this, linearVelocity);
/// <summary>
/// <para>
/// Get the position of the character
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L306">Jolt/Physics/Character/CharacterVirtual.h:306</see>
/// <br/>
/// <c>RVec3 GetPosition() const</c>
/// </para>
/// </summary>
public float3 GetPosition() => Jolt.PInvoke.CharacterVirtual_GetPosition(this);
/// <summary>
/// <para>
/// Set the position of the character
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L309">Jolt/Physics/Character/CharacterVirtual.h:309</see>
/// <br/>
/// <c>void SetPosition(RVec3Arg inPosition)</c>
/// </para>
/// </summary>
public void SetPosition(float3 position) => Jolt.PInvoke.CharacterVirtual_SetPosition(this, position);
/// <summary>
/// <para>
/// Get the rotation of the character
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L312">Jolt/Physics/Character/CharacterVirtual.h:312</see>
/// <br/>
/// <c>Quat GetRotation() const</c>
/// </para>
/// </summary>
public floatQuat GetRotation() => Jolt.PInvoke.CharacterVirtual_GetRotation(this);
/// <summary>
/// <para>
/// Set the rotation of the character
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L315">Jolt/Physics/Character/CharacterVirtual.h:315</see>
/// <br/>
/// <c>void SetRotation(QuatArg inRotation)</c>
/// </para>
/// </summary>
public void SetRotation(floatQuat rotation) => Jolt.PInvoke.CharacterVirtual_SetRotation(this, rotation);
/// <summary>
/// <para>
/// Get the center of mass position of the shape
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L318">Jolt/Physics/Character/CharacterVirtual.h:318</see>
/// <br/>
/// <c>inline RVec3 GetCenterOfMassPosition() const</c>
/// </para>
/// </summary>
public float3 GetCenterOfMassPosition() => Jolt.PInvoke.CharacterVirtual_GetCenterOfMassPosition(this);
/// <summary>
/// <para>
/// Calculate the world transform of the character
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L321">Jolt/Physics/Character/CharacterVirtual.h:321</see>
/// <br/>
/// <c>RMat44 GetWorldTransform() const</c>
/// </para>
/// </summary>
public float4x4 GetWorldTransform() => Jolt.PInvoke.CharacterVirtual_GetWorldTransform(this);
/// <summary>
/// <para>
/// Calculates the transform for this character's center of mass
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L324">Jolt/Physics/Character/CharacterVirtual.h:324</see>
/// <br/>
/// <c>RMat44 GetCenterOfMassTransform() const</c>
/// </para>
/// </summary>
public float4x4 GetCenterOfMassTransform() => Jolt.PInvoke.CharacterVirtual_GetCenterOfMassTransform(this);
/// <summary>
/// <para>
/// Character mass (kg)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L327">Jolt/Physics/Character/CharacterVirtual.h:327</see>
/// <br/>
/// <c>float GetMass() const</c>
/// </para>
/// </summary>
public float GetMass() => Jolt.PInvoke.CharacterVirtual_GetMass(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L328">Jolt/Physics/Character/CharacterVirtual.h:328</see>
/// <br/>
/// <c>void SetMass(float inMass)</c>
/// </para>
/// </summary>
public void SetMass(float mass) => Jolt.PInvoke.CharacterVirtual_SetMass(this, mass);
/// <summary>
/// <para>
/// Maximum force with which the character can push other bodies (N)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L331">Jolt/Physics/Character/CharacterVirtual.h:331</see>
/// <br/>
/// <c>float GetMaxStrength() const</c>
/// </para>
/// </summary>
public float GetMaxStrength() => Jolt.PInvoke.CharacterVirtual_GetMaxStrength(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L332">Jolt/Physics/Character/CharacterVirtual.h:332</see>
/// <br/>
/// <c>void SetMaxStrength(float inMaxStrength)</c>
/// </para>
/// </summary>
public void SetMaxStrength(float maxStrength) =>
Jolt.PInvoke.CharacterVirtual_SetMaxStrength(this, maxStrength);
/// <summary>
/// <para>
/// This value governs how fast a penetration will be resolved, 0 = nothing is resolved, 1 = everything in
/// one update
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L335">Jolt/Physics/Character/CharacterVirtual.h:335</see>
/// <br/>
/// <c>float GetPenetrationRecoverySpeed() const</c>
/// </para>
/// </summary>
public float GetPenetrationRecoverySpeed() => Jolt.PInvoke.CharacterVirtual_GetPenetrationRecoverySpeed(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L336">Jolt/Physics/Character/CharacterVirtual.h:336</see>
/// <br/>
/// <c>void SetPenetrationRecoverySpeed(float inSpeed)</c>
/// </para>
/// </summary>
public void SetPenetrationRecoverySpeed(float speed) =>
Jolt.PInvoke.CharacterVirtual_SetPenetrationRecoverySpeed(this, speed);
/// <summary>
/// <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>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L339">Jolt/Physics/Character/CharacterVirtual.h:339</see>
/// <br/>
/// <c>bool GetEnhancedInternalEdgeRemoval() const</c>
/// </para>
/// </summary>
public bool GetEnhancedInternalEdgeRemoval() =>
Jolt.PInvoke.CharacterVirtual_GetEnhancedInternalEdgeRemoval(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L340">Jolt/Physics/Character/CharacterVirtual.h:340</see>
/// <br/>
/// <c>void SetEnhancedInternalEdgeRemoval(bool inApply)</c>
/// </para>
/// </summary>
public void SetEnhancedInternalEdgeRemoval(bool apply) =>
Jolt.PInvoke.CharacterVirtual_SetEnhancedInternalEdgeRemoval(this, apply);
/// <summary>
/// <para>
/// Character padding
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L343">Jolt/Physics/Character/CharacterVirtual.h:343</see>
/// <br/>
/// <c>float GetCharacterPadding() const</c>
/// </para>
/// </summary>
public float GetCharacterPadding() => Jolt.PInvoke.CharacterVirtual_GetCharacterPadding(this);
/// <summary>
/// <para>
/// Max num hits to collect in order to avoid excess of contact points collection
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L346">Jolt/Physics/Character/CharacterVirtual.h:346</see>
/// <br/>
/// <c>uint GetMaxNumHits() const</c>
/// </para>
/// </summary>
public uint GetMaxNumHits() => Jolt.PInvoke.CharacterVirtual_GetMaxNumHits(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L347">Jolt/Physics/Character/CharacterVirtual.h:347</see>
/// <br/>
/// <c>void SetMaxNumHits(uint inMaxHits)</c>
/// </para>
/// </summary>
public void SetMaxNumHits(uint maxHits) => Jolt.PInvoke.CharacterVirtual_SetMaxNumHits(this, maxHits);
/// <summary>
/// <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>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L350">Jolt/Physics/Character/CharacterVirtual.h:350</see>
/// <br/>
/// <c>float GetHitReductionCosMaxAngle() const</c>
/// </para>
/// </summary>
public float GetHitReductionCosMaxAngle() => Jolt.PInvoke.CharacterVirtual_GetHitReductionCosMaxAngle(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L351">Jolt/Physics/Character/CharacterVirtual.h:351</see>
/// <br/>
/// <c>void SetHitReductionCosMaxAngle(float inCosMaxAngle)</c>
/// </para>
/// </summary>
public void SetHitReductionCosMaxAngle(float cosMaxAngle) =>
Jolt.PInvoke.CharacterVirtual_SetHitReductionCosMaxAngle(this, cosMaxAngle);
/// <summary>
/// <para>
/// 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.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L357">Jolt/Physics/Character/CharacterVirtual.h:357</see>
/// <br/>
/// <c>bool GetMaxHitsExceeded() const</c>
/// </para>
/// </summary>
public bool GetMaxHitsExceeded() => Jolt.PInvoke.CharacterVirtual_GetMaxHitsExceeded(this);
/// <summary>
/// <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>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L360">Jolt/Physics/Character/CharacterVirtual.h:360</see>
/// <br/>
/// <c>Vec3 GetShapeOffset() const</c>
/// </para>
/// </summary>
public float3 GetShapeOffset() => Jolt.PInvoke.CharacterVirtual_GetShapeOffset(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L361">Jolt/Physics/Character/CharacterVirtual.h:361</see>
/// <br/>
/// <c>void SetShapeOffset(Vec3Arg inShapeOffset)</c>
/// </para>
/// </summary>
public void SetShapeOffset(float3 shapeOffset) =>
Jolt.PInvoke.CharacterVirtual_SetShapeOffset(this, shapeOffset);
/// <summary>
/// <para>
/// Access to the user data, can be used for anything by the application
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L364">Jolt/Physics/Character/CharacterVirtual.h:364</see>
/// <br/>
/// <c>uint64 GetUserData() const</c>
/// </para>
/// </summary>
public ulong GetUserData() => Jolt.PInvoke.CharacterVirtual_GetUserData(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L365">Jolt/Physics/Character/CharacterVirtual.h:365</see>
/// <br/>
/// <c>void SetUserData(uint64 inUserData)</c>
/// </para>
/// </summary>
public void SetUserData(ulong userData) => Jolt.PInvoke.CharacterVirtual_SetUserData(this, userData);
/// <summary>
/// <para>
/// Optional inner rigid body that proxies the character in the world. Can be used to update body
/// properties.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L368">Jolt/Physics/Character/CharacterVirtual.h:368</see>
/// <br/>
/// <c>BodyID GetInnerBodyID() const</c>
/// </para>
/// </summary>
public uint GetInnerBodyID() => Jolt.PInvoke.CharacterVirtual_GetInnerBodyID(this);
/// <summary>
/// <para>
/// 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()
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L374">Jolt/Physics/Character/CharacterVirtual.h:374</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>
public float3 CancelVelocityTowardsSteepSlopes(float3 desiredVelocity) =>
Jolt.PInvoke.CharacterVirtual_CancelVelocityTowardsSteepSlopes(this, desiredVelocity);
/// <summary>
/// <para>
/// 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.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L380">Jolt/Physics/Character/CharacterVirtual.h:380</see>
/// <br/>
/// <c>void StartTrackingContactChanges()</c>
/// </para>
/// </summary>
public void StartTrackingContactChanges() => Jolt.PInvoke.CharacterVirtual_StartTrackingContactChanges(this);
/// <summary>
/// <para>
/// This call triggers contact removal callbacks and is used in conjunction with
/// StartTrackingContactChanges.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L383">Jolt/Physics/Character/CharacterVirtual.h:383</see>
/// <br/>
/// <c>void FinishTrackingContactChanges()</c>
/// </para>
/// </summary>
public void FinishTrackingContactChanges() => Jolt.PInvoke.CharacterVirtual_FinishTrackingContactChanges(this);
/// <summary>
/// <para>
/// 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.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L395">Jolt/Physics/Character/CharacterVirtual.h:395</see>
/// <br/>
/// <c>void Update(float inDeltaTime, Vec3Arg inGravity, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter, const ObjectLayerFilter &amp;inObjectLayerFilter, const BodyFilter &amp;inBodyFilter, const ShapeFilter &amp;inShapeFilter, TempAllocator &amp;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>
/// <para>
/// Pass default for broadPhaseLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for objectLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for bodyFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for shapeFilter to filter nothing out.
/// </para>
/// </remarks>
public void Update(
float deltaTime,
float3 gravity,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter,
BodyFilter bodyFilter,
ShapeFilter shapeFilter,
TempAllocator allocator
) =>
Jolt.PInvoke.CharacterVirtual_Update(
this,
deltaTime,
gravity,
broadPhaseLayerFilter,
objectLayerFilter,
bodyFilter,
shapeFilter,
allocator
);
/// <summary>
/// <para>
/// 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.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L400">Jolt/Physics/Character/CharacterVirtual.h:400</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>
public bool CanWalkStairs(float3 linearVelocity) =>
Jolt.PInvoke.CharacterVirtual_CanWalkStairs(this, linearVelocity);
/// <summary>
/// <para>
/// 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
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L414">Jolt/Physics/Character/CharacterVirtual.h:414</see>
/// <br/>
/// <c>bool WalkStairs(float inDeltaTime, Vec3Arg inStepUp, Vec3Arg inStepForward, Vec3Arg inStepForwardTest, Vec3Arg inStepDownExtra, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter, const ObjectLayerFilter &amp;inObjectLayerFilter, const BodyFilter &amp;inBodyFilter, const ShapeFilter &amp;inShapeFilter, TempAllocator &amp;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>
/// <para>
/// Pass default for broadPhaseLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for objectLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for bodyFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for shapeFilter to filter nothing out.
/// </para>
/// </remarks>
public bool WalkStairs(
float deltaTime,
float3 stepUp,
float3 stepForward,
float3 stepForwardTest,
float3 stepDownExtra,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter,
BodyFilter bodyFilter,
ShapeFilter shapeFilter,
TempAllocator allocator
) =>
Jolt.PInvoke.CharacterVirtual_WalkStairs(
this,
deltaTime,
stepUp,
stepForward,
stepForwardTest,
stepDownExtra,
broadPhaseLayerFilter,
objectLayerFilter,
bodyFilter,
shapeFilter,
allocator
);
/// <summary>
/// <para>
/// 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.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L426">Jolt/Physics/Character/CharacterVirtual.h:426</see>
/// <br/>
/// <c>bool StickToFloor(Vec3Arg inStepDown, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter, const ObjectLayerFilter &amp;inObjectLayerFilter, const BodyFilter &amp;inBodyFilter, const ShapeFilter &amp;inShapeFilter, TempAllocator &amp;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>
/// <para>
/// Pass default for broadPhaseLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for objectLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for bodyFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for shapeFilter to filter nothing out.
/// </para>
/// </remarks>
public bool StickToFloor(
float3 stepDown,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter,
BodyFilter bodyFilter,
ShapeFilter shapeFilter,
TempAllocator allocator
) =>
Jolt.PInvoke.CharacterVirtual_StickToFloor(
this,
stepDown,
broadPhaseLayerFilter,
objectLayerFilter,
bodyFilter,
shapeFilter,
allocator
);
/// <summary>
/// <para>
/// 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
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L451">Jolt/Physics/Character/CharacterVirtual.h:451</see>
/// <br/>
/// <c>void ExtendedUpdate(float inDeltaTime, Vec3Arg inGravity, const ExtendedUpdateSettings &amp;inSettings, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter, const ObjectLayerFilter &amp;inObjectLayerFilter, const BodyFilter &amp;inBodyFilter, const ShapeFilter &amp;inShapeFilter, TempAllocator &amp;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>
/// <para>
/// Pass default for broadPhaseLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for objectLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for bodyFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for shapeFilter to filter nothing out.
/// </para>
/// </remarks>
public void ExtendedUpdate(
float deltaTime,
float3 gravity,
in CharacterVirtual.ExtendedUpdateSettings settings,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter,
BodyFilter bodyFilter,
ShapeFilter shapeFilter,
TempAllocator allocator
) =>
Jolt.PInvoke.CharacterVirtual_ExtendedUpdate(
this,
deltaTime,
gravity,
in settings,
broadPhaseLayerFilter,
objectLayerFilter,
bodyFilter,
shapeFilter,
allocator
);
/// <summary>
/// <para>
/// This function can be used after a character has teleported to determine the new contacts with the world.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L454">Jolt/Physics/Character/CharacterVirtual.h:454</see>
/// <br/>
/// <c>void RefreshContacts(const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter, const ObjectLayerFilter &amp;inObjectLayerFilter, const BodyFilter &amp;inBodyFilter, const ShapeFilter &amp;inShapeFilter, TempAllocator &amp;inAllocator)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Pass default for broadPhaseLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for objectLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for bodyFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for shapeFilter to filter nothing out.
/// </para>
/// </remarks>
public void RefreshContacts(
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter,
BodyFilter bodyFilter,
ShapeFilter shapeFilter,
TempAllocator allocator
) =>
Jolt.PInvoke.CharacterVirtual_RefreshContacts(
this,
broadPhaseLayerFilter,
objectLayerFilter,
bodyFilter,
shapeFilter,
allocator
);
/// <summary>
/// <para>
/// 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.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L458">Jolt/Physics/Character/CharacterVirtual.h:458</see>
/// <br/>
/// <c>void UpdateGroundVelocity()</c>
/// </para>
/// </summary>
public void UpdateGroundVelocity() => Jolt.PInvoke.CharacterVirtual_UpdateGroundVelocity(this);
/// <summary>
/// <para>
/// Switch the shape of the character (e.g. for stance).
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L469">Jolt/Physics/Character/CharacterVirtual.h:469</see>
/// <br/>
/// <c>bool SetShape(const Shape *inShape, float inMaxPenetrationDepth, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter, const ObjectLayerFilter &amp;inObjectLayerFilter, const BodyFilter &amp;inBodyFilter, const ShapeFilter &amp;inShapeFilter, TempAllocator &amp;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>
/// <para>
/// Pass default for broadPhaseLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for objectLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for bodyFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for shapeFilter to filter nothing out.
/// </para>
/// </remarks>
public bool SetShape(
Shape shape,
float maxPenetrationDepth,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter,
BodyFilter bodyFilter,
ShapeFilter shapeFilter,
TempAllocator allocator
) =>
Jolt.PInvoke.CharacterVirtual_SetShape(
this,
shape,
maxPenetrationDepth,
broadPhaseLayerFilter,
objectLayerFilter,
bodyFilter,
shapeFilter,
allocator
);
/// <summary>
/// <para>
/// Updates the shape of the inner rigid body. Should be called after a successful call to SetShape.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L472">Jolt/Physics/Character/CharacterVirtual.h:472</see>
/// <br/>
/// <c>void SetInnerBodyShape(const Shape *inShape)</c>
/// </para>
/// </summary>
public void SetInnerBodyShape(Shape shape) => Jolt.PInvoke.CharacterVirtual_SetInnerBodyShape(this, shape);
/// <summary>
/// <para>
/// Get the transformed shape that represents the volume of the character, can be used for collision checks.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L475">Jolt/Physics/Character/CharacterVirtual.h:475</see>
/// <br/>
/// <c>TransformedShape GetTransformedShape() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The returned handle is an owned copy; Dispose it when you're done with it.
/// </para>
/// </remarks>
public TransformedShape GetTransformedShape() => Jolt.PInvoke.CharacterVirtual_GetTransformedShape(this);
/// <summary>
/// <para>
/// Get all contacts for the character at a particular location. When colliding with another character
/// virtual, this pointer will be provided through CollideShapeCollector::SetUserContext before adding a
/// hit.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L490">Jolt/Physics/Character/CharacterVirtual.h:490</see>
/// <br/>
/// <c>void CheckCollision(RVec3Arg inPosition, QuatArg inRotation, Vec3Arg inMovementDirection, float inMaxSeparationDistance, const Shape *inShape, RVec3Arg inBaseOffset, CollideShapeCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter, const ObjectLayerFilter &amp;inObjectLayerFilter, const BodyFilter &amp;inBodyFilter, const ShapeFilter &amp;inShapeFilter) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// @brief Get all contacts for the character at a particular location.
/// When colliding with another character virtual, this pointer will be provided through CollideShapeCollector::SetUserContext before adding a hit.
/// @param inPosition Position to test, note that this position will be corrected for the character padding.
/// @param inRotation Rotation at which to test the shape.
/// @param inMovementDirection A hint in which direction the character is moving, will be used to calculate a proper normal.
/// @param inMaxSeparationDistance How much distance around the character you want to report contacts in (can be 0 to match the character exactly).
/// @param inShape Shape to test collision with.
/// @param inBaseOffset All hit results will be returned relative to this offset, can be zero to get results in world position, but when you're testing far from the origin you get better precision by picking a position that's closer e.g. GetPosition() since floats are most accurate near the origin
/// @param ioCollector Collision collector that receives the collision results.
/// @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.
/// </code>
/// <para>
/// Collects every hit into checkcollisionresults, which you allocate and size. Returns how many were
/// written; totalHits is how many the query found, so a larger span is needed when it exceeds the span's
/// length.
/// </para>
/// <para>
/// Pass default for broadPhaseLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for objectLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for bodyFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for shapeFilter to filter nothing out.
/// </para>
/// </remarks>
public unsafe uint CheckCollision(
float3 position,
floatQuat rotation,
float3 movementDirection,
float maxSeparationDistance,
Shape shape,
float3 baseOffset,
Span<CollideShapeResult> results,
out uint totalHits,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter,
BodyFilter bodyFilter,
ShapeFilter shapeFilter
)
{
fixed (CollideShapeResult* results_fixed = results)
{
totalHits = Jolt.PInvoke.CharacterVirtual_CheckCollision(
this,
position,
rotation,
movementDirection,
maxSeparationDistance,
shape,
baseOffset,
results_fixed,
(uint)results.Length,
broadPhaseLayerFilter,
objectLayerFilter,
bodyFilter,
shapeFilter
);
return totalHits < (uint)results.Length ? totalHits : (uint)results.Length;
}
}
/// <summary>
/// <para>
/// Get all contacts for the character at a particular location. When colliding with another character
/// virtual, this pointer will be provided through CollideShapeCollector::SetUserContext before adding a
/// hit.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L490">Jolt/Physics/Character/CharacterVirtual.h:490</see>
/// <br/>
/// <c>void CheckCollision(RVec3Arg inPosition, QuatArg inRotation, Vec3Arg inMovementDirection, float inMaxSeparationDistance, const Shape *inShape, RVec3Arg inBaseOffset, CollideShapeCollector &amp;ioCollector, const BroadPhaseLayerFilter &amp;inBroadPhaseLayerFilter, const ObjectLayerFilter &amp;inObjectLayerFilter, const BodyFilter &amp;inBodyFilter, const ShapeFilter &amp;inShapeFilter) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// @brief Get all contacts for the character at a particular location.
/// When colliding with another character virtual, this pointer will be provided through CollideShapeCollector::SetUserContext before adding a hit.
/// @param inPosition Position to test, note that this position will be corrected for the character padding.
/// @param inRotation Rotation at which to test the shape.
/// @param inMovementDirection A hint in which direction the character is moving, will be used to calculate a proper normal.
/// @param inMaxSeparationDistance How much distance around the character you want to report contacts in (can be 0 to match the character exactly).
/// @param inShape Shape to test collision with.
/// @param inBaseOffset All hit results will be returned relative to this offset, can be zero to get results in world position, but when you're testing far from the origin you get better precision by picking a position that's closer e.g. GetPosition() since floats are most accurate near the origin
/// @param ioCollector Collision collector that receives the collision results.
/// @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.
/// </code>
/// <para>
/// Keeps only the closest (or deepest) hit. Returns false, and writes a native default-constructed result
/// (e.g. RayCastResult's fraction is 1 + epsilon), when nothing was hit.
/// </para>
/// <para>
/// Pass default for broadPhaseLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for objectLayerFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for bodyFilter to filter nothing out.
/// </para>
/// <para>
/// Pass default for shapeFilter to filter nothing out.
/// </para>
/// </remarks>
public bool CheckCollisionClosest(
float3 position,
floatQuat rotation,
float3 movementDirection,
float maxSeparationDistance,
Shape shape,
float3 baseOffset,
out CollideShapeResult result,
BroadPhaseLayerFilter broadPhaseLayerFilter,
ObjectLayerFilter objectLayerFilter,
BodyFilter bodyFilter,
ShapeFilter shapeFilter
) =>
Jolt.PInvoke.CharacterVirtual_CheckCollisionClosest(
this,
position,
rotation,
movementDirection,
maxSeparationDistance,
shape,
baseOffset,
out result,
broadPhaseLayerFilter,
objectLayerFilter,
bodyFilter,
shapeFilter
) != 0;
/// <summary>
/// <para>
/// Get the character settings that can recreate this character
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L493">Jolt/Physics/Character/CharacterVirtual.h:493</see>
/// <br/>
/// <c>CharacterVirtualSettings GetCharacterVirtualSettings() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The returned handle carries its own reference; Dispose it once when you're done.
/// </para>
/// </remarks>
public CharacterVirtualSettings GetCharacterVirtualSettings() =>
Jolt.PInvoke.CharacterVirtual_GetCharacterVirtualSettings(this);
/// <inheritdoc cref="CharacterBase.SaveState(StateRecorder)"/>
public void SaveState(StateRecorder stream) => ((CharacterBase)this).SaveState(stream);
/// <inheritdoc cref="CharacterBase.RestoreState(StateRecorder)"/>
public void RestoreState(StateRecorder stream) => ((CharacterBase)this).RestoreState(stream);
/// <summary>
/// <para>
/// Access to the internal list of contacts that the character has found. Note that only contacts that have
/// their mHadCollision flag set are actual contacts.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L511">Jolt/Physics/Character/CharacterVirtual.h:511</see>
/// <br/>
/// <c>const ContactList &amp; GetActiveContacts() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// The span is a view of the container's own storage, not a copy, so it costs nothing to take. It's only
/// valid until that container is resized or its owner is destroyed.
/// </para>
/// </remarks>
[return: Brutal.Attributes.Fixed]
public unsafe ReadOnlySpan<CharacterContact> GetActiveContacts()
{
Jolt.PInvoke.CharacterVirtual_GetActiveContacts(this, out var _outResult);
return new ReadOnlySpan<CharacterContact>((void*)_outResult.Data, checked((int)_outResult.Count));
}
/// <summary>
/// <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>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L514">Jolt/Physics/Character/CharacterVirtual.h:514</see>
/// <br/>
/// <c>bool HasCollidedWith(const BodyID &amp;inBody) const</c>
/// </para>
/// </summary>
public bool HasCollidedWith(uint body) => Jolt.PInvoke.CharacterVirtual_HasCollidedWith(this, body);
/// <summary>
/// <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>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L532">Jolt/Physics/Character/CharacterVirtual.h:532</see>
/// <br/>
/// <c>bool HasCollidedWith(const CharacterVirtual *inCharacter) const</c>
/// </para>
/// </summary>
public bool HasCollidedWith(CharacterVirtual character) =>
Jolt.PInvoke.CharacterVirtual_HasCollidedWith_2(this, character);
/// <summary>
/// <para>
/// Draw the current state of the constraints for iteration 0 when creating them
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L500">Jolt/Physics/Character/CharacterVirtual.h:500</see>
/// <br/>
/// <c>static inline bool sDrawConstraints = false</c>
/// </para>
/// </summary>
public static bool GetDrawConstraints() => Jolt.PInvoke.CharacterVirtual_GetDrawConstraints();
/// <summary>
/// <para>
/// Draw the current state of the constraints for iteration 0 when creating them
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L500">Jolt/Physics/Character/CharacterVirtual.h:500</see>
/// <br/>
/// <c>static inline bool sDrawConstraints = false</c>
/// </para>
/// </summary>
public static void SetDrawConstraints(bool value) => Jolt.PInvoke.CharacterVirtual_SetDrawConstraints(value);
/// <summary>
/// <para>
/// Draw the state of the walk stairs algorithm
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L501">Jolt/Physics/Character/CharacterVirtual.h:501</see>
/// <br/>
/// <c>static inline bool sDrawWalkStairs = false</c>
/// </para>
/// </summary>
public static bool GetDrawWalkStairs() => Jolt.PInvoke.CharacterVirtual_GetDrawWalkStairs();
/// <summary>
/// <para>
/// Draw the state of the walk stairs algorithm
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L501">Jolt/Physics/Character/CharacterVirtual.h:501</see>
/// <br/>
/// <c>static inline bool sDrawWalkStairs = false</c>
/// </para>
/// </summary>
public static void SetDrawWalkStairs(bool value) => Jolt.PInvoke.CharacterVirtual_SetDrawWalkStairs(value);
/// <summary>
/// <para>
/// Draw the state of the stick to floor algorithm
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L502">Jolt/Physics/Character/CharacterVirtual.h:502</see>
/// <br/>
/// <c>static inline bool sDrawStickToFloor = false</c>
/// </para>
/// </summary>
public static bool GetDrawStickToFloor() => Jolt.PInvoke.CharacterVirtual_GetDrawStickToFloor();
/// <summary>
/// <para>
/// Draw the state of the stick to floor algorithm
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L502">Jolt/Physics/Character/CharacterVirtual.h:502</see>
/// <br/>
/// <c>static inline bool sDrawStickToFloor = false</c>
/// </para>
/// </summary>
public static void SetDrawStickToFloor(bool value) => Jolt.PInvoke.CharacterVirtual_SetDrawStickToFloor(value);
/// <summary>
/// <para>
/// Draw the supporting volume plane
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L503">Jolt/Physics/Character/CharacterVirtual.h:503</see>
/// <br/>
/// <c>static inline bool sDrawSupportingVolume = false</c>
/// </para>
/// </summary>
public static bool GetDrawSupportingVolume() => Jolt.PInvoke.CharacterVirtual_GetDrawSupportingVolume();
/// <summary>
/// <para>
/// Draw the supporting volume plane
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L503">Jolt/Physics/Character/CharacterVirtual.h:503</see>
/// <br/>
/// <c>static inline bool sDrawSupportingVolume = false</c>
/// </para>
/// </summary>
public static void SetDrawSupportingVolume(bool value) =>
Jolt.PInvoke.CharacterVirtual_SetDrawSupportingVolume(value);
public void AddRef() => ((CharacterBase)this).AddRef();
public void Release() => ((CharacterBase)this).Release();
public uint GetRefCount() => ((CharacterBase)this).GetRefCount();
public static implicit operator CharacterBase(CharacterVirtual value) =>
Unsafe.BitCast<CharacterVirtual, CharacterBase>(value);
public void Dispose()
{
if (IsNull())
return;
Release();
}
/// <inheritdoc cref="CharacterBase.SetMaxSlopeAngle(float)"/>
public void SetMaxSlopeAngle(float maxSlopeAngle) => ((CharacterBase)this).SetMaxSlopeAngle(maxSlopeAngle);
/// <inheritdoc cref="CharacterBase.GetCosMaxSlopeAngle()"/>
public float GetCosMaxSlopeAngle() => ((CharacterBase)this).GetCosMaxSlopeAngle();
/// <inheritdoc cref="CharacterBase.SetUp(float3)"/>
public void SetUp(float3 up) => ((CharacterBase)this).SetUp(up);
/// <inheritdoc cref="CharacterBase.GetUp()"/>
public float3 GetUp() => ((CharacterBase)this).GetUp();
/// <inheritdoc cref="CharacterBase.GetSupportingVolume()"/>
public Plane GetSupportingVolume() => ((CharacterBase)this).GetSupportingVolume();
/// <inheritdoc cref="CharacterBase.SetSupportingVolume(in Plane)"/>
public void SetSupportingVolume(in Plane plane) => ((CharacterBase)this).SetSupportingVolume(in plane);
/// <inheritdoc cref="CharacterBase.IsSlopeTooSteep(float3)"/>
public bool IsSlopeTooSteep(float3 normal) => ((CharacterBase)this).IsSlopeTooSteep(normal);
/// <inheritdoc cref="CharacterBase.GetShape()"/>
public Shape GetShape() => ((CharacterBase)this).GetShape();
/// <inheritdoc cref="CharacterBase.GetGroundState()"/>
public CharacterBase.GroundState GetGroundState() => ((CharacterBase)this).GetGroundState();
/// <inheritdoc cref="CharacterBase.IsSupported()"/>
public bool IsSupported() => ((CharacterBase)this).IsSupported();
/// <inheritdoc cref="CharacterBase.GetGroundPosition()"/>
public float3 GetGroundPosition() => ((CharacterBase)this).GetGroundPosition();
/// <inheritdoc cref="CharacterBase.GetGroundNormal()"/>
public float3 GetGroundNormal() => ((CharacterBase)this).GetGroundNormal();
/// <inheritdoc cref="CharacterBase.GetGroundVelocity()"/>
public float3 GetGroundVelocity() => ((CharacterBase)this).GetGroundVelocity();
/// <inheritdoc cref="CharacterBase.GetGroundMaterial()"/>
public PhysicsMaterial GetGroundMaterial() => ((CharacterBase)this).GetGroundMaterial();
/// <inheritdoc cref="CharacterBase.GetGroundBodyID()"/>
public uint GetGroundBodyID() => ((CharacterBase)this).GetGroundBodyID();
/// <inheritdoc cref="CharacterBase.GetGroundSubShapeID()"/>
public uint GetGroundSubShapeID() => ((CharacterBase)this).GetGroundSubShapeID();
/// <inheritdoc cref="CharacterBase.GetGroundUserData()"/>
public ulong GetGroundUserData() => ((CharacterBase)this).GetGroundUserData();
}
}