brutal/brutal.jolt/Brutal.Jolt/Generated/Classes/RotatedTranslatedShape.gen.cs
2026-10-15 14:12:02 +13:00

298 lines
16 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/Collision/Shape/RotatedTranslatedShape.h#L38">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:38</see>
/// <br/>
/// <c>class RotatedTranslatedShape final : public DecoratedShape</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// A rotated translated shape will rotate and translate a child shape.
/// Shifts the child object so that it is centered around the center of mass.
/// </code>
/// </remarks>
[InteropHandle]
public readonly partial struct RotatedTranslatedShape : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L44">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:44</see>
/// <br/>
/// <c>RotatedTranslatedShape()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
public static RotatedTranslatedShape Create() => Jolt.PInvoke.RotatedTranslatedShape_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L46">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:46</see>
/// <br/>
/// <c>RotatedTranslatedShape(Vec3Arg inPosition, QuatArg inRotation, const Shape *inShape)</c>
/// </para>
/// </summary>
public static RotatedTranslatedShape Create(float3 position, floatQuat rotation, Shape shape) => Jolt.PInvoke.RotatedTranslatedShape_Create_2(position, rotation, shape);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L49">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:49</see>
/// <br/>
/// <c>Quat GetRotation() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Access the rotation that is applied to the inner shape
/// </para>
/// </remarks>
public floatQuat GetRotation() => Jolt.PInvoke.RotatedTranslatedShape_GetRotation(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L52">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:52</see>
/// <br/>
/// <c>Vec3 GetPosition() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Access the translation that has been applied to the inner shape
/// </para>
/// </remarks>
public float3 GetPosition() => Jolt.PInvoke.RotatedTranslatedShape_GetPosition(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L55">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:55</see>
/// <br/>
/// <c>virtual Vec3 GetCenterOfMass() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetCenterOfMass
/// </para>
/// </remarks>
public float3 GetCenterOfMass() => Jolt.PInvoke.RotatedTranslatedShape_GetCenterOfMass(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L65">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:65</see>
/// <br/>
/// <c>virtual float GetInnerRadius() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetInnerRadius
/// </para>
/// </remarks>
public float GetInnerRadius() => Jolt.PInvoke.RotatedTranslatedShape_GetInnerRadius(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L74">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:74</see>
/// <br/>
/// <c>virtual Vec3 GetSurfaceNormal(const SubShapeID &amp;inSubShapeID, Vec3Arg inLocalSurfacePosition) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetSurfaceNormal
/// </para>
/// </remarks>
public float3 GetSurfaceNormal(uint subShapeID, float3 localSurfacePosition) => Jolt.PInvoke.RotatedTranslatedShape_GetSurfaceNormal(this, subShapeID, localSurfacePosition);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L80">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:80</see>
/// <br/>
/// <c>virtual void GetSubmergedVolume(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const Plane &amp;inSurface, float &amp;outTotalVolume, float &amp;outSubmergedVolume, Vec3 &amp;outCenterOfBuoyancy JPH_IF_DEBUG_RENDERER(, RVec3Arg inBaseOffset)) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetSubmergedVolume
/// </para>
/// </remarks>
public void GetSubmergedVolume(float4x4 centerOfMassTransform, float3 scale, Plane surface, out float totalVolume, out float submergedVolume, out float3 centerOfBuoyancy, float3 baseOffset) => Jolt.PInvoke.RotatedTranslatedShape_GetSubmergedVolume(this, centerOfMassTransform, scale, surface, out totalVolume, out submergedVolume, out centerOfBuoyancy, baseOffset);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L84">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:84</see>
/// <br/>
/// <c>virtual void Draw(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inUseMaterialColors, bool inDrawWireframe) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::Draw
/// </para>
/// </remarks>
public void Draw(DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, bool useMaterialColors, bool drawWireframe) => Jolt.PInvoke.RotatedTranslatedShape_Draw(this, renderer, centerOfMassTransform, scale, color, useMaterialColors, drawWireframe);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L87">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:87</see>
/// <br/>
/// <c>virtual void DrawGetSupportFunction(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inDrawSupportDirection) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::DrawGetSupportFunction
/// </para>
/// </remarks>
public void DrawGetSupportFunction(DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, bool drawSupportDirection) => Jolt.PInvoke.RotatedTranslatedShape_DrawGetSupportFunction(this, renderer, centerOfMassTransform, scale, color, drawSupportDirection);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L90">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:90</see>
/// <br/>
/// <c>virtual void DrawGetSupportingFace(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::DrawGetSupportingFace
/// </para>
/// </remarks>
public void DrawGetSupportingFace(DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale) => Jolt.PInvoke.RotatedTranslatedShape_DrawGetSupportingFace(this, renderer, centerOfMassTransform, scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L101">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:101</see>
/// <br/>
/// <c>virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &amp;inVertices, uint inNumVertices, int inCollidingShapeIndex) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See: Shape::CollideSoftBodyVertices
/// </para>
/// </remarks>
public void CollideSoftBodyVertices(float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex) => Jolt.PInvoke.RotatedTranslatedShape_CollideSoftBodyVertices(this, centerOfMassTransform, scale, vertices, numVertices, collidingShapeIndex);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L110">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:110</see>
/// <br/>
/// <c>virtual void GetTrianglesStart(GetTrianglesContext &amp;ioContext, const AABox &amp;inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetTrianglesStart
/// </para>
/// </remarks>
public void GetTrianglesStart(ref Shape.GetTrianglesContext context, AABox box, float3 positionCOM, floatQuat rotation, float3 scale) => Jolt.PInvoke.RotatedTranslatedShape_GetTrianglesStart(this, ref context, box, positionCOM, rotation, scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L116">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:116</see>
/// <br/>
/// <c>virtual void SaveBinaryState(StreamOut &amp;inStream) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape
/// </para>
/// </remarks>
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.RotatedTranslatedShape_SaveBinaryState(this, stream);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L122">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:122</see>
/// <br/>
/// <c>virtual float GetVolume() const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::GetVolume
/// </para>
/// </remarks>
public float GetVolume() => Jolt.PInvoke.RotatedTranslatedShape_GetVolume(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L125">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:125</see>
/// <br/>
/// <c>virtual bool IsValidScale(Vec3Arg inScale) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::IsValidScale
/// </para>
/// </remarks>
public bool IsValidScale(float3 scale) => Jolt.PInvoke.RotatedTranslatedShape_IsValidScale(this, scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L128">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:128</see>
/// <br/>
/// <c>virtual Vec3 MakeScaleValid(Vec3Arg inScale) const override</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// See Shape::MakeScaleValid
/// </para>
/// </remarks>
public float3 MakeScaleValid(float3 scale) => Jolt.PInvoke.RotatedTranslatedShape_MakeScaleValid(this, scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L131">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:131</see>
/// <br/>
/// <c>inline Vec3 TransformScale(Vec3Arg inScale) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Transform the scale to the local space of the child shape
/// </para>
/// </remarks>
public float3 TransformScale(float3 scale) => Jolt.PInvoke.RotatedTranslatedShape_TransformScale(this, scale);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h#L141">Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:141</see>
/// <br/>
/// <c>static void sRegister()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Register shape functions with the registry
/// </para>
/// </remarks>
public static void sRegister() => Jolt.PInvoke.RotatedTranslatedShape_sRegister();
public void AddRef() => Jolt.PInvoke.RotatedTranslatedShape_AddRef(this);
public void Release() => Jolt.PInvoke.RotatedTranslatedShape_Release(this);
public uint GetRefCount() => Jolt.PInvoke.RotatedTranslatedShape_GetRefCount(this);
public static implicit operator DecoratedShape(RotatedTranslatedShape value) => Jolt.PInvoke.RotatedTranslatedShape_AsDecoratedShape(value);
public static implicit operator Shape(RotatedTranslatedShape value) => Jolt.PInvoke.RotatedTranslatedShape_AsShape(value);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}