brutal/brutal.jolt/Brutal.Jolt/Generated/Classes/VehicleCollisionTesterRay.gen.cs
2026-10-15 14:12:02 +13:00

52 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#L84">Jolt/Physics/Vehicle/VehicleCollisionTester.h:84</see>
/// <br/>
/// <c>class VehicleCollisionTesterRay : public VehicleCollisionTester</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Collision tester that tests collision using a raycast
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct VehicleCollisionTesterRay : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleCollisionTester.h#L93">Jolt/Physics/Vehicle/VehicleCollisionTester.h:93</see>
/// <br/>
/// <c>explicit VehicleCollisionTesterRay(ObjectLayer inObjectLayer, Vec3Arg inUp = Vec3::sAxisY(), float inMaxSlopeAngle = DegreesToRadians(80.0f))</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Constructor
/// @param inObjectLayer Object layer to test collision with
/// @param inUp World space up vector, used to avoid colliding with vertical walls.
/// @param inMaxSlopeAngle Max angle (rad) that is considered for colliding wheels. This is to avoid colliding with vertical walls.
/// </code>
/// </remarks>
public static VehicleCollisionTesterRay Create(ushort objectLayer, float3 up, float maxSlopeAngle) => Jolt.PInvoke.VehicleCollisionTesterRay_Create(objectLayer, up, maxSlopeAngle);
public void AddRef() => Jolt.PInvoke.VehicleCollisionTesterRay_AddRef(this);
public void Release() => Jolt.PInvoke.VehicleCollisionTesterRay_Release(this);
public uint GetRefCount() => Jolt.PInvoke.VehicleCollisionTesterRay_GetRefCount(this);
public static implicit operator VehicleCollisionTester(VehicleCollisionTesterRay value) => Jolt.PInvoke.VehicleCollisionTesterRay_AsVehicleCollisionTester(value);
public void Dispose()
{
if (IsNull()) return;
Release();
}
}
}