brutal/Brutal.Jolt/Generated/Structs/CollisionEstimationResult.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

179 lines
7.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>
/// A structure that contains the estimated contact and friction impulses and the resulting body velocities
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/EstimateCollisionResponse.h#L12">Jolt/Physics/Collision/EstimateCollisionResponse.h:12</see>
/// <br/>
/// <c>struct CollisionEstimationResult</c>
/// </para>
/// </summary>
[StructLayout(LayoutKind.Explicit, Size = 384)]
public partial struct CollisionEstimationResult
{
/// <summary>
/// <para>
/// The estimated linear velocity of body 1 after collision
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/EstimateCollisionResponse.h#L14">Jolt/Physics/Collision/EstimateCollisionResponse.h:14</see>
/// <br/>
/// <c>Vec3 mLinearVelocity1</c>
/// </para>
/// </summary>
[FieldOffset(0)]
public float3 LinearVelocity1;
/// <summary>
/// <para>
/// The estimated angular velocity of body 1 after collision
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/EstimateCollisionResponse.h#L15">Jolt/Physics/Collision/EstimateCollisionResponse.h:15</see>
/// <br/>
/// <c>Vec3 mAngularVelocity1</c>
/// </para>
/// </summary>
[FieldOffset(16)]
public float3 AngularVelocity1;
/// <summary>
/// <para>
/// The estimated linear velocity of body 2 after collision
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/EstimateCollisionResponse.h#L16">Jolt/Physics/Collision/EstimateCollisionResponse.h:16</see>
/// <br/>
/// <c>Vec3 mLinearVelocity2</c>
/// </para>
/// </summary>
[FieldOffset(32)]
public float3 LinearVelocity2;
/// <summary>
/// <para>
/// The estimated angular velocity of body 2 after collision
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/EstimateCollisionResponse.h#L17">Jolt/Physics/Collision/EstimateCollisionResponse.h:17</see>
/// <br/>
/// <c>Vec3 mAngularVelocity2</c>
/// </para>
/// </summary>
[FieldOffset(48)]
public float3 AngularVelocity2;
/// <summary>
/// <para>
/// Point at which friction was applied (relative to mBaseOffset of the manifold)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/EstimateCollisionResponse.h#L19">Jolt/Physics/Collision/EstimateCollisionResponse.h:19</see>
/// <br/>
/// <c>Vec3 mFrictionPoint</c>
/// </para>
/// </summary>
[FieldOffset(64)]
public float3 FrictionPoint;
/// <summary>
/// <para>
/// Normalized tangent of contact normal
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/EstimateCollisionResponse.h#L20">Jolt/Physics/Collision/EstimateCollisionResponse.h:20</see>
/// <br/>
/// <c>Vec3 mTangent1</c>
/// </para>
/// </summary>
[FieldOffset(80)]
public float3 Tangent1;
/// <summary>
/// <para>
/// Second normalized tangent of contact normal (forms a basis with mTangent1 and mWorldSpaceNormal)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/EstimateCollisionResponse.h#L21">Jolt/Physics/Collision/EstimateCollisionResponse.h:21</see>
/// <br/>
/// <c>Vec3 mTangent2</c>
/// </para>
/// </summary>
[FieldOffset(96)]
public float3 Tangent2;
/// <summary>
/// <para>
/// Estimated friction impulses in the direction of tangent 1 (kg m / s)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/EstimateCollisionResponse.h#L23">Jolt/Physics/Collision/EstimateCollisionResponse.h:23</see>
/// <br/>
/// <c>float mFrictionImpulse1 = 0</c>
/// </para>
/// </summary>
[FieldOffset(112)]
public float FrictionImpulse1;
/// <summary>
/// <para>
/// Estimated friction impulses in the direction of tangent 2 (kg m / s)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/EstimateCollisionResponse.h#L24">Jolt/Physics/Collision/EstimateCollisionResponse.h:24</see>
/// <br/>
/// <c>float mFrictionImpulse2 = 0</c>
/// </para>
/// </summary>
[FieldOffset(116)]
public float FrictionImpulse2;
/// <summary>
/// <para>
/// Estimated angular friction impulse around the world space normal (kg m^2 / s)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/EstimateCollisionResponse.h#L25">Jolt/Physics/Collision/EstimateCollisionResponse.h:25</see>
/// <br/>
/// <c>float mAngularFrictionImpulse = 0</c>
/// </para>
/// </summary>
[FieldOffset(120)]
public float AngularFrictionImpulse;
/// <summary>
/// <para>
/// Estimated contact impulses (kg m / s)
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/EstimateCollisionResponse.h#L27">Jolt/Physics/Collision/EstimateCollisionResponse.h:27</see>
/// <br/>
/// <c>StaticArray&lt;float, ContactPoints::Capacity&gt; mContactImpulse</c>
/// </para>
/// </summary>
[FieldOffset(124)]
public StaticArrayFloat_64 ContactImpulse;
}
}