mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
|
|
@ -0,0 +1,151 @@
|
|||
// <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>
|
||||
/// Collision tester that tests collision using a sphere cast
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Vehicle/VehicleCollisionTester.h#L105">Jolt/Physics/Vehicle/VehicleCollisionTester.h:105</see>
|
||||
/// <br/>
|
||||
/// <c>class VehicleCollisionTesterCastSphere : public VehicleCollisionTester</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct VehicleCollisionTesterCastSphere : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Constructor
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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 = 1.3962634f
|
||||
) => Jolt.PInvoke.VehicleCollisionTesterCastSphere_Create(objectLayer, radius, up, maxSlopeAngle);
|
||||
|
||||
/// <inheritdoc cref="VehicleCollisionTester.Collide(PhysicsSystem, VehicleConstraint, uint, float3, float3, uint, out Body, out uint, out float3, out float3, out float)"/>
|
||||
public bool Collide(
|
||||
PhysicsSystem physicsSystem,
|
||||
VehicleConstraint vehicleConstraint,
|
||||
uint wheelIndex,
|
||||
float3 origin,
|
||||
float3 direction,
|
||||
uint vehicleBodyID,
|
||||
out Body body,
|
||||
out uint subShapeID,
|
||||
out float3 contactPosition,
|
||||
out float3 contactNormal,
|
||||
out float suspensionLength
|
||||
) =>
|
||||
((VehicleCollisionTester)this).Collide(
|
||||
physicsSystem,
|
||||
vehicleConstraint,
|
||||
wheelIndex,
|
||||
origin,
|
||||
direction,
|
||||
vehicleBodyID,
|
||||
out body,
|
||||
out subShapeID,
|
||||
out contactPosition,
|
||||
out contactNormal,
|
||||
out suspensionLength
|
||||
);
|
||||
|
||||
/// <inheritdoc cref="VehicleCollisionTester.PredictContactProperties(PhysicsSystem, VehicleConstraint, uint, float3, float3, uint, ref Body, ref uint, ref float3, ref float3, ref float)"/>
|
||||
public void PredictContactProperties(
|
||||
PhysicsSystem physicsSystem,
|
||||
VehicleConstraint vehicleConstraint,
|
||||
uint wheelIndex,
|
||||
float3 origin,
|
||||
float3 direction,
|
||||
uint vehicleBodyID,
|
||||
ref Body body,
|
||||
ref uint subShapeID,
|
||||
ref float3 contactPosition,
|
||||
ref float3 contactNormal,
|
||||
ref float suspensionLength
|
||||
) =>
|
||||
((VehicleCollisionTester)this).PredictContactProperties(
|
||||
physicsSystem,
|
||||
vehicleConstraint,
|
||||
wheelIndex,
|
||||
origin,
|
||||
direction,
|
||||
vehicleBodyID,
|
||||
ref body,
|
||||
ref subShapeID,
|
||||
ref contactPosition,
|
||||
ref contactNormal,
|
||||
ref suspensionLength
|
||||
);
|
||||
|
||||
public void AddRef() => ((VehicleCollisionTester)this).AddRef();
|
||||
|
||||
public void Release() => ((VehicleCollisionTester)this).Release();
|
||||
|
||||
public uint GetRefCount() => ((VehicleCollisionTester)this).GetRefCount();
|
||||
|
||||
public static implicit operator VehicleCollisionTester(VehicleCollisionTesterCastSphere value) =>
|
||||
Unsafe.BitCast<VehicleCollisionTesterCastSphere, VehicleCollisionTester>(value);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (IsNull())
|
||||
return;
|
||||
Release();
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="VehicleCollisionTester.GetObjectLayer()"/>
|
||||
public ushort GetObjectLayer() => ((VehicleCollisionTester)this).GetObjectLayer();
|
||||
|
||||
/// <inheritdoc cref="VehicleCollisionTester.SetObjectLayer(ushort)"/>
|
||||
public void SetObjectLayer(ushort objectLayer) => ((VehicleCollisionTester)this).SetObjectLayer(objectLayer);
|
||||
|
||||
/// <inheritdoc cref="VehicleCollisionTester.SetBroadPhaseLayerFilter(BroadPhaseLayerFilter)"/>
|
||||
public void SetBroadPhaseLayerFilter(BroadPhaseLayerFilter filter) =>
|
||||
((VehicleCollisionTester)this).SetBroadPhaseLayerFilter(filter);
|
||||
|
||||
/// <inheritdoc cref="VehicleCollisionTester.GetBroadPhaseLayerFilter()"/>
|
||||
public BroadPhaseLayerFilter GetBroadPhaseLayerFilter() =>
|
||||
((VehicleCollisionTester)this).GetBroadPhaseLayerFilter();
|
||||
|
||||
/// <inheritdoc cref="VehicleCollisionTester.SetObjectLayerFilter(ObjectLayerFilter)"/>
|
||||
public void SetObjectLayerFilter(ObjectLayerFilter filter) =>
|
||||
((VehicleCollisionTester)this).SetObjectLayerFilter(filter);
|
||||
|
||||
/// <inheritdoc cref="VehicleCollisionTester.GetObjectLayerFilter()"/>
|
||||
public ObjectLayerFilter GetObjectLayerFilter() => ((VehicleCollisionTester)this).GetObjectLayerFilter();
|
||||
|
||||
/// <inheritdoc cref="VehicleCollisionTester.SetBodyFilter(BodyFilter)"/>
|
||||
public void SetBodyFilter(BodyFilter filter) => ((VehicleCollisionTester)this).SetBodyFilter(filter);
|
||||
|
||||
/// <inheritdoc cref="VehicleCollisionTester.GetBodyFilter()"/>
|
||||
public BodyFilter GetBodyFilter() => ((VehicleCollisionTester)this).GetBodyFilter();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue