//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:38
///
/// class RotatedTranslatedShape final : public DecoratedShape
///
///
///
///
/// 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.
///
///
[InteropHandle]
public readonly partial struct RotatedTranslatedShape : IDisposable
{
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:44
///
/// RotatedTranslatedShape()
///
///
///
///
/// Constructor
///
///
public static RotatedTranslatedShape Create() => Jolt.PInvoke.RotatedTranslatedShape_Create();
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:46
///
/// RotatedTranslatedShape(Vec3Arg inPosition, QuatArg inRotation, const Shape *inShape)
///
///
public static RotatedTranslatedShape Create(float3 position, floatQuat rotation, Shape shape) => Jolt.PInvoke.RotatedTranslatedShape_Create_2(position, rotation, shape);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:49
///
/// Quat GetRotation() const
///
///
///
///
/// Access the rotation that is applied to the inner shape
///
///
public floatQuat GetRotation() => Jolt.PInvoke.RotatedTranslatedShape_GetRotation(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:52
///
/// Vec3 GetPosition() const
///
///
///
///
/// Access the translation that has been applied to the inner shape
///
///
public float3 GetPosition() => Jolt.PInvoke.RotatedTranslatedShape_GetPosition(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:55
///
/// virtual Vec3 GetCenterOfMass() const override
///
///
///
///
/// See Shape::GetCenterOfMass
///
///
public float3 GetCenterOfMass() => Jolt.PInvoke.RotatedTranslatedShape_GetCenterOfMass(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:65
///
/// virtual float GetInnerRadius() const override
///
///
///
///
/// See Shape::GetInnerRadius
///
///
public float GetInnerRadius() => Jolt.PInvoke.RotatedTranslatedShape_GetInnerRadius(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:74
///
/// virtual Vec3 GetSurfaceNormal(const SubShapeID &inSubShapeID, Vec3Arg inLocalSurfacePosition) const override
///
///
///
///
/// See Shape::GetSurfaceNormal
///
///
public float3 GetSurfaceNormal(uint subShapeID, float3 localSurfacePosition) => Jolt.PInvoke.RotatedTranslatedShape_GetSurfaceNormal(this, subShapeID, localSurfacePosition);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:80
///
/// virtual void GetSubmergedVolume(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const Plane &inSurface, float &outTotalVolume, float &outSubmergedVolume, Vec3 &outCenterOfBuoyancy JPH_IF_DEBUG_RENDERER(, RVec3Arg inBaseOffset)) const override
///
///
///
///
/// See Shape::GetSubmergedVolume
///
///
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);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:84
///
/// virtual void Draw(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inUseMaterialColors, bool inDrawWireframe) const override
///
///
///
///
/// See Shape::Draw
///
///
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);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:87
///
/// virtual void DrawGetSupportFunction(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inDrawSupportDirection) const override
///
///
///
///
/// See Shape::DrawGetSupportFunction
///
///
public void DrawGetSupportFunction(DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, bool drawSupportDirection) => Jolt.PInvoke.RotatedTranslatedShape_DrawGetSupportFunction(this, renderer, centerOfMassTransform, scale, color, drawSupportDirection);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:90
///
/// virtual void DrawGetSupportingFace(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale) const override
///
///
///
///
/// See Shape::DrawGetSupportingFace
///
///
public void DrawGetSupportingFace(DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale) => Jolt.PInvoke.RotatedTranslatedShape_DrawGetSupportingFace(this, renderer, centerOfMassTransform, scale);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:101
///
/// virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &inVertices, uint inNumVertices, int inCollidingShapeIndex) const override
///
///
///
///
/// See: Shape::CollideSoftBodyVertices
///
///
public void CollideSoftBodyVertices(float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex) => Jolt.PInvoke.RotatedTranslatedShape_CollideSoftBodyVertices(this, centerOfMassTransform, scale, vertices, numVertices, collidingShapeIndex);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:110
///
/// virtual void GetTrianglesStart(GetTrianglesContext &ioContext, const AABox &inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override
///
///
///
///
/// See Shape::GetTrianglesStart
///
///
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);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:116
///
/// virtual void SaveBinaryState(StreamOut &inStream) const override
///
///
///
///
/// See Shape
///
///
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.RotatedTranslatedShape_SaveBinaryState(this, stream);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:122
///
/// virtual float GetVolume() const override
///
///
///
///
/// See Shape::GetVolume
///
///
public float GetVolume() => Jolt.PInvoke.RotatedTranslatedShape_GetVolume(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:125
///
/// virtual bool IsValidScale(Vec3Arg inScale) const override
///
///
///
///
/// See Shape::IsValidScale
///
///
public bool IsValidScale(float3 scale) => Jolt.PInvoke.RotatedTranslatedShape_IsValidScale(this, scale);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:128
///
/// virtual Vec3 MakeScaleValid(Vec3Arg inScale) const override
///
///
///
///
/// See Shape::MakeScaleValid
///
///
public float3 MakeScaleValid(float3 scale) => Jolt.PInvoke.RotatedTranslatedShape_MakeScaleValid(this, scale);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:131
///
/// inline Vec3 TransformScale(Vec3Arg inScale) const
///
///
///
///
/// Transform the scale to the local space of the child shape
///
///
public float3 TransformScale(float3 scale) => Jolt.PInvoke.RotatedTranslatedShape_TransformScale(this, scale);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/RotatedTranslatedShape.h:141
///
/// static void sRegister()
///
///
///
///
/// Register shape functions with the registry
///
///
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();
}
}
}