mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
51 lines
2.4 KiB
C#
51 lines
2.4 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
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleCollisionTester.h#L128">Jolt/Physics/Vehicle/VehicleCollisionTester.h:128</see>
|
|
/// <br/>
|
|
/// <c>class VehicleCollisionTesterCastCylinder : public VehicleCollisionTester</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Collision tester that tests collision using a cylinder shape
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct VehicleCollisionTesterCastCylinder : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleCollisionTester.h#L136">Jolt/Physics/Vehicle/VehicleCollisionTester.h:136</see>
|
|
/// <br/>
|
|
/// <c>explicit VehicleCollisionTesterCastCylinder(ObjectLayer inObjectLayer, float inConvexRadiusFraction = 0.1f)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Constructor
|
|
/// @param inObjectLayer Object layer to test collision with
|
|
/// @param inConvexRadiusFraction Fraction of half the wheel width (or wheel radius if it is smaller) that is used as the convex radius
|
|
/// </code>
|
|
/// </remarks>
|
|
public static VehicleCollisionTesterCastCylinder Create(ushort objectLayer, float convexRadiusFraction) => Jolt.PInvoke.VehicleCollisionTesterCastCylinder_Create(objectLayer, convexRadiusFraction);
|
|
public void AddRef() => Jolt.PInvoke.VehicleCollisionTesterCastCylinder_AddRef(this);
|
|
public void Release() => Jolt.PInvoke.VehicleCollisionTesterCastCylinder_Release(this);
|
|
public uint GetRefCount() => Jolt.PInvoke.VehicleCollisionTesterCastCylinder_GetRefCount(this);
|
|
public static implicit operator VehicleCollisionTester(VehicleCollisionTesterCastCylinder value) => Jolt.PInvoke.VehicleCollisionTesterCastCylinder_AsVehicleCollisionTester(value);
|
|
public void Dispose()
|
|
{
|
|
if (IsNull()) return;
|
|
Release();
|
|
}
|
|
}
|
|
}
|