mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
145 lines
7.8 KiB
C#
145 lines
7.8 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/BoxShape.h#L19">Jolt/Physics/Collision/Shape/BoxShape.h:19</see>
|
|
/// <br/>
|
|
/// <c>BoxShapeSettings() = default</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Default constructor for deserialization
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_Create")]
|
|
public static partial BoxShapeSettings BoxShapeSettings_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L23">Jolt/Physics/Collision/Shape/BoxShape.h:23</see>
|
|
/// <br/>
|
|
/// <c>explicit BoxShapeSettings(Vec3Arg inHalfExtent, float inConvexRadius = cDefaultConvexRadius, const PhysicsMaterial *inMaterial = nullptr)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Create a box with half edge length inHalfExtent and convex radius inConvexRadius.
|
|
/// (internally the convex radius will be subtracted from the half extent so the total box will not grow with the convex radius).
|
|
/// </code>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_Create_2")]
|
|
public static partial BoxShapeSettings BoxShapeSettings_Create_2(float3 halfExtent, float convexRadius, PhysicsMaterial material);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L15">Jolt/Physics/Collision/Shape/BoxShape.h:15</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// The returned handle is borrowed from its owner; don't Dispose it.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_GetRTTI")]
|
|
public static partial RTTI BoxShapeSettings_GetRTTI(BoxShapeSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L15">Jolt/Physics/Collision/Shape/BoxShape.h:15</see>
|
|
/// <br/>
|
|
/// <c></c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_CastTo")]
|
|
public static partial void* BoxShapeSettings_CastTo(BoxShapeSettings self, RTTI rTTI);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L26">Jolt/Physics/Collision/Shape/BoxShape.h:26</see>
|
|
/// <br/>
|
|
/// <c>virtual ShapeResult Create() const override</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// See: ShapeSettings
|
|
/// </para>
|
|
/// <para>
|
|
/// Returns a null handle when the operation fails; call Jolt.GetLastError() for Jolt's error message.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_CreateShape")]
|
|
public static partial Shape BoxShapeSettings_CreateShape(BoxShapeSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Half the size of the box (including convex radius)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L28">Jolt/Physics/Collision/Shape/BoxShape.h:28</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mHalfExtent = Vec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_GetHalfExtent")]
|
|
public static partial float3 BoxShapeSettings_GetHalfExtent(BoxShapeSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Half the size of the box (including convex radius)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L28">Jolt/Physics/Collision/Shape/BoxShape.h:28</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mHalfExtent = Vec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_SetHalfExtent")]
|
|
public static partial void BoxShapeSettings_SetHalfExtent(BoxShapeSettings self, float3 value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L29">Jolt/Physics/Collision/Shape/BoxShape.h:29</see>
|
|
/// <br/>
|
|
/// <c>float mConvexRadius = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_GetConvexRadius")]
|
|
public static partial float BoxShapeSettings_GetConvexRadius(BoxShapeSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/BoxShape.h#L29">Jolt/Physics/Collision/Shape/BoxShape.h:29</see>
|
|
/// <br/>
|
|
/// <c>float mConvexRadius = 0.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_SetConvexRadius")]
|
|
public static partial void BoxShapeSettings_SetConvexRadius(BoxShapeSettings self, float value);
|
|
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_AddRef")]
|
|
public static partial void BoxShapeSettings_AddRef(BoxShapeSettings self);
|
|
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_Release")]
|
|
public static partial void BoxShapeSettings_Release(BoxShapeSettings self);
|
|
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_GetRefCount")]
|
|
public static partial uint BoxShapeSettings_GetRefCount(BoxShapeSettings self);
|
|
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_AsConvexShapeSettings")]
|
|
public static partial ConvexShapeSettings BoxShapeSettings_AsConvexShapeSettings(BoxShapeSettings self);
|
|
[LibraryImport("jolt", EntryPoint = "BoxShapeSettings_AsShapeSettings")]
|
|
public static partial ShapeSettings BoxShapeSettings_AsShapeSettings(BoxShapeSettings self);
|
|
}
|
|
}
|
|
}
|