mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-27 21:48:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
271
Brutal.Jolt/Generated/Structs/CharacterContact.gen.cs
Normal file
271
Brutal.Jolt/Generated/Structs/CharacterContact.gen.cs
Normal file
|
|
@ -0,0 +1,271 @@
|
|||
// <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>
|
||||
/// Encapsulates a collision contact between a character and another rigid body / character
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L129">Jolt/Physics/Character/CharacterVirtual.h:129</see>
|
||||
/// <br/>
|
||||
/// <c>class CharacterContact : public CharacterContactKey</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 128)]
|
||||
public partial struct CharacterContact
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
public uint BodyB;
|
||||
|
||||
[FieldOffset(4)]
|
||||
public uint CharacterIDB;
|
||||
|
||||
[FieldOffset(8)]
|
||||
public uint SubShapeIDB;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Position where the character makes contact
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L136">Jolt/Physics/Character/CharacterVirtual.h:136</see>
|
||||
/// <br/>
|
||||
/// <c>RVec3 mPosition</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(16)]
|
||||
public float3 Position;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Velocity of the contact point
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L137">Jolt/Physics/Character/CharacterVirtual.h:137</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mLinearVelocity</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(32)]
|
||||
public float3 LinearVelocity;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Contact normal, pointing towards the character
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L138">Jolt/Physics/Character/CharacterVirtual.h:138</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mContactNormal</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(48)]
|
||||
public float3 ContactNormal;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Surface normal of the contact. Has been flipped if the contact is back facing (mIsBackFacingContact) and
|
||||
/// is equal to the contact normal if the contact normal is pointing up more.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L139">Jolt/Physics/Character/CharacterVirtual.h:139</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mSurfaceNormal</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(64)]
|
||||
public float3 SurfaceNormal;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Distance to the contact <= 0 means that it is an actual contact, > 0 means predictive
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L140">Jolt/Physics/Character/CharacterVirtual.h:140</see>
|
||||
/// <br/>
|
||||
/// <c>float mDistance</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(80)]
|
||||
public float Distance;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Fraction along the path where this contact takes place
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L141">Jolt/Physics/Character/CharacterVirtual.h:141</see>
|
||||
/// <br/>
|
||||
/// <c>float mFraction</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(84)]
|
||||
public float Fraction;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Motion type of B, used to determine the priority of the contact
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L142">Jolt/Physics/Character/CharacterVirtual.h:142</see>
|
||||
/// <br/>
|
||||
/// <c>EMotionType mMotionTypeB</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(88)]
|
||||
public MotionType MotionTypeB;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// If B is a sensor
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L143">Jolt/Physics/Character/CharacterVirtual.h:143</see>
|
||||
/// <br/>
|
||||
/// <c>bool mIsSensorB</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(89)]
|
||||
public Brutal.Bool8 IsSensorB;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Character we're colliding with (if not nullptr). Note that this may be a dangling pointer when accessed
|
||||
/// through GetActiveContacts(), use mCharacterIDB instead.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L144">Jolt/Physics/Character/CharacterVirtual.h:144</see>
|
||||
/// <br/>
|
||||
/// <c>const CharacterVirtual * mCharacterB = nullptr</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(96)]
|
||||
public CharacterVirtual CharacterB;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// User data of B
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L145">Jolt/Physics/Character/CharacterVirtual.h:145</see>
|
||||
/// <br/>
|
||||
/// <c>uint64 mUserData</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(104)]
|
||||
public ulong UserData;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Material of B
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L146">Jolt/Physics/Character/CharacterVirtual.h:146</see>
|
||||
/// <br/>
|
||||
/// <c>const PhysicsMaterial * mMaterial</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(112)]
|
||||
public PhysicsMaterial Material;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// If the character actually collided with the contact (can be false if a predictive contact never becomes
|
||||
/// a real one)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L147">Jolt/Physics/Character/CharacterVirtual.h:147</see>
|
||||
/// <br/>
|
||||
/// <c>bool mHadCollision = false</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(120)]
|
||||
public Brutal.Bool8 HadCollision;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// If the contact validate callback chose to discard this contact or when the body is a sensor
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L148">Jolt/Physics/Character/CharacterVirtual.h:148</see>
|
||||
/// <br/>
|
||||
/// <c>bool mWasDiscarded = false</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(121)]
|
||||
public Brutal.Bool8 WasDiscarded;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// When true, the velocity of the contact point can push the character
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L149">Jolt/Physics/Character/CharacterVirtual.h:149</see>
|
||||
/// <br/>
|
||||
/// <c>bool mCanPushCharacter = true</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(122)]
|
||||
public Brutal.Bool8 CanPushCharacter;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// If this contact came from a back facing triangle / collision shape
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L150">Jolt/Physics/Character/CharacterVirtual.h:150</see>
|
||||
/// <br/>
|
||||
/// <c>bool mIsBackFacingContact = false</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[FieldOffset(123)]
|
||||
public Brutal.Bool8 IsBackFacingContact;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Saving / restoring state for replay
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L133">Jolt/Physics/Character/CharacterVirtual.h:133</see>
|
||||
/// <br/>
|
||||
/// <c>void SaveState(StateRecorder &inStream) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public readonly void SaveState(StateRecorder stream) =>
|
||||
Jolt.PInvoke.CharacterContact_SaveState(ref Unsafe.AsRef(in this), stream);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Character/CharacterVirtual.h#L134">Jolt/Physics/Character/CharacterVirtual.h:134</see>
|
||||
/// <br/>
|
||||
/// <c>void RestoreState(StateRecorder &inStream)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void RestoreState(StateRecorder stream) => Jolt.PInvoke.CharacterContact_RestoreState(ref this, stream);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue