brutal/brutal.jolt/Brutal.Jolt/Generated/Classes/CharacterContactSettings.gen.cs
2026-10-15 14:12:02 +13:00

88 lines
4.1 KiB
C#

// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L71">Jolt/Physics/Character/CharacterVirtual.h:71</see>
/// <br/>
/// <c>class CharacterContactSettings</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// This class contains settings that allow you to override the behavior of a character's collision response
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct CharacterContactSettings : IDisposable
{
public static CharacterContactSettings Create() => Jolt.PInvoke.CharacterContactSettings_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L75">Jolt/Physics/Character/CharacterVirtual.h:75</see>
/// <br/>
/// <c>bool mCanPushCharacter = true</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// True when the object can push the virtual character.
/// </para>
/// </remarks>
public bool GetCanPushCharacter() => Jolt.PInvoke.CharacterContactSettings_GetCanPushCharacter(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L75">Jolt/Physics/Character/CharacterVirtual.h:75</see>
/// <br/>
/// <c>bool mCanPushCharacter = true</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// True when the object can push the virtual character.
/// </para>
/// </remarks>
public void SetCanPushCharacter(bool value) => Jolt.PInvoke.CharacterContactSettings_SetCanPushCharacter(this, value);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L80">Jolt/Physics/Character/CharacterVirtual.h:80</see>
/// <br/>
/// <c>bool mCanReceiveImpulses = true</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// True when the virtual character can apply impulses (push) the body.
/// Note that this only works against rigid bodies. Other CharacterVirtual objects can only be moved in their own update,
/// so you must ensure that in their OnCharacterContactAdded mCanPushCharacter is true.
/// </code>
/// </remarks>
public bool GetCanReceiveImpulses() => Jolt.PInvoke.CharacterContactSettings_GetCanReceiveImpulses(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Character/CharacterVirtual.h#L80">Jolt/Physics/Character/CharacterVirtual.h:80</see>
/// <br/>
/// <c>bool mCanReceiveImpulses = true</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// True when the virtual character can apply impulses (push) the body.
/// Note that this only works against rigid bodies. Other CharacterVirtual objects can only be moved in their own update,
/// so you must ensure that in their OnCharacterContactAdded mCanPushCharacter is true.
/// </code>
/// </remarks>
public void SetCanReceiveImpulses(bool value) => Jolt.PInvoke.CharacterContactSettings_SetCanReceiveImpulses(this, value);
public void Dispose() => Jolt.PInvoke.CharacterContactSettings_Destroy(this);
}
}