mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 22:18:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,111 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/SoftBody/SoftBodyManifold.h#L12">Jolt/Physics/SoftBody/SoftBodyManifold.h:12</see>
|
||||
/// <br/>
|
||||
/// <c>class SoftBodyManifold</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// An interface to query which vertices of a soft body are colliding with other bodies
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct SoftBodyManifold
|
||||
{
|
||||
/// <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>
|
||||
public bool HasContact(SoftBodyVertex vertex) => Jolt.PInvoke.SoftBodyManifold_HasContact(this, 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>
|
||||
public float3 GetLocalContactPoint(SoftBodyVertex vertex) => Jolt.PInvoke.SoftBodyManifold_GetLocalContactPoint(this, 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>
|
||||
public float3 GetContactNormal(SoftBodyVertex vertex) => Jolt.PInvoke.SoftBodyManifold_GetContactNormal(this, 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>
|
||||
public uint GetContactBodyID(SoftBodyVertex vertex) => Jolt.PInvoke.SoftBodyManifold_GetContactBodyID(this, 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>
|
||||
public uint GetNumSensorContacts() => Jolt.PInvoke.SoftBodyManifold_GetNumSensorContacts(this);
|
||||
/// <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>
|
||||
public uint GetSensorContactBodyID(uint index) => Jolt.PInvoke.SoftBodyManifold_GetSensorContactBodyID(this, index);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue