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