//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleCollisionTester.h:84
///
/// class VehicleCollisionTesterRay : public VehicleCollisionTester
///
///
///
///
/// Collision tester that tests collision using a raycast
///
///
[InteropHandle]
public readonly partial struct VehicleCollisionTesterRay : IDisposable
{
///
///
/// C++:
/// Jolt/Physics/Vehicle/VehicleCollisionTester.h:93
///
/// explicit VehicleCollisionTesterRay(ObjectLayer inObjectLayer, Vec3Arg inUp = Vec3::sAxisY(), float inMaxSlopeAngle = DegreesToRadians(80.0f))
///
///
///
///
/// 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.
///
///
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();
}
}
}