mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
106 lines
5.3 KiB
C#
106 lines
5.3 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using Brutal.Interop;
|
|
using Brutal.Numerics;
|
|
namespace Brutal.JoltApi
|
|
{
|
|
public static partial class Jolt
|
|
{
|
|
public static unsafe partial class PInvoke
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyManifold.h#L19">Jolt/Physics/SoftBody/SoftBodyManifold.h:19</see>
|
|
/// <br/>
|
|
/// <c>bool HasContact(const SoftBodyVertex &inVertex) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if a vertex has collided with something in this update
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodyManifold_HasContact")]
|
|
public static partial Brutal.Bool8 SoftBodyManifold_HasContact(SoftBodyManifold self, SoftBodyVertex vertex);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyManifold.h#L25">Jolt/Physics/SoftBody/SoftBodyManifold.h:25</see>
|
|
/// <br/>
|
|
/// <c>Vec3 GetLocalContactPoint(const SoftBodyVertex &inVertex) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the local space contact point (multiply by GetCenterOfMassTransform() of the soft body to get
|
|
/// world space)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodyManifold_GetLocalContactPoint")]
|
|
public static partial float3 SoftBodyManifold_GetLocalContactPoint(SoftBodyManifold self, SoftBodyVertex vertex);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyManifold.h#L31">Jolt/Physics/SoftBody/SoftBodyManifold.h:31</see>
|
|
/// <br/>
|
|
/// <c>Vec3 GetContactNormal(const SoftBodyVertex &inVertex) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the contact normal for the vertex (assumes there is a contact).
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodyManifold_GetContactNormal")]
|
|
public static partial float3 SoftBodyManifold_GetContactNormal(SoftBodyManifold self, SoftBodyVertex vertex);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyManifold.h#L37">Jolt/Physics/SoftBody/SoftBodyManifold.h:37</see>
|
|
/// <br/>
|
|
/// <c>BodyID GetContactBodyID(const SoftBodyVertex &inVertex) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the body with which the vertex has collided in this update
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodyManifold_GetContactBodyID")]
|
|
public static partial uint SoftBodyManifold_GetContactBodyID(SoftBodyManifold self, SoftBodyVertex vertex);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyManifold.h#L43">Jolt/Physics/SoftBody/SoftBodyManifold.h:43</see>
|
|
/// <br/>
|
|
/// <c>uint GetNumSensorContacts() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the number of sensors that are in contact with the soft body
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodyManifold_GetNumSensorContacts")]
|
|
public static partial uint SoftBodyManifold_GetNumSensorContacts(SoftBodyManifold self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyManifold.h#L49">Jolt/Physics/SoftBody/SoftBodyManifold.h:49</see>
|
|
/// <br/>
|
|
/// <c>BodyID GetSensorContactBodyID(uint inIndex) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the i-th sensor that is in contact with the soft body
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "SoftBodyManifold_GetSensorContactBodyID")]
|
|
public static partial uint SoftBodyManifold_GetSensorContactBodyID(SoftBodyManifold self, uint index);
|
|
}
|
|
}
|
|
}
|