// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyManifold.h:12 ///
/// class SoftBodyManifold ///
///
/// /// /// An interface to query which vertices of a soft body are colliding with other bodies /// /// [InteropHandle] public readonly partial struct SoftBodyManifold { /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyManifold.h:19 ///
/// bool HasContact(const SoftBodyVertex &inVertex) const ///
///
/// /// /// Check if a vertex has collided with something in this update /// /// public bool HasContact(SoftBodyVertex vertex) => Jolt.PInvoke.SoftBodyManifold_HasContact(this, vertex); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyManifold.h:25 ///
/// Vec3 GetLocalContactPoint(const SoftBodyVertex &inVertex) const ///
///
/// /// /// Get the local space contact point (multiply by GetCenterOfMassTransform() of the soft body to get world /// space) /// /// public float3 GetLocalContactPoint(SoftBodyVertex vertex) => Jolt.PInvoke.SoftBodyManifold_GetLocalContactPoint(this, vertex); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyManifold.h:31 ///
/// Vec3 GetContactNormal(const SoftBodyVertex &inVertex) const ///
///
/// /// /// Get the contact normal for the vertex (assumes there is a contact). /// /// public float3 GetContactNormal(SoftBodyVertex vertex) => Jolt.PInvoke.SoftBodyManifold_GetContactNormal(this, vertex); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyManifold.h:37 ///
/// BodyID GetContactBodyID(const SoftBodyVertex &inVertex) const ///
///
/// /// /// Get the body with which the vertex has collided in this update /// /// public uint GetContactBodyID(SoftBodyVertex vertex) => Jolt.PInvoke.SoftBodyManifold_GetContactBodyID(this, vertex); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyManifold.h:43 ///
/// uint GetNumSensorContacts() const ///
///
/// /// /// Get the number of sensors that are in contact with the soft body /// /// public uint GetNumSensorContacts() => Jolt.PInvoke.SoftBodyManifold_GetNumSensorContacts(this); /// /// /// C++: /// Jolt/Physics/SoftBody/SoftBodyManifold.h:49 ///
/// BodyID GetSensorContactBodyID(uint inIndex) const ///
///
/// /// /// Get the i-th sensor that is in contact with the soft body /// /// public uint GetSensorContactBodyID(uint index) => Jolt.PInvoke.SoftBodyManifold_GetSensorContactBodyID(this, index); } }