mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
48 lines
2.1 KiB
C#
48 lines
2.1 KiB
C#
// <auto-generated/>
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Collision detection helper that collides a convex object vs one or more triangles
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideConvexVsTriangles.h#L17">Jolt/Physics/Collision/CollideConvexVsTriangles.h:17</see>
|
|
/// <br/>
|
|
/// <c>class CollideConvexVsTriangles</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct CollideConvexVsTriangles
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Collide convex object with a single triangle
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/CollideConvexVsTriangles.h#L36">Jolt/Physics/Collision/CollideConvexVsTriangles.h:36</see>
|
|
/// <br/>
|
|
/// <c>void Collide(Vec3Arg inV0, Vec3Arg inV1, Vec3Arg inV2, uint8 inActiveEdges, const SubShapeID &inSubShapeID2)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Collide convex object with a single triangle
|
|
/// @param inV0 , inV1 , inV2: CCW triangle vertices
|
|
/// @param inActiveEdges bit 0 = edge v0..v1 is active, bit 1 = edge v1..v2 is active, bit 2 = edge v2..v0 is active
|
|
/// An active edge is an edge that is not connected to another triangle in such a way that it is impossible to collide with the edge
|
|
/// @param inSubShapeID2 The sub shape ID for the triangle
|
|
/// </code>
|
|
/// </remarks>
|
|
public void Collide(float3 v0, float3 v1, float3 v2, byte activeEdges, uint subShapeID2) =>
|
|
Jolt.PInvoke.CollideConvexVsTriangles_Collide(this, v0, v1, v2, activeEdges, subShapeID2);
|
|
}
|
|
}
|