mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
497 lines
23 KiB
C#
497 lines
23 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>
|
|
/// A mesh shape, consisting of triangles. Mesh shapes are mostly used for static geometry. They can be used by
|
|
/// dynamic or kinematic objects but only if they don't collide with other mesh or heightfield shapes as those
|
|
/// collisions are currently not supported. Note that if you make a mesh shape a dynamic or kinematic object,
|
|
/// you need to provide a mass yourself as mesh shapes don't need to form a closed hull so don't have a well
|
|
/// defined volume from which the mass can be calculated.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L84">Jolt/Physics/Collision/Shape/MeshShape.h:84</see>
|
|
/// <br/>
|
|
/// <c>class MeshShape final : public Shape</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct MeshShape : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// 8 bit flags stored per triangle
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L209">Jolt/Physics/Collision/Shape/MeshShape.h:209</see>
|
|
/// <br/>
|
|
/// <c>enum ETriangleFlags</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public enum TriangleFlags : int
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Material index
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L212">Jolt/Physics/Collision/Shape/MeshShape.h:212</see>
|
|
/// <br/>
|
|
/// <c>FLAGS_MATERIAL_BITS = 5</c>
|
|
/// </para>
|
|
/// </summary>
|
|
FLAGS_MATERIAL_BITS = 5,
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L213">Jolt/Physics/Collision/Shape/MeshShape.h:213</see>
|
|
/// <br/>
|
|
/// <c>FLAGS_MATERIAL_MASK = (1 << FLAGS_MATERIAL_BITS) - 1</c>
|
|
/// </para>
|
|
/// </summary>
|
|
FLAGS_MATERIAL_MASK = 31,
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Active edge bits
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L216">Jolt/Physics/Collision/Shape/MeshShape.h:216</see>
|
|
/// <br/>
|
|
/// <c>FLAGS_ACTIVE_EGDE_SHIFT = FLAGS_MATERIAL_BITS</c>
|
|
/// </para>
|
|
/// </summary>
|
|
FLAGS_ACTIVE_EGDE_SHIFT = 5,
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L217">Jolt/Physics/Collision/Shape/MeshShape.h:217</see>
|
|
/// <br/>
|
|
/// <c>FLAGS_ACTIVE_EDGE_BITS = 3</c>
|
|
/// </para>
|
|
/// </summary>
|
|
FLAGS_ACTIVE_EDGE_BITS = 3,
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L218">Jolt/Physics/Collision/Shape/MeshShape.h:218</see>
|
|
/// <br/>
|
|
/// <c>FLAGS_ACTIVE_EDGE_MASK = (1 << FLAGS_ACTIVE_EDGE_BITS) - 1</c>
|
|
/// </para>
|
|
/// </summary>
|
|
FLAGS_ACTIVE_EDGE_MASK = 7,
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L90">Jolt/Physics/Collision/Shape/MeshShape.h:90</see>
|
|
/// <br/>
|
|
/// <c>MeshShape()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static MeshShape Create() => Jolt.PInvoke.MeshShape_Create();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L91">Jolt/Physics/Collision/Shape/MeshShape.h:91</see>
|
|
/// <br/>
|
|
/// <c>MeshShape(const MeshShapeSettings &inSettings, ShapeResult &outResult)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static MeshShape Create(MeshShapeSettings settings)
|
|
{
|
|
var _handle = Jolt.PInvoke.MeshShape_Create_2(settings);
|
|
if (_handle.IsNull())
|
|
throw JoltException.FromLastError();
|
|
return _handle;
|
|
}
|
|
|
|
/// <inheritdoc cref="Shape.MustBeStatic()"/>
|
|
public bool MustBeStatic() => ((Shape)this).MustBeStatic();
|
|
|
|
/// <inheritdoc cref="Shape.GetLocalBounds()"/>
|
|
public AABox GetLocalBounds() => ((Shape)this).GetLocalBounds();
|
|
|
|
/// <inheritdoc cref="Shape.GetSubShapeIDBitsRecursive()"/>
|
|
public uint GetSubShapeIDBitsRecursive() => ((Shape)this).GetSubShapeIDBitsRecursive();
|
|
|
|
/// <inheritdoc cref="Shape.GetInnerRadius()"/>
|
|
public float GetInnerRadius() => ((Shape)this).GetInnerRadius();
|
|
|
|
/// <inheritdoc cref="Shape.GetMassProperties()"/>
|
|
public MassProperties GetMassProperties() => ((Shape)this).GetMassProperties();
|
|
|
|
/// <inheritdoc cref="Shape.GetMaterial(uint)"/>
|
|
public PhysicsMaterial GetMaterial(uint subShapeID) => ((Shape)this).GetMaterial(subShapeID);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get the list of all materials
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L112">Jolt/Physics/Collision/Shape/MeshShape.h:112</see>
|
|
/// <br/>
|
|
/// <c>const PhysicsMaterialList & GetMaterialList() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Returns an owned native buffer - read it through AsSpan() and Dispose it when you are done with it. The
|
|
/// handles in it are borrowed views into the buffer: they stay valid until Dispose and must not be disposed
|
|
/// themselves.
|
|
/// </para>
|
|
/// </remarks>
|
|
public NativeArray<PhysicsMaterial> GetMaterialList() =>
|
|
new NativeArray<PhysicsMaterial>(Jolt.PInvoke.MeshShape_GetMaterialList(this));
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Determine which material index a particular sub shape uses (note that if there are no materials this
|
|
/// function will return 0 so check the array size) Note: This could for example be used to create a
|
|
/// decorator shape around a mesh shape that overrides the GetMaterial call to replace a material with
|
|
/// another material.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L116">Jolt/Physics/Collision/Shape/MeshShape.h:116</see>
|
|
/// <br/>
|
|
/// <c>uint GetMaterialIndex(const SubShapeID &inSubShapeID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetMaterialIndex(uint subShapeID) => Jolt.PInvoke.MeshShape_GetMaterialIndex(this, subShapeID);
|
|
|
|
/// <inheritdoc cref="Shape.GetSurfaceNormal(uint, float3)"/>
|
|
public float3 GetSurfaceNormal(uint subShapeID, float3 localSurfacePosition) =>
|
|
((Shape)this).GetSurfaceNormal(subShapeID, localSurfacePosition);
|
|
|
|
/// <inheritdoc cref="Shape.GetSupportingFace(uint, float3, float3, in float4x4, out StaticArrayVec3_32)"/>
|
|
public void GetSupportingFace(
|
|
uint subShapeID,
|
|
float3 direction,
|
|
float3 scale,
|
|
in float4x4 centerOfMassTransform,
|
|
out StaticArrayVec3_32 vertices
|
|
) => ((Shape)this).GetSupportingFace(subShapeID, direction, scale, in centerOfMassTransform, out vertices);
|
|
|
|
/// <inheritdoc cref="Shape.Draw(DebugRenderer, in float4x4, float3, uint, bool, bool)"/>
|
|
public void Draw(
|
|
DebugRenderer renderer,
|
|
in float4x4 centerOfMassTransform,
|
|
float3 scale,
|
|
uint color,
|
|
bool useMaterialColors,
|
|
bool drawWireframe
|
|
) => ((Shape)this).Draw(renderer, in centerOfMassTransform, scale, color, useMaterialColors, drawWireframe);
|
|
|
|
/// <inheritdoc cref="Shape.CastRay(in RayCast, SubShapeIDCreator, ref RayCastResult)"/>
|
|
public bool CastRay(in RayCast ray, SubShapeIDCreator subShapeIDCreator, ref RayCastResult hit) =>
|
|
((Shape)this).CastRay(in ray, subShapeIDCreator, ref hit);
|
|
|
|
/// <inheritdoc cref="Shape.CastRay(in RayCast, RayCastSettings, SubShapeIDCreator, Span{RayCastResult}, out uint, ShapeFilter)"/>
|
|
public unsafe uint CastRay(
|
|
in RayCast ray,
|
|
RayCastSettings rayCastSettings,
|
|
SubShapeIDCreator subShapeIDCreator,
|
|
Span<RayCastResult> results,
|
|
out uint totalHits,
|
|
ShapeFilter shapeFilter = default
|
|
) => ((Shape)this).CastRay(in ray, rayCastSettings, subShapeIDCreator, results, out totalHits, shapeFilter);
|
|
|
|
/// <inheritdoc cref="Shape.CastRayClosest(in RayCast, RayCastSettings, SubShapeIDCreator, out RayCastResult, ShapeFilter)"/>
|
|
public bool CastRayClosest(
|
|
in RayCast ray,
|
|
RayCastSettings rayCastSettings,
|
|
SubShapeIDCreator subShapeIDCreator,
|
|
out RayCastResult result,
|
|
ShapeFilter shapeFilter = default
|
|
) => ((Shape)this).CastRayClosest(in ray, rayCastSettings, subShapeIDCreator, out result, shapeFilter);
|
|
|
|
/// <inheritdoc cref="Shape.CollidePoint(float3, SubShapeIDCreator, Span{CollidePointResult}, out uint, ShapeFilter)"/>
|
|
public unsafe uint CollidePoint(
|
|
float3 point,
|
|
SubShapeIDCreator subShapeIDCreator,
|
|
Span<CollidePointResult> results,
|
|
out uint totalHits,
|
|
ShapeFilter shapeFilter = default
|
|
) => ((Shape)this).CollidePoint(point, subShapeIDCreator, results, out totalHits, shapeFilter);
|
|
|
|
/// <inheritdoc cref="Shape.CollideSoftBodyVertices(in float4x4, float3, CollideSoftBodyVertexIterator, uint, int)"/>
|
|
public void CollideSoftBodyVertices(
|
|
in float4x4 centerOfMassTransform,
|
|
float3 scale,
|
|
CollideSoftBodyVertexIterator vertices,
|
|
uint numVertices,
|
|
int collidingShapeIndex
|
|
) =>
|
|
((Shape)this).CollideSoftBodyVertices(
|
|
in centerOfMassTransform,
|
|
scale,
|
|
vertices,
|
|
numVertices,
|
|
collidingShapeIndex
|
|
);
|
|
|
|
/// <inheritdoc cref="Shape.GetTrianglesStart(ref Shape.GetTrianglesContext, in AABox, float3, floatQuat, float3)"/>
|
|
public void GetTrianglesStart(
|
|
ref Shape.GetTrianglesContext context,
|
|
in AABox box,
|
|
float3 positionCOM,
|
|
floatQuat rotation,
|
|
float3 scale
|
|
) => ((Shape)this).GetTrianglesStart(ref context, in box, positionCOM, rotation, scale);
|
|
|
|
/// <inheritdoc cref="Shape.GetTrianglesNext(ref Shape.GetTrianglesContext, int, Ptr{float3}, Ptr{PhysicsMaterial})"/>
|
|
public unsafe int GetTrianglesNext(
|
|
ref Shape.GetTrianglesContext context,
|
|
int maxTrianglesRequested,
|
|
Ptr<float3> triangleVertices,
|
|
Ptr<PhysicsMaterial> materials = default
|
|
) => ((Shape)this).GetTrianglesNext(ref context, maxTrianglesRequested, triangleVertices, materials);
|
|
|
|
/// <inheritdoc cref="Shape.GetSubmergedVolume(in float4x4, float3, in Plane, out float, out float, out float3, float3)"/>
|
|
public void GetSubmergedVolume(
|
|
in float4x4 centerOfMassTransform,
|
|
float3 scale,
|
|
in Plane surface,
|
|
out float totalVolume,
|
|
out float submergedVolume,
|
|
out float3 centerOfBuoyancy,
|
|
float3 baseOffset
|
|
) =>
|
|
((Shape)this).GetSubmergedVolume(
|
|
in centerOfMassTransform,
|
|
scale,
|
|
in surface,
|
|
out totalVolume,
|
|
out submergedVolume,
|
|
out centerOfBuoyancy,
|
|
baseOffset
|
|
);
|
|
|
|
/// <inheritdoc cref="Shape.SaveBinaryState(StreamOut)"/>
|
|
public void SaveBinaryState(StreamOut stream) => ((Shape)this).SaveBinaryState(stream);
|
|
|
|
/// <inheritdoc cref="Shape.SaveMaterialState()"/>
|
|
public NativeArray<PhysicsMaterial> SaveMaterialState() => ((Shape)this).SaveMaterialState();
|
|
|
|
/// <inheritdoc cref="Shape.RestoreMaterialState(ReadOnlySpan{PhysicsMaterial})"/>
|
|
public unsafe void RestoreMaterialState(ReadOnlySpan<PhysicsMaterial> materials) =>
|
|
((Shape)this).RestoreMaterialState(materials);
|
|
|
|
/// <inheritdoc cref="Shape.GetStats()"/>
|
|
public Shape.Stats GetStats() => ((Shape)this).GetStats();
|
|
|
|
/// <inheritdoc cref="Shape.GetVolume()"/>
|
|
public float GetVolume() => ((Shape)this).GetVolume();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// When MeshShape::mPerTriangleUserData is true, this function can be used to retrieve the user data that
|
|
/// was stored in the mesh shape.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L162">Jolt/Physics/Collision/Shape/MeshShape.h:162</see>
|
|
/// <br/>
|
|
/// <c>uint32 GetTriangleUserData(const SubShapeID &inSubShapeID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetTriangleUserData(uint subShapeID) =>
|
|
Jolt.PInvoke.MeshShape_GetTriangleUserData(this, subShapeID);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Register shape functions with the registry
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L171">Jolt/Physics/Collision/Shape/MeshShape.h:171</see>
|
|
/// <br/>
|
|
/// <c>static void sRegister()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static void Register() => Jolt.PInvoke.MeshShape_Register();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Settings
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L166">Jolt/Physics/Collision/Shape/MeshShape.h:166</see>
|
|
/// <br/>
|
|
/// <c>static bool sDrawTriangleGroups</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static bool GetDrawTriangleGroups() => Jolt.PInvoke.MeshShape_GetDrawTriangleGroups();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Settings
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L166">Jolt/Physics/Collision/Shape/MeshShape.h:166</see>
|
|
/// <br/>
|
|
/// <c>static bool sDrawTriangleGroups</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static void SetDrawTriangleGroups(bool value) => Jolt.PInvoke.MeshShape_SetDrawTriangleGroups(value);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L167">Jolt/Physics/Collision/Shape/MeshShape.h:167</see>
|
|
/// <br/>
|
|
/// <c>static bool sDrawTriangleOutlines</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static bool GetDrawTriangleOutlines() => Jolt.PInvoke.MeshShape_GetDrawTriangleOutlines();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/MeshShape.h#L167">Jolt/Physics/Collision/Shape/MeshShape.h:167</see>
|
|
/// <br/>
|
|
/// <c>static bool sDrawTriangleOutlines</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static void SetDrawTriangleOutlines(bool value) => Jolt.PInvoke.MeshShape_SetDrawTriangleOutlines(value);
|
|
|
|
public void AddRef() => ((Shape)this).AddRef();
|
|
|
|
public void Release() => ((Shape)this).Release();
|
|
|
|
public uint GetRefCount() => ((Shape)this).GetRefCount();
|
|
|
|
public static implicit operator Shape(MeshShape value) => Unsafe.BitCast<MeshShape, Shape>(value);
|
|
|
|
public void Dispose()
|
|
{
|
|
if (IsNull())
|
|
return;
|
|
Release();
|
|
}
|
|
|
|
/// <inheritdoc cref="Shape.GetShapeType()"/>
|
|
public ShapeType GetShapeType() => ((Shape)this).GetShapeType();
|
|
|
|
/// <inheritdoc cref="Shape.GetSubType()"/>
|
|
public ShapeSubType GetSubType() => ((Shape)this).GetSubType();
|
|
|
|
/// <inheritdoc cref="Shape.GetUserData()"/>
|
|
public ulong GetUserData() => ((Shape)this).GetUserData();
|
|
|
|
/// <inheritdoc cref="Shape.SetUserData(ulong)"/>
|
|
public void SetUserData(ulong userData) => ((Shape)this).SetUserData(userData);
|
|
|
|
/// <inheritdoc cref="Shape.GetCenterOfMass()"/>
|
|
public float3 GetCenterOfMass() => ((Shape)this).GetCenterOfMass();
|
|
|
|
/// <inheritdoc cref="Shape.GetWorldSpaceBounds(in float4x4, float3)"/>
|
|
public AABox GetWorldSpaceBounds(in float4x4 centerOfMassTransform, float3 scale) =>
|
|
((Shape)this).GetWorldSpaceBounds(in centerOfMassTransform, scale);
|
|
|
|
/// <inheritdoc cref="Shape.GetWorldSpaceBounds(in double4x4, float3)"/>
|
|
public AABox GetWorldSpaceBounds(in double4x4 centerOfMassTransform, float3 scale) =>
|
|
((Shape)this).GetWorldSpaceBounds(in centerOfMassTransform, scale);
|
|
|
|
/// <inheritdoc cref="Shape.GetLeafShape(uint, out uint)"/>
|
|
public Shape GetLeafShape(uint subShapeID, out uint remainder) =>
|
|
((Shape)this).GetLeafShape(subShapeID, out remainder);
|
|
|
|
/// <inheritdoc cref="Shape.GetSubShapeUserData(uint)"/>
|
|
public ulong GetSubShapeUserData(uint subShapeID) => ((Shape)this).GetSubShapeUserData(subShapeID);
|
|
|
|
/// <inheritdoc cref="Shape.GetSubShapeTransformedShape(uint, float3, floatQuat, float3, out uint)"/>
|
|
public TransformedShape GetSubShapeTransformedShape(
|
|
uint subShapeID,
|
|
float3 positionCOM,
|
|
floatQuat rotation,
|
|
float3 scale,
|
|
out uint remainder
|
|
) => ((Shape)this).GetSubShapeTransformedShape(subShapeID, positionCOM, rotation, scale, out remainder);
|
|
|
|
/// <inheritdoc cref="Shape.DrawGetSupportFunction(DebugRenderer, in float4x4, float3, uint, bool)"/>
|
|
public void DrawGetSupportFunction(
|
|
DebugRenderer renderer,
|
|
in float4x4 centerOfMassTransform,
|
|
float3 scale,
|
|
uint color,
|
|
bool drawSupportDirection
|
|
) =>
|
|
((Shape)this).DrawGetSupportFunction(
|
|
renderer,
|
|
in centerOfMassTransform,
|
|
scale,
|
|
color,
|
|
drawSupportDirection
|
|
);
|
|
|
|
/// <inheritdoc cref="Shape.DrawGetSupportingFace(DebugRenderer, in float4x4, float3)"/>
|
|
public void DrawGetSupportingFace(DebugRenderer renderer, in float4x4 centerOfMassTransform, float3 scale) =>
|
|
((Shape)this).DrawGetSupportingFace(renderer, in centerOfMassTransform, scale);
|
|
|
|
/// <inheritdoc cref="Shape.CollectTransformedShapes(in AABox, float3, floatQuat, float3, SubShapeIDCreator, ShapeFilter)"/>
|
|
public NativeHandleArray<TransformedShape> CollectTransformedShapes(
|
|
in AABox box,
|
|
float3 positionCOM,
|
|
floatQuat rotation,
|
|
float3 scale,
|
|
SubShapeIDCreator subShapeIDCreator,
|
|
ShapeFilter shapeFilter
|
|
) =>
|
|
((Shape)this).CollectTransformedShapes(
|
|
in box,
|
|
positionCOM,
|
|
rotation,
|
|
scale,
|
|
subShapeIDCreator,
|
|
shapeFilter
|
|
);
|
|
|
|
/// <inheritdoc cref="Shape.TransformShape(in float4x4)"/>
|
|
public NativeHandleArray<TransformedShape> TransformShape(in float4x4 centerOfMassTransform) =>
|
|
((Shape)this).TransformShape(in centerOfMassTransform);
|
|
|
|
/// <inheritdoc cref="Shape.ScaleShape(float3)"/>
|
|
public Shape ScaleShape(float3 scale) => ((Shape)this).ScaleShape(scale);
|
|
|
|
/// <inheritdoc cref="Shape.SaveSubShapeState()"/>
|
|
public NativeArray<Shape> SaveSubShapeState() => ((Shape)this).SaveSubShapeState();
|
|
|
|
/// <inheritdoc cref="Shape.RestoreSubShapeState(ReadOnlySpan{Shape})"/>
|
|
public unsafe void RestoreSubShapeState(ReadOnlySpan<Shape> subShapes) =>
|
|
((Shape)this).RestoreSubShapeState(subShapes);
|
|
|
|
/// <inheritdoc cref="Shape.SaveWithChildren(StreamOut, ShapeToIDMap, MaterialToIDMap)"/>
|
|
public void SaveWithChildren(StreamOut stream, ShapeToIDMap shapeMap, MaterialToIDMap materialMap) =>
|
|
((Shape)this).SaveWithChildren(stream, shapeMap, materialMap);
|
|
|
|
/// <inheritdoc cref="Shape.IsValidScale(float3)"/>
|
|
public bool IsValidScale(float3 scale) => ((Shape)this).IsValidScale(scale);
|
|
|
|
/// <inheritdoc cref="Shape.MakeScaleValid(float3)"/>
|
|
public float3 MakeScaleValid(float3 scale) => ((Shape)this).MakeScaleValid(scale);
|
|
}
|
|
}
|