mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 14:08:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
187
Brutal.Jolt/Generated/Classes/PlaneShapeSettings.gen.cs
Normal file
187
Brutal.Jolt/Generated/Classes/PlaneShapeSettings.gen.cs
Normal file
|
|
@ -0,0 +1,187 @@
|
|||
// <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>
|
||||
/// Class that constructs a PlaneShape
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/PlaneShape.h#L16">Jolt/Physics/Collision/Shape/PlaneShape.h:16</see>
|
||||
/// <br/>
|
||||
/// <c>class PlaneShapeSettings final : public ShapeSettings</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct PlaneShapeSettings : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Default constructor for deserialization
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/PlaneShape.h#L22">Jolt/Physics/Collision/Shape/PlaneShape.h:22</see>
|
||||
/// <br/>
|
||||
/// <c>PlaneShapeSettings() = default</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static PlaneShapeSettings Create() => Jolt.PInvoke.PlaneShapeSettings_Create();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Create a plane shape.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/PlaneShape.h#L25">Jolt/Physics/Collision/Shape/PlaneShape.h:25</see>
|
||||
/// <br/>
|
||||
/// <c>explicit PlaneShapeSettings(const Plane &inPlane, const PhysicsMaterial *inMaterial = nullptr, float inHalfExtent = cDefaultHalfExtent)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static PlaneShapeSettings Create(
|
||||
in Plane plane,
|
||||
PhysicsMaterial material = default,
|
||||
float halfExtent = 1000f
|
||||
) => Jolt.PInvoke.PlaneShapeSettings_Create_2(in plane, material, halfExtent);
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.GetRTTI()"/>
|
||||
public RTTI GetRTTI() => ((ShapeSettings)this).GetRTTI();
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.CastTo(RTTI)"/>
|
||||
public unsafe Ptr CastTo(RTTI rtti) => ((ShapeSettings)this).CastTo(rtti);
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.CreateShape()"/>
|
||||
public Shape CreateShape() => ((ShapeSettings)this).CreateShape();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Plane that describes the shape. The negative half space is considered solid.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/PlaneShape.h#L30">Jolt/Physics/Collision/Shape/PlaneShape.h:30</see>
|
||||
/// <br/>
|
||||
/// <c>Plane mPlane</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public Plane GetPlane() => Jolt.PInvoke.PlaneShapeSettings_GetPlane(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Plane that describes the shape. The negative half space is considered solid.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/PlaneShape.h#L30">Jolt/Physics/Collision/Shape/PlaneShape.h:30</see>
|
||||
/// <br/>
|
||||
/// <c>Plane mPlane</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetPlane(Plane value) => Jolt.PInvoke.PlaneShapeSettings_SetPlane(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Surface material of the plane
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/PlaneShape.h#L32">Jolt/Physics/Collision/Shape/PlaneShape.h:32</see>
|
||||
/// <br/>
|
||||
/// <c>RefConst<PhysicsMaterial> mMaterial</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// The returned handle carries its own reference; Dispose it once when you're done.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public PhysicsMaterial GetMaterial() => Jolt.PInvoke.PlaneShapeSettings_GetMaterial(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Surface material of the plane
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/PlaneShape.h#L32">Jolt/Physics/Collision/Shape/PlaneShape.h:32</see>
|
||||
/// <br/>
|
||||
/// <c>RefConst<PhysicsMaterial> mMaterial</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetMaterial(PhysicsMaterial value) => Jolt.PInvoke.PlaneShapeSettings_SetMaterial(this, value);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Default half-extent of the plane (total size along 1 axis will be 2 * half-extent)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/PlaneShape.h#L34">Jolt/Physics/Collision/Shape/PlaneShape.h:34</see>
|
||||
/// <br/>
|
||||
/// <c>static constexpr float cDefaultHalfExtent = 1000.0f</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static float GetDefaultHalfExtent() => Jolt.PInvoke.PlaneShapeSettings_GetDefaultHalfExtent();
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// The bounding box of this plane will run from [-half_extent, half_extent]. Keep this as low as possible
|
||||
/// for better broad phase performance.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/PlaneShape.h#L36">Jolt/Physics/Collision/Shape/PlaneShape.h:36</see>
|
||||
/// <br/>
|
||||
/// <c>float mHalfExtent = cDefaultHalfExtent</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetHalfExtent() => Jolt.PInvoke.PlaneShapeSettings_GetHalfExtent(this);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// The bounding box of this plane will run from [-half_extent, half_extent]. Keep this as low as possible
|
||||
/// for better broad phase performance.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/PlaneShape.h#L36">Jolt/Physics/Collision/Shape/PlaneShape.h:36</see>
|
||||
/// <br/>
|
||||
/// <c>float mHalfExtent = cDefaultHalfExtent</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetHalfExtent(float value) => Jolt.PInvoke.PlaneShapeSettings_SetHalfExtent(this, value);
|
||||
|
||||
public void AddRef() => ((ShapeSettings)this).AddRef();
|
||||
|
||||
public void Release() => ((ShapeSettings)this).Release();
|
||||
|
||||
public uint GetRefCount() => ((ShapeSettings)this).GetRefCount();
|
||||
|
||||
public static implicit operator ShapeSettings(PlaneShapeSettings value) =>
|
||||
Unsafe.BitCast<PlaneShapeSettings, ShapeSettings>(value);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull())
|
||||
return;
|
||||
Release();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.ClearCachedResult()"/>
|
||||
public void ClearCachedResult() => ((ShapeSettings)this).ClearCachedResult();
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.GetUserData()"/>
|
||||
public ulong GetUserData() => ((ShapeSettings)this).GetUserData();
|
||||
|
||||
/// <inheritdoc cref="ShapeSettings.SetUserData(ulong)"/>
|
||||
public void SetUserData(ulong value) => ((ShapeSettings)this).SetUserData(value);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue