mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
53 lines
2.6 KiB
C#
53 lines
2.6 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#L105">Jolt/Physics/Vehicle/VehicleCollisionTester.h:105</see>
|
|
/// <br/>
|
|
/// <c>class VehicleCollisionTesterCastSphere : public VehicleCollisionTester</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Collision tester that tests collision using a sphere cast
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct VehicleCollisionTesterCastSphere : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Vehicle/VehicleCollisionTester.h#L115">Jolt/Physics/Vehicle/VehicleCollisionTester.h:115</see>
|
|
/// <br/>
|
|
/// <c>VehicleCollisionTesterCastSphere(ObjectLayer inObjectLayer, float inRadius, 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 inRadius Radius of sphere
|
|
/// @param inMaxSlopeAngle Max angle (rad) that is considered for colliding wheels. This is to avoid colliding with vertical walls.
|
|
/// </code>
|
|
/// </remarks>
|
|
public static VehicleCollisionTesterCastSphere Create(ushort objectLayer, float radius, float3 up, float maxSlopeAngle) => Jolt.PInvoke.VehicleCollisionTesterCastSphere_Create(objectLayer, radius, up, maxSlopeAngle);
|
|
public void AddRef() => Jolt.PInvoke.VehicleCollisionTesterCastSphere_AddRef(this);
|
|
public void Release() => Jolt.PInvoke.VehicleCollisionTesterCastSphere_Release(this);
|
|
public uint GetRefCount() => Jolt.PInvoke.VehicleCollisionTesterCastSphere_GetRefCount(this);
|
|
public static implicit operator VehicleCollisionTester(VehicleCollisionTesterCastSphere value) => Jolt.PInvoke.VehicleCollisionTesterCastSphere_AsVehicleCollisionTester(value);
|
|
public void Dispose()
|
|
{
|
|
if (IsNull()) return;
|
|
Release();
|
|
}
|
|
}
|
|
}
|