mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
180 lines
8.7 KiB
C#
180 lines
8.7 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
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraintPathHermite.h#L12">Jolt/Physics/Constraints/PathConstraintPathHermite.h:12</see>
|
|
/// <br/>
|
|
/// <c>class PathConstraintPathHermite final : public PathConstraintPath</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// A path that follows a Hermite spline
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct PathConstraintPathHermite : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraintPathHermite.h#L32">Jolt/Physics/Constraints/PathConstraintPathHermite.h:32</see>
|
|
/// <br/>
|
|
/// <c>struct Point</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[StructLayout(LayoutKind.Explicit, Size = 48)]
|
|
public struct Point
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Position on the path
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraintPathHermite.h#L36">Jolt/Physics/Constraints/PathConstraintPathHermite.h:36</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mPosition</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(0)]
|
|
public float3 mPosition;
|
|
/// <summary>
|
|
/// <para>
|
|
/// Tangent of the path, does not need to be normalized (in the direction of the path)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraintPathHermite.h#L37">Jolt/Physics/Constraints/PathConstraintPathHermite.h:37</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mTangent</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(16)]
|
|
public float3 mTangent;
|
|
/// <summary>
|
|
/// <para>
|
|
/// Normal of the path (together with the tangent along the curve this forms a basis for the constraint)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraintPathHermite.h#L38">Jolt/Physics/Constraints/PathConstraintPathHermite.h:38</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mNormal</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[FieldOffset(32)]
|
|
public float3 mNormal;
|
|
}
|
|
public static PathConstraintPathHermite Create() => Jolt.PInvoke.PathConstraintPathHermite_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraintPathHermite.h#L14">Jolt/Physics/Constraints/PathConstraintPathHermite.h:14</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
public RTTI GetRTTI() => Jolt.PInvoke.PathConstraintPathHermite_GetRTTI(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraintPathHermite.h#L14">Jolt/Physics/Constraints/PathConstraintPathHermite.h:14</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
public unsafe Ptr CastTo(RTTI rTTI) => Jolt.PInvoke.PathConstraintPathHermite_CastTo(this, rTTI);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraintPathHermite.h#L18">Jolt/Physics/Constraints/PathConstraintPathHermite.h:18</see>
|
|
/// <br/>
|
|
/// <c>virtual float GetPathMaxFraction() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See PathConstraintPath::GetPathMaxFraction
|
|
/// </para>
|
|
/// </remarks>
|
|
public float GetPathMaxFraction() => Jolt.PInvoke.PathConstraintPathHermite_GetPathMaxFraction(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraintPathHermite.h#L21">Jolt/Physics/Constraints/PathConstraintPathHermite.h:21</see>
|
|
/// <br/>
|
|
/// <c>virtual float GetClosestPoint(Vec3Arg inPosition, float inFractionHint) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See PathConstraintPath::GetClosestPoint
|
|
/// </para>
|
|
/// </remarks>
|
|
public float GetClosestPoint(float3 position, float fractionHint) => Jolt.PInvoke.PathConstraintPathHermite_GetClosestPoint(this, position, fractionHint);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraintPathHermite.h#L24">Jolt/Physics/Constraints/PathConstraintPathHermite.h:24</see>
|
|
/// <br/>
|
|
/// <c>virtual void GetPointOnPath(float inFraction, Vec3 &outPathPosition, Vec3 &outPathTangent, Vec3 &outPathNormal, Vec3 &outPathBinormal) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See PathConstraintPath::GetPointOnPath
|
|
/// </para>
|
|
/// </remarks>
|
|
public void GetPointOnPath(float fraction, out float3 pathPosition, out float3 pathTangent, out float3 pathNormal, out float3 pathBinormal) => Jolt.PInvoke.PathConstraintPathHermite_GetPointOnPath(this, fraction, out pathPosition, out pathTangent, out pathNormal, out pathBinormal);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraintPathHermite.h#L27">Jolt/Physics/Constraints/PathConstraintPathHermite.h:27</see>
|
|
/// <br/>
|
|
/// <c>void AddPoint(Vec3Arg inPosition, Vec3Arg inTangent, Vec3Arg inNormal)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Adds a point to the path
|
|
/// </para>
|
|
/// </remarks>
|
|
public void AddPoint(float3 position, float3 tangent, float3 normal) => Jolt.PInvoke.PathConstraintPathHermite_AddPoint(this, position, tangent, normal);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Constraints/PathConstraintPathHermite.h#L30">Jolt/Physics/Constraints/PathConstraintPathHermite.h:30</see>
|
|
/// <br/>
|
|
/// <c>virtual void SaveBinaryState(StreamOut &inStream) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See: PathConstraintPath::SaveBinaryState
|
|
/// </para>
|
|
/// </remarks>
|
|
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.PathConstraintPathHermite_SaveBinaryState(this, stream);
|
|
public void AddRef() => Jolt.PInvoke.PathConstraintPathHermite_AddRef(this);
|
|
public void Release() => Jolt.PInvoke.PathConstraintPathHermite_Release(this);
|
|
public uint GetRefCount() => Jolt.PInvoke.PathConstraintPathHermite_GetRefCount(this);
|
|
public static implicit operator PathConstraintPath(PathConstraintPathHermite value) => Jolt.PInvoke.PathConstraintPathHermite_AsPathConstraintPath(value);
|
|
public void Dispose()
|
|
{
|
|
if (IsNull()) return;
|
|
Release();
|
|
}
|
|
}
|
|
}
|