mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
421 lines
26 KiB
C#
421 lines
26 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
|
|
{
|
|
public static partial class Jolt
|
|
{
|
|
public static unsafe partial class PInvoke
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L121">Jolt/Physics/Collision/Shape/HeightFieldShape.h:121</see>
|
|
/// <br/>
|
|
/// <c>HeightFieldShape()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_Create")]
|
|
public static partial HeightFieldShape HeightFieldShape_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L126">Jolt/Physics/Collision/Shape/HeightFieldShape.h:126</see>
|
|
/// <br/>
|
|
/// <c>Ref<HeightFieldShape> Clone() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Clone this shape. Can be used to avoid race conditions. See the documentation of this class for more
|
|
/// information.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_Clone")]
|
|
public static partial HeightFieldShape HeightFieldShape_Clone(HeightFieldShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L129">Jolt/Physics/Collision/Shape/HeightFieldShape.h:129</see>
|
|
/// <br/>
|
|
/// <c>virtual bool MustBeStatic() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape::MustBeStatic
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_MustBeStatic")]
|
|
public static partial Brutal.Bool8 HeightFieldShape_MustBeStatic(HeightFieldShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L132">Jolt/Physics/Collision/Shape/HeightFieldShape.h:132</see>
|
|
/// <br/>
|
|
/// <c>inline uint GetSampleCount() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the size of the height field. Note that this will always be rounded up to the nearest multiple
|
|
/// of GetBlockSize().
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_GetSampleCount")]
|
|
public static partial uint HeightFieldShape_GetSampleCount(HeightFieldShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L135">Jolt/Physics/Collision/Shape/HeightFieldShape.h:135</see>
|
|
/// <br/>
|
|
/// <c>inline uint GetBlockSize() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the size of a block
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_GetBlockSize")]
|
|
public static partial uint HeightFieldShape_GetBlockSize(HeightFieldShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L141">Jolt/Physics/Collision/Shape/HeightFieldShape.h:141</see>
|
|
/// <br/>
|
|
/// <c>virtual uint GetSubShapeIDBitsRecursive() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape::GetSubShapeIDBitsRecursive
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_GetSubShapeIDBitsRecursive")]
|
|
public static partial uint HeightFieldShape_GetSubShapeIDBitsRecursive(HeightFieldShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L144">Jolt/Physics/Collision/Shape/HeightFieldShape.h:144</see>
|
|
/// <br/>
|
|
/// <c>virtual float GetInnerRadius() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape::GetInnerRadius
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_GetInnerRadius")]
|
|
public static partial float HeightFieldShape_GetInnerRadius(HeightFieldShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L150">Jolt/Physics/Collision/Shape/HeightFieldShape.h:150</see>
|
|
/// <br/>
|
|
/// <c>virtual const PhysicsMaterial * GetMaterial(const SubShapeID &inSubShapeID) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape::GetMaterial
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_GetMaterial")]
|
|
public static partial PhysicsMaterial HeightFieldShape_GetMaterial(HeightFieldShape self, uint subShapeID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L153">Jolt/Physics/Collision/Shape/HeightFieldShape.h:153</see>
|
|
/// <br/>
|
|
/// <c>const PhysicsMaterial * GetMaterial(uint inX, uint inY) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Overload to get the material at a particular location
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_GetMaterial_2")]
|
|
public static partial PhysicsMaterial HeightFieldShape_GetMaterial_2(HeightFieldShape self, uint x, uint y);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L156">Jolt/Physics/Collision/Shape/HeightFieldShape.h:156</see>
|
|
/// <br/>
|
|
/// <c>virtual Vec3 GetSurfaceNormal(const SubShapeID &inSubShapeID, Vec3Arg inLocalSurfacePosition) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape::GetSurfaceNormal
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_GetSurfaceNormal")]
|
|
public static partial float3 HeightFieldShape_GetSurfaceNormal(HeightFieldShape self, uint subShapeID, float3 localSurfacePosition);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L162">Jolt/Physics/Collision/Shape/HeightFieldShape.h:162</see>
|
|
/// <br/>
|
|
/// <c>virtual void GetSubmergedVolume(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const Plane &inSurface, float &outTotalVolume, float &outSubmergedVolume, Vec3 &outCenterOfBuoyancy JPH_IF_DEBUG_RENDERER(, RVec3Arg inBaseOffset)) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape::GetSubmergedVolume
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_GetSubmergedVolume")]
|
|
public static partial void HeightFieldShape_GetSubmergedVolume(HeightFieldShape self, float4x4 centerOfMassTransform, float3 scale, Plane surface, out float totalVolume, out float submergedVolume, out float3 centerOfBuoyancy, float3 baseOffset);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L166">Jolt/Physics/Collision/Shape/HeightFieldShape.h:166</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>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_Draw")]
|
|
public static partial void HeightFieldShape_Draw(HeightFieldShape self, DebugRenderer renderer, float4x4 centerOfMassTransform, float3 scale, uint color, Brutal.Bool8 useMaterialColors, Brutal.Bool8 drawWireframe);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L177">Jolt/Physics/Collision/Shape/HeightFieldShape.h:177</see>
|
|
/// <br/>
|
|
/// <c>virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &inVertices, uint inNumVertices, int inCollidingShapeIndex) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See: Shape::CollideSoftBodyVertices
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_CollideSoftBodyVertices")]
|
|
public static partial void HeightFieldShape_CollideSoftBodyVertices(HeightFieldShape self, float4x4 centerOfMassTransform, float3 scale, CollideSoftBodyVertexIterator vertices, uint numVertices, int collidingShapeIndex);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L180">Jolt/Physics/Collision/Shape/HeightFieldShape.h:180</see>
|
|
/// <br/>
|
|
/// <c>virtual void GetTrianglesStart(GetTrianglesContext &ioContext, const AABox &inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape::GetTrianglesStart
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_GetTrianglesStart")]
|
|
public static partial void HeightFieldShape_GetTrianglesStart(HeightFieldShape self, ref Shape.GetTrianglesContext context, AABox box, float3 positionCOM, floatQuat rotation, float3 scale);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L187">Jolt/Physics/Collision/Shape/HeightFieldShape.h:187</see>
|
|
/// <br/>
|
|
/// <c>Vec3 GetPosition(uint inX, uint inY) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Get height field position at sampled location (inX, inY).
|
|
/// where inX and inY are integers in the range inX e [0, mSampleCount - 1] and inY e [0, mSampleCount - 1].
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_GetPosition")]
|
|
public static partial float3 HeightFieldShape_GetPosition(HeightFieldShape self, uint x, uint y);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L190">Jolt/Physics/Collision/Shape/HeightFieldShape.h:190</see>
|
|
/// <br/>
|
|
/// <c>bool IsNoCollision(uint inX, uint inY) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Check if height field at sampled location (inX, inY) has collision (has a hole or not)
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_IsNoCollision")]
|
|
public static partial Brutal.Bool8 HeightFieldShape_IsNoCollision(HeightFieldShape self, uint x, uint y);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L194">Jolt/Physics/Collision/Shape/HeightFieldShape.h:194</see>
|
|
/// <br/>
|
|
/// <c>bool ProjectOntoSurface(Vec3Arg inLocalPosition, Vec3 &outSurfacePosition, SubShapeID &outSubShapeID) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Projects inLocalPosition (a point in the space of the shape) along the Y axis onto the surface and returns it in outSurfacePosition.
|
|
/// When there is no surface position (because of a hole or because the point is outside the heightfield) the function will return false.
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_ProjectOntoSurface")]
|
|
public static partial Brutal.Bool8 HeightFieldShape_ProjectOntoSurface(HeightFieldShape self, float3 localPosition, out float3 surfacePosition, out uint subShapeID);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L204">Jolt/Physics/Collision/Shape/HeightFieldShape.h:204</see>
|
|
/// <br/>
|
|
/// <c>float GetMinHeightValue() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get the range of height values that this height field can encode. Can be used to determine the
|
|
/// allowed range when setting the height values with SetHeights.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_GetMinHeightValue")]
|
|
public static partial float HeightFieldShape_GetMinHeightValue(HeightFieldShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L205">Jolt/Physics/Collision/Shape/HeightFieldShape.h:205</see>
|
|
/// <br/>
|
|
/// <c>float GetMaxHeightValue() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_GetMaxHeightValue")]
|
|
public static partial float HeightFieldShape_GetMaxHeightValue(HeightFieldShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L215">Jolt/Physics/Collision/Shape/HeightFieldShape.h:215</see>
|
|
/// <br/>
|
|
/// <c>void GetHeights(uint inX, uint inY, uint inSizeX, uint inSizeY, float *outHeights, intptr_t inHeightsStride) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Get the height values of a block of data.
|
|
/// Note that the height values are decompressed so will be slightly different from what the shape was originally created with.
|
|
/// @param inX Start X position, must be a multiple of mBlockSize and in the range [0, mSampleCount - 1]
|
|
/// @param inY Start Y position, must be a multiple of mBlockSize and in the range [0, mSampleCount - 1]
|
|
/// @param inSizeX Number of samples in X direction, must be a multiple of mBlockSize and in the range [0, mSampleCount - inX]
|
|
/// @param inSizeY Number of samples in Y direction, must be a multiple of mBlockSize and in the range [0, mSampleCount - inY]
|
|
/// @param outHeights Returned height values, must be at least inSizeX * inSizeY floats. Values are returned in x-major order and can be cNoCollisionValue.
|
|
/// @param inHeightsStride Stride in floats between two consecutive rows of outHeights (can be negative if the data is upside down).
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_GetHeights")]
|
|
public static partial void HeightFieldShape_GetHeights(HeightFieldShape self, uint x, uint y, uint sizeX, uint sizeY, float* heights, long heightsStride);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L228">Jolt/Physics/Collision/Shape/HeightFieldShape.h:228</see>
|
|
/// <br/>
|
|
/// <c>void SetHeights(uint inX, uint inY, uint inSizeX, uint inSizeY, const float *inHeights, intptr_t inHeightsStride, TempAllocator &inAllocator, float inActiveEdgeCosThresholdAngle = 0.996195f)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Set the height values of a block of data.
|
|
/// Note that this requires decompressing and recompressing a border of size mBlockSize in the negative x/y direction so will cause some precision loss.
|
|
/// Beware this can create a race condition if you're running collision queries in parallel. See class documentation for more information.
|
|
/// @param inX Start X position, must be a multiple of mBlockSize and in the range [0, mSampleCount - 1]
|
|
/// @param inY Start Y position, must be a multiple of mBlockSize and in the range [0, mSampleCount - 1]
|
|
/// @param inSizeX Number of samples in X direction, must be a multiple of mBlockSize and in the range [0, mSampleCount - inX]
|
|
/// @param inSizeY Number of samples in Y direction, must be a multiple of mBlockSize and in the range [0, mSampleCount - inY]
|
|
/// @param inHeights The new height values to set, must be an array of inSizeX * inSizeY floats, can be cNoCollisionValue. Values outside of the range [GetMinHeightValue(), GetMaxHeightValue()] will be clamped.
|
|
/// @param inHeightsStride Stride in floats between two consecutive rows of inHeights (can be negative if the data is upside down).
|
|
/// @param inAllocator Allocator to use for temporary memory
|
|
/// @param inActiveEdgeCosThresholdAngle Cosine of the threshold angle (if the angle between the two triangles is bigger than this, the edge is active, note that a concave edge is always inactive).
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_SetHeights")]
|
|
public static partial void HeightFieldShape_SetHeights(HeightFieldShape self, uint x, uint y, uint sizeX, uint sizeY, float* heights, long heightsStride, TempAllocator allocator, float activeEdgeCosThresholdAngle);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L240">Jolt/Physics/Collision/Shape/HeightFieldShape.h:240</see>
|
|
/// <br/>
|
|
/// <c>void GetMaterials(uint inX, uint inY, uint inSizeX, uint inSizeY, uint8 *outMaterials, intptr_t inMaterialsStride) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Get the material indices of a block of data.
|
|
/// @param inX Start X position, must in the range [0, mSampleCount - 1]
|
|
/// @param inY Start Y position, must in the range [0, mSampleCount - 1]
|
|
/// @param inSizeX Number of samples in X direction
|
|
/// @param inSizeY Number of samples in Y direction
|
|
/// @param outMaterials Returned material indices, must be at least inSizeX * inSizeY uint8s. Values are returned in x-major order.
|
|
/// @param inMaterialsStride Stride in uint8s between two consecutive rows of outMaterials (can be negative if the data is upside down).
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_GetMaterials")]
|
|
public static partial void HeightFieldShape_GetMaterials(HeightFieldShape self, uint x, uint y, uint sizeX, uint sizeY, byte* materials, long materialsStride);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L256">Jolt/Physics/Collision/Shape/HeightFieldShape.h:256</see>
|
|
/// <br/>
|
|
/// <c>virtual void SaveBinaryState(StreamOut &inStream) const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_SaveBinaryState")]
|
|
public static partial void HeightFieldShape_SaveBinaryState(HeightFieldShape self, StreamOut stream);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L264">Jolt/Physics/Collision/Shape/HeightFieldShape.h:264</see>
|
|
/// <br/>
|
|
/// <c>virtual float GetVolume() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See Shape::GetVolume
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_GetVolume")]
|
|
public static partial float HeightFieldShape_GetVolume(HeightFieldShape self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/HeightFieldShape.h#L272">Jolt/Physics/Collision/Shape/HeightFieldShape.h:272</see>
|
|
/// <br/>
|
|
/// <c>static void sRegister()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Register shape functions with the registry
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_sRegister")]
|
|
public static partial void HeightFieldShape_sRegister();
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_AddRef")]
|
|
public static partial void HeightFieldShape_AddRef(HeightFieldShape self);
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_Release")]
|
|
public static partial void HeightFieldShape_Release(HeightFieldShape self);
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_GetRefCount")]
|
|
public static partial uint HeightFieldShape_GetRefCount(HeightFieldShape self);
|
|
[LibraryImport("jolt", EntryPoint = "HeightFieldShape_AsShape")]
|
|
public static partial Shape HeightFieldShape_AsShape(HeightFieldShape self);
|
|
}
|
|
}
|
|
}
|