mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 05:28:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
199
Brutal.Jolt/Generated/Classes/CharacterBaseSettings.gen.cs
Normal file
199
Brutal.Jolt/Generated/Classes/CharacterBaseSettings.gen.cs
Normal file
|
|
@ -0,0 +1,199 @@
|
|||
// <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>
|
||||
/// Base class for configuration of a character
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterBase.h#L20">Jolt/Physics/Character/CharacterBase.h:20</see>
|
||||
/// <br/>
|
||||
/// <c>class CharacterBaseSettings : public RefTarget<CharacterBaseSettings></c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct CharacterBaseSettings : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Constructor
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterBase.h#L26">Jolt/Physics/Character/CharacterBase.h:26</see>
|
||||
/// <br/>
|
||||
/// <c>CharacterBaseSettings() = default</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static CharacterBaseSettings Create() => Jolt.PInvoke.CharacterBaseSettings_Create();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Vector indicating the up direction of the character
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterBase.h#L34">Jolt/Physics/Character/CharacterBase.h:34</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mUp = Vec3::sAxisY()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetUp() => Jolt.PInvoke.CharacterBaseSettings_GetUp(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Vector indicating the up direction of the character
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterBase.h#L34">Jolt/Physics/Character/CharacterBase.h:34</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mUp = Vec3::sAxisY()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetUp(float3 value) => Jolt.PInvoke.CharacterBaseSettings_SetUp(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Plane, defined in local space relative to the character. Every contact behind this plane can support the
|
||||
/// character, every contact in front of this plane is treated as only colliding with the player. Default:
|
||||
/// Accept any contact.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterBase.h#L39">Jolt/Physics/Character/CharacterBase.h:39</see>
|
||||
/// <br/>
|
||||
/// <c>Plane mSupportingVolume { Vec3::sAxisY(), -1.0e10f }</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public Plane GetSupportingVolume() => Jolt.PInvoke.CharacterBaseSettings_GetSupportingVolume(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Plane, defined in local space relative to the character. Every contact behind this plane can support the
|
||||
/// character, every contact in front of this plane is treated as only colliding with the player. Default:
|
||||
/// Accept any contact.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterBase.h#L39">Jolt/Physics/Character/CharacterBase.h:39</see>
|
||||
/// <br/>
|
||||
/// <c>Plane mSupportingVolume { Vec3::sAxisY(), -1.0e10f }</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetSupportingVolume(Plane value) =>
|
||||
Jolt.PInvoke.CharacterBaseSettings_SetSupportingVolume(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Maximum angle of slope that character can still walk on (radians).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterBase.h#L42">Jolt/Physics/Character/CharacterBase.h:42</see>
|
||||
/// <br/>
|
||||
/// <c>float mMaxSlopeAngle = DegreesToRadians(50.0f)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetMaxSlopeAngle() => Jolt.PInvoke.CharacterBaseSettings_GetMaxSlopeAngle(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Maximum angle of slope that character can still walk on (radians).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterBase.h#L42">Jolt/Physics/Character/CharacterBase.h:42</see>
|
||||
/// <br/>
|
||||
/// <c>float mMaxSlopeAngle = DegreesToRadians(50.0f)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetMaxSlopeAngle(float value) => Jolt.PInvoke.CharacterBaseSettings_SetMaxSlopeAngle(this, value);
|
||||
|
||||
/// <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/CharacterBase.h#L45">Jolt/Physics/Character/CharacterBase.h:45</see>
|
||||
/// <br/>
|
||||
/// <c>bool mEnhancedInternalEdgeRemoval = false</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public bool GetEnhancedInternalEdgeRemoval() =>
|
||||
Jolt.PInvoke.CharacterBaseSettings_GetEnhancedInternalEdgeRemoval(this);
|
||||
|
||||
/// <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/CharacterBase.h#L45">Jolt/Physics/Character/CharacterBase.h:45</see>
|
||||
/// <br/>
|
||||
/// <c>bool mEnhancedInternalEdgeRemoval = false</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetEnhancedInternalEdgeRemoval(bool value) =>
|
||||
Jolt.PInvoke.CharacterBaseSettings_SetEnhancedInternalEdgeRemoval(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Initial shape that represents the character's volume. Usually this is a capsule, make sure the shape is
|
||||
/// made so that the bottom of the shape is at (0, 0, 0).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterBase.h#L49">Jolt/Physics/Character/CharacterBase.h:49</see>
|
||||
/// <br/>
|
||||
/// <c>RefConst<Shape> mShape</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The returned handle carries its own reference; Dispose it once when you're done.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public Shape GetShape() => Jolt.PInvoke.CharacterBaseSettings_GetShape(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Initial shape that represents the character's volume. Usually this is a capsule, make sure the shape is
|
||||
/// made so that the bottom of the shape is at (0, 0, 0).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterBase.h#L49">Jolt/Physics/Character/CharacterBase.h:49</see>
|
||||
/// <br/>
|
||||
/// <c>RefConst<Shape> mShape</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetShape(Shape value) => Jolt.PInvoke.CharacterBaseSettings_SetShape(this, value);
|
||||
|
||||
public void AddRef() => Jolt.PInvoke.CharacterBaseSettings_AddRef(this);
|
||||
|
||||
public void Release() => Jolt.PInvoke.CharacterBaseSettings_Release(this);
|
||||
|
||||
public uint GetRefCount() => Jolt.PInvoke.CharacterBaseSettings_GetRefCount(this);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull())
|
||||
return;
|
||||
Release();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue