// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// C++: /// Jolt/Physics/Collision/ContactListener.h:19 ///
/// class ContactManifold ///
///
/// /// /// Manifold class, describes the contact surface between two bodies /// /// [InteropHandle] public readonly partial struct ContactManifold : IDisposable { public static ContactManifold Create() => Jolt.PInvoke.ContactManifold_Create(); /// /// /// C++: /// Jolt/Physics/Collision/ContactListener.h:26 ///
/// inline RVec3 GetWorldSpaceContactPointOn1(uint inIndex) const ///
///
/// /// /// Access to the world space contact positions /// /// public float3 GetWorldSpaceContactPointOn1(uint index) => Jolt.PInvoke.ContactManifold_GetWorldSpaceContactPointOn1(this, index); /// /// /// C++: /// Jolt/Physics/Collision/ContactListener.h:27 ///
/// inline RVec3 GetWorldSpaceContactPointOn2(uint inIndex) const ///
///
public float3 GetWorldSpaceContactPointOn2(uint index) => Jolt.PInvoke.ContactManifold_GetWorldSpaceContactPointOn2(this, index); /// /// /// Offset to which all the contact points are relative /// /// /// C++: /// Jolt/Physics/Collision/ContactListener.h:29 ///
/// RVec3 mBaseOffset ///
///
public float3 GetBaseOffset() => Jolt.PInvoke.ContactManifold_GetBaseOffset(this); /// /// /// Offset to which all the contact points are relative /// /// /// C++: /// Jolt/Physics/Collision/ContactListener.h:29 ///
/// RVec3 mBaseOffset ///
///
public void SetBaseOffset(float3 value) => Jolt.PInvoke.ContactManifold_SetBaseOffset(this, value); /// /// /// Normal for this manifold, direction along which to move body 2 out of collision along the shortest path /// /// /// C++: /// Jolt/Physics/Collision/ContactListener.h:30 ///
/// Vec3 mWorldSpaceNormal ///
///
public float3 GetWorldSpaceNormal() => Jolt.PInvoke.ContactManifold_GetWorldSpaceNormal(this); /// /// /// Normal for this manifold, direction along which to move body 2 out of collision along the shortest path /// /// /// C++: /// Jolt/Physics/Collision/ContactListener.h:30 ///
/// Vec3 mWorldSpaceNormal ///
///
public void SetWorldSpaceNormal(float3 value) => Jolt.PInvoke.ContactManifold_SetWorldSpaceNormal(this, value); /// /// /// Penetration depth (move shape 2 by this distance to resolve the collision). If this value is negative, /// this is a speculative contact point and may not actually result in a velocity change as during solving /// the bodies may not actually collide. /// /// /// C++: /// Jolt/Physics/Collision/ContactListener.h:31 ///
/// float mPenetrationDepth ///
///
public float GetPenetrationDepth() => Jolt.PInvoke.ContactManifold_GetPenetrationDepth(this); /// /// /// Penetration depth (move shape 2 by this distance to resolve the collision). If this value is negative, /// this is a speculative contact point and may not actually result in a velocity change as during solving /// the bodies may not actually collide. /// /// /// C++: /// Jolt/Physics/Collision/ContactListener.h:31 ///
/// float mPenetrationDepth ///
///
public void SetPenetrationDepth(float value) => Jolt.PInvoke.ContactManifold_SetPenetrationDepth(this, value); /// /// /// Sub shapes that formed this manifold (note that when multiple manifolds are combined because they're /// coplanar, we lose some information here because we only keep track of one sub shape pair that we /// encounter, see description at Body::SetUseManifoldReduction) /// /// /// C++: /// Jolt/Physics/Collision/ContactListener.h:32 ///
/// SubShapeID mSubShapeID1 ///
///
public uint GetSubShapeID1() => Jolt.PInvoke.ContactManifold_GetSubShapeID1(this); /// /// /// Sub shapes that formed this manifold (note that when multiple manifolds are combined because they're /// coplanar, we lose some information here because we only keep track of one sub shape pair that we /// encounter, see description at Body::SetUseManifoldReduction) /// /// /// C++: /// Jolt/Physics/Collision/ContactListener.h:32 ///
/// SubShapeID mSubShapeID1 ///
///
public void SetSubShapeID1(uint value) => Jolt.PInvoke.ContactManifold_SetSubShapeID1(this, value); /// /// /// C++: /// Jolt/Physics/Collision/ContactListener.h:33 ///
/// SubShapeID mSubShapeID2 ///
///
public uint GetSubShapeID2() => Jolt.PInvoke.ContactManifold_GetSubShapeID2(this); /// /// /// C++: /// Jolt/Physics/Collision/ContactListener.h:33 ///
/// SubShapeID mSubShapeID2 ///
///
public void SetSubShapeID2(uint value) => Jolt.PInvoke.ContactManifold_SetSubShapeID2(this, value); public void Dispose() => Jolt.PInvoke.ContactManifold_Destroy(this); } }