mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
55 lines
2.2 KiB
C#
55 lines
2.2 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>
|
|
/// This class contains settings that allow you to override the behavior of a character's collision response
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L72">Jolt/Physics/Character/CharacterVirtual.h:72</see>
|
|
/// <br/>
|
|
/// <c>class CharacterContactSettings</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[StructLayout(LayoutKind.Explicit, Size = 2)]
|
|
public partial struct CharacterContactSettings
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// True when the object can push the virtual character.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L76">Jolt/Physics/Character/CharacterVirtual.h:76</see>
|
|
/// <br/>
|
|
/// <c>bool mCanPushCharacter = true</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(0)]
|
|
public Brutal.Bool8 CanPushCharacter;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L81">Jolt/Physics/Character/CharacterVirtual.h:81</see>
|
|
/// <br/>
|
|
/// <c>bool mCanReceiveImpulses = true</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(1)]
|
|
public Brutal.Bool8 CanReceiveImpulses;
|
|
}
|
|
}
|