mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
591 lines
29 KiB
C#
591 lines
29 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>
|
|
/// Contains the configuration of a character
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L23">Jolt/Physics/Character/CharacterVirtual.h:23</see>
|
|
/// <br/>
|
|
/// <c>class CharacterVirtualSettings : public CharacterBaseSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct CharacterVirtualSettings : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L29">Jolt/Physics/Character/CharacterVirtual.h:29</see>
|
|
/// <br/>
|
|
/// <c>CharacterVirtualSettings() = default</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static CharacterVirtualSettings Create() => Jolt.PInvoke.CharacterVirtualSettings_Create();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// ID to give to this character. This is used for deterministically sorting and as an identifier to
|
|
/// represent the character in the contact removal callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L34">Jolt/Physics/Character/CharacterVirtual.h:34</see>
|
|
/// <br/>
|
|
/// <c>CharacterID mID = CharacterID::sNextCharacterID()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetID() => Jolt.PInvoke.CharacterVirtualSettings_GetID(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// ID to give to this character. This is used for deterministically sorting and as an identifier to
|
|
/// represent the character in the contact removal callback.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L34">Jolt/Physics/Character/CharacterVirtual.h:34</see>
|
|
/// <br/>
|
|
/// <c>CharacterID mID = CharacterID::sNextCharacterID()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetID(uint value) => Jolt.PInvoke.CharacterVirtualSettings_SetID(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Character mass (kg). Used to push down objects with gravity when the character is standing on top.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L37">Jolt/Physics/Character/CharacterVirtual.h:37</see>
|
|
/// <br/>
|
|
/// <c>float mMass = 70.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMass() => Jolt.PInvoke.CharacterVirtualSettings_GetMass(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Character mass (kg). Used to push down objects with gravity when the character is standing on top.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L37">Jolt/Physics/Character/CharacterVirtual.h:37</see>
|
|
/// <br/>
|
|
/// <c>float mMass = 70.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMass(float value) => Jolt.PInvoke.CharacterVirtualSettings_SetMass(this, value);
|
|
|
|
/// <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#L40">Jolt/Physics/Character/CharacterVirtual.h:40</see>
|
|
/// <br/>
|
|
/// <c>float mMaxStrength = 100.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMaxStrength() => Jolt.PInvoke.CharacterVirtualSettings_GetMaxStrength(this);
|
|
|
|
/// <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#L40">Jolt/Physics/Character/CharacterVirtual.h:40</see>
|
|
/// <br/>
|
|
/// <c>float mMaxStrength = 100.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxStrength(float value) => Jolt.PInvoke.CharacterVirtualSettings_SetMaxStrength(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// An extra offset applied to the shape in local space. This allows applying an extra offset to the shape
|
|
/// in local space.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L43">Jolt/Physics/Character/CharacterVirtual.h:43</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mShapeOffset = Vec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float3 GetShapeOffset() => Jolt.PInvoke.CharacterVirtualSettings_GetShapeOffset(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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L43">Jolt/Physics/Character/CharacterVirtual.h:43</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mShapeOffset = Vec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetShapeOffset(float3 value) => Jolt.PInvoke.CharacterVirtualSettings_SetShapeOffset(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// When colliding with back faces, the character will not be able to move through back facing triangles.
|
|
/// Use this if you have triangles that need to collide on both sides.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L46">Jolt/Physics/Character/CharacterVirtual.h:46</see>
|
|
/// <br/>
|
|
/// <c>EBackFaceMode mBackFaceMode = EBackFaceMode::CollideWithBackFaces</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Movement settings
|
|
/// </para>
|
|
/// </remarks>
|
|
public BackFaceMode GetBackFaceMode() => Jolt.PInvoke.CharacterVirtualSettings_GetBackFaceMode(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// When colliding with back faces, the character will not be able to move through back facing triangles.
|
|
/// Use this if you have triangles that need to collide on both sides.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L46">Jolt/Physics/Character/CharacterVirtual.h:46</see>
|
|
/// <br/>
|
|
/// <c>EBackFaceMode mBackFaceMode = EBackFaceMode::CollideWithBackFaces</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// @name Movement settings
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SetBackFaceMode(BackFaceMode value) =>
|
|
Jolt.PInvoke.CharacterVirtualSettings_SetBackFaceMode(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// How far to scan outside of the shape for predictive contacts. A value of 0 will most likely cause the
|
|
/// character to get stuck as it cannot properly calculate a sliding direction anymore. A value that's too
|
|
/// high will cause ghost collisions.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L47">Jolt/Physics/Character/CharacterVirtual.h:47</see>
|
|
/// <br/>
|
|
/// <c>float mPredictiveContactDistance = 0.1f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetPredictiveContactDistance() =>
|
|
Jolt.PInvoke.CharacterVirtualSettings_GetPredictiveContactDistance(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// How far to scan outside of the shape for predictive contacts. A value of 0 will most likely cause the
|
|
/// character to get stuck as it cannot properly calculate a sliding direction anymore. A value that's too
|
|
/// high will cause ghost collisions.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L47">Jolt/Physics/Character/CharacterVirtual.h:47</see>
|
|
/// <br/>
|
|
/// <c>float mPredictiveContactDistance = 0.1f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetPredictiveContactDistance(float value) =>
|
|
Jolt.PInvoke.CharacterVirtualSettings_SetPredictiveContactDistance(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Max amount of collision loops
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L48">Jolt/Physics/Character/CharacterVirtual.h:48</see>
|
|
/// <br/>
|
|
/// <c>uint mMaxCollisionIterations = 5</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetMaxCollisionIterations() =>
|
|
Jolt.PInvoke.CharacterVirtualSettings_GetMaxCollisionIterations(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Max amount of collision loops
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L48">Jolt/Physics/Character/CharacterVirtual.h:48</see>
|
|
/// <br/>
|
|
/// <c>uint mMaxCollisionIterations = 5</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxCollisionIterations(uint value) =>
|
|
Jolt.PInvoke.CharacterVirtualSettings_SetMaxCollisionIterations(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// How often to try stepping in the constraint solving
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L49">Jolt/Physics/Character/CharacterVirtual.h:49</see>
|
|
/// <br/>
|
|
/// <c>uint mMaxConstraintIterations = 15</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetMaxConstraintIterations() =>
|
|
Jolt.PInvoke.CharacterVirtualSettings_GetMaxConstraintIterations(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// How often to try stepping in the constraint solving
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L49">Jolt/Physics/Character/CharacterVirtual.h:49</see>
|
|
/// <br/>
|
|
/// <c>uint mMaxConstraintIterations = 15</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxConstraintIterations(uint value) =>
|
|
Jolt.PInvoke.CharacterVirtualSettings_SetMaxConstraintIterations(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Early out condition: If this much time is left to simulate we are done
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L50">Jolt/Physics/Character/CharacterVirtual.h:50</see>
|
|
/// <br/>
|
|
/// <c>float mMinTimeRemaining = 1.0e-4f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMinTimeRemaining() => Jolt.PInvoke.CharacterVirtualSettings_GetMinTimeRemaining(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Early out condition: If this much time is left to simulate we are done
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L50">Jolt/Physics/Character/CharacterVirtual.h:50</see>
|
|
/// <br/>
|
|
/// <c>float mMinTimeRemaining = 1.0e-4f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMinTimeRemaining(float value) =>
|
|
Jolt.PInvoke.CharacterVirtualSettings_SetMinTimeRemaining(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// How far we're willing to penetrate geometry
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L51">Jolt/Physics/Character/CharacterVirtual.h:51</see>
|
|
/// <br/>
|
|
/// <c>float mCollisionTolerance = 1.0e-3f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetCollisionTolerance() => Jolt.PInvoke.CharacterVirtualSettings_GetCollisionTolerance(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// How far we're willing to penetrate geometry
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L51">Jolt/Physics/Character/CharacterVirtual.h:51</see>
|
|
/// <br/>
|
|
/// <c>float mCollisionTolerance = 1.0e-3f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetCollisionTolerance(float value) =>
|
|
Jolt.PInvoke.CharacterVirtualSettings_SetCollisionTolerance(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// How far we try to stay away from the geometry, this ensures that the sweep will hit as little as
|
|
/// possible lowering the collision cost and reducing the risk of getting stuck
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L52">Jolt/Physics/Character/CharacterVirtual.h:52</see>
|
|
/// <br/>
|
|
/// <c>float mCharacterPadding = 0.02f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetCharacterPadding() => Jolt.PInvoke.CharacterVirtualSettings_GetCharacterPadding(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// How far we try to stay away from the geometry, this ensures that the sweep will hit as little as
|
|
/// possible lowering the collision cost and reducing the risk of getting stuck
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L52">Jolt/Physics/Character/CharacterVirtual.h:52</see>
|
|
/// <br/>
|
|
/// <c>float mCharacterPadding = 0.02f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetCharacterPadding(float value) =>
|
|
Jolt.PInvoke.CharacterVirtualSettings_SetCharacterPadding(this, value);
|
|
|
|
/// <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#L53">Jolt/Physics/Character/CharacterVirtual.h:53</see>
|
|
/// <br/>
|
|
/// <c>uint mMaxNumHits = 256</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetMaxNumHits() => Jolt.PInvoke.CharacterVirtualSettings_GetMaxNumHits(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#L53">Jolt/Physics/Character/CharacterVirtual.h:53</see>
|
|
/// <br/>
|
|
/// <c>uint mMaxNumHits = 256</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaxNumHits(uint value) => Jolt.PInvoke.CharacterVirtualSettings_SetMaxNumHits(this, value);
|
|
|
|
/// <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#L54">Jolt/Physics/Character/CharacterVirtual.h:54</see>
|
|
/// <br/>
|
|
/// <c>float mHitReductionCosMaxAngle = 0.999f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetHitReductionCosMaxAngle() =>
|
|
Jolt.PInvoke.CharacterVirtualSettings_GetHitReductionCosMaxAngle(this);
|
|
|
|
/// <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#L54">Jolt/Physics/Character/CharacterVirtual.h:54</see>
|
|
/// <br/>
|
|
/// <c>float mHitReductionCosMaxAngle = 0.999f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetHitReductionCosMaxAngle(float value) =>
|
|
Jolt.PInvoke.CharacterVirtualSettings_SetHitReductionCosMaxAngle(this, value);
|
|
|
|
/// <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#L55">Jolt/Physics/Character/CharacterVirtual.h:55</see>
|
|
/// <br/>
|
|
/// <c>float mPenetrationRecoverySpeed = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetPenetrationRecoverySpeed() =>
|
|
Jolt.PInvoke.CharacterVirtualSettings_GetPenetrationRecoverySpeed(this);
|
|
|
|
/// <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#L55">Jolt/Physics/Character/CharacterVirtual.h:55</see>
|
|
/// <br/>
|
|
/// <c>float mPenetrationRecoverySpeed = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetPenetrationRecoverySpeed(float value) =>
|
|
Jolt.PInvoke.CharacterVirtualSettings_SetPenetrationRecoverySpeed(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// This character can optionally have an inner rigid body. This rigid body can be used to give the
|
|
/// character presence in the world. When set it means that: - Regular collision checks (e.g.
|
|
/// NarrowPhaseQuery::CastRay) will collide with the rigid body (they cannot collide with CharacterVirtual
|
|
/// since it is not added to the broad phase) - Regular contact callbacks will be called through the
|
|
/// ContactListener (next to the ones that will be passed to the CharacterContactListener) - Fast moving
|
|
/// objects of motion quality LinearCast will not be able to pass through the CharacterVirtual in 1 time
|
|
/// step
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L61">Jolt/Physics/Character/CharacterVirtual.h:61</see>
|
|
/// <br/>
|
|
/// <c>RefConst<Shape> mInnerBodyShape</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle carries its own reference; Dispose it once when you're done.
|
|
/// </para>
|
|
/// </remarks>
|
|
public Shape GetInnerBodyShape() => Jolt.PInvoke.CharacterVirtualSettings_GetInnerBodyShape(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// This character can optionally have an inner rigid body. This rigid body can be used to give the
|
|
/// character presence in the world. When set it means that: - Regular collision checks (e.g.
|
|
/// NarrowPhaseQuery::CastRay) will collide with the rigid body (they cannot collide with CharacterVirtual
|
|
/// since it is not added to the broad phase) - Regular contact callbacks will be called through the
|
|
/// ContactListener (next to the ones that will be passed to the CharacterContactListener) - Fast moving
|
|
/// objects of motion quality LinearCast will not be able to pass through the CharacterVirtual in 1 time
|
|
/// step
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L61">Jolt/Physics/Character/CharacterVirtual.h:61</see>
|
|
/// <br/>
|
|
/// <c>RefConst<Shape> mInnerBodyShape</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetInnerBodyShape(Shape value) =>
|
|
Jolt.PInvoke.CharacterVirtualSettings_SetInnerBodyShape(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// For a deterministic simulation, it is important to have a deterministic body ID. When set and when
|
|
/// mInnerBodyShape is specified, the inner body will be created with this specified ID instead of a
|
|
/// generated ID.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L65">Jolt/Physics/Character/CharacterVirtual.h:65</see>
|
|
/// <br/>
|
|
/// <c>BodyID mInnerBodyIDOverride</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetInnerBodyIDOverride() => Jolt.PInvoke.CharacterVirtualSettings_GetInnerBodyIDOverride(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// For a deterministic simulation, it is important to have a deterministic body ID. When set and when
|
|
/// mInnerBodyShape is specified, the inner body will be created with this specified ID instead of a
|
|
/// generated ID.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L65">Jolt/Physics/Character/CharacterVirtual.h:65</see>
|
|
/// <br/>
|
|
/// <c>BodyID mInnerBodyIDOverride</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetInnerBodyIDOverride(uint value) =>
|
|
Jolt.PInvoke.CharacterVirtualSettings_SetInnerBodyIDOverride(this, value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Layer that the inner rigid body will be added to
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L68">Jolt/Physics/Character/CharacterVirtual.h:68</see>
|
|
/// <br/>
|
|
/// <c>ObjectLayer mInnerBodyLayer = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public ushort GetInnerBodyLayer() => Jolt.PInvoke.CharacterVirtualSettings_GetInnerBodyLayer(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Layer that the inner rigid body will be added to
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L68">Jolt/Physics/Character/CharacterVirtual.h:68</see>
|
|
/// <br/>
|
|
/// <c>ObjectLayer mInnerBodyLayer = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetInnerBodyLayer(ushort value) =>
|
|
Jolt.PInvoke.CharacterVirtualSettings_SetInnerBodyLayer(this, value);
|
|
|
|
public void AddRef() => ((CharacterBaseSettings)this).AddRef();
|
|
|
|
public void Release() => ((CharacterBaseSettings)this).Release();
|
|
|
|
public uint GetRefCount() => ((CharacterBaseSettings)this).GetRefCount();
|
|
|
|
public static implicit operator CharacterBaseSettings(CharacterVirtualSettings value) =>
|
|
Unsafe.BitCast<CharacterVirtualSettings, CharacterBaseSettings>(value);
|
|
|
|
public void Dispose()
|
|
{
|
|
if (IsNull())
|
|
return;
|
|
Release();
|
|
}
|
|
|
|
/// <inheritdoc cref="CharacterBaseSettings.GetUp()"/>
|
|
public float3 GetUp() => ((CharacterBaseSettings)this).GetUp();
|
|
|
|
/// <inheritdoc cref="CharacterBaseSettings.SetUp(float3)"/>
|
|
public void SetUp(float3 value) => ((CharacterBaseSettings)this).SetUp(value);
|
|
|
|
/// <inheritdoc cref="CharacterBaseSettings.GetSupportingVolume()"/>
|
|
public Plane GetSupportingVolume() => ((CharacterBaseSettings)this).GetSupportingVolume();
|
|
|
|
/// <inheritdoc cref="CharacterBaseSettings.SetSupportingVolume(Plane)"/>
|
|
public void SetSupportingVolume(Plane value) => ((CharacterBaseSettings)this).SetSupportingVolume(value);
|
|
|
|
/// <inheritdoc cref="CharacterBaseSettings.GetMaxSlopeAngle()"/>
|
|
public float GetMaxSlopeAngle() => ((CharacterBaseSettings)this).GetMaxSlopeAngle();
|
|
|
|
/// <inheritdoc cref="CharacterBaseSettings.SetMaxSlopeAngle(float)"/>
|
|
public void SetMaxSlopeAngle(float value) => ((CharacterBaseSettings)this).SetMaxSlopeAngle(value);
|
|
|
|
/// <inheritdoc cref="CharacterBaseSettings.GetEnhancedInternalEdgeRemoval()"/>
|
|
public bool GetEnhancedInternalEdgeRemoval() => ((CharacterBaseSettings)this).GetEnhancedInternalEdgeRemoval();
|
|
|
|
/// <inheritdoc cref="CharacterBaseSettings.SetEnhancedInternalEdgeRemoval(bool)"/>
|
|
public void SetEnhancedInternalEdgeRemoval(bool value) =>
|
|
((CharacterBaseSettings)this).SetEnhancedInternalEdgeRemoval(value);
|
|
|
|
/// <inheritdoc cref="CharacterBaseSettings.GetShape()"/>
|
|
public Shape GetShape() => ((CharacterBaseSettings)this).GetShape();
|
|
|
|
/// <inheritdoc cref="CharacterBaseSettings.SetShape(Shape)"/>
|
|
public void SetShape(Shape value) => ((CharacterBaseSettings)this).SetShape(value);
|
|
}
|
|
}
|