mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 21:18:24 +01:00
267 lines
16 KiB
C#
267 lines
16 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
|
|
{
|
|
public static partial class Jolt
|
|
{
|
|
public static unsafe partial class PInvoke
|
|
{
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_Create")]
|
|
public static partial ContactSettings ContactSettings_Create();
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_Destroy")]
|
|
public static partial void ContactSettings_Destroy(ContactSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Combined friction for the body pair (see: PhysicsSystem::SetCombineFriction)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L43">Jolt/Physics/Collision/ContactListener.h:43</see>
|
|
/// <br/>
|
|
/// <c>float mCombinedFriction</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_GetCombinedFriction")]
|
|
public static partial float ContactSettings_GetCombinedFriction(ContactSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Combined friction for the body pair (see: PhysicsSystem::SetCombineFriction)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L43">Jolt/Physics/Collision/ContactListener.h:43</see>
|
|
/// <br/>
|
|
/// <c>float mCombinedFriction</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_SetCombinedFriction")]
|
|
public static partial void ContactSettings_SetCombinedFriction(ContactSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Combined restitution for the body pair (see: PhysicsSystem::SetCombineRestitution)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L44">Jolt/Physics/Collision/ContactListener.h:44</see>
|
|
/// <br/>
|
|
/// <c>float mCombinedRestitution</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_GetCombinedRestitution")]
|
|
public static partial float ContactSettings_GetCombinedRestitution(ContactSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Combined restitution for the body pair (see: PhysicsSystem::SetCombineRestitution)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L44">Jolt/Physics/Collision/ContactListener.h:44</see>
|
|
/// <br/>
|
|
/// <c>float mCombinedRestitution</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_SetCombinedRestitution")]
|
|
public static partial void ContactSettings_SetCombinedRestitution(ContactSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Scale factor for the inverse mass of body 1 (0 = infinite mass, 1 = use original mass, 2 = body has
|
|
/// half the mass). For the same contact pair, you should strive to keep the value the same over time.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L45">Jolt/Physics/Collision/ContactListener.h:45</see>
|
|
/// <br/>
|
|
/// <c>float mInvMassScale1 = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_GetInvMassScale1")]
|
|
public static partial float ContactSettings_GetInvMassScale1(ContactSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Scale factor for the inverse mass of body 1 (0 = infinite mass, 1 = use original mass, 2 = body has
|
|
/// half the mass). For the same contact pair, you should strive to keep the value the same over time.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L45">Jolt/Physics/Collision/ContactListener.h:45</see>
|
|
/// <br/>
|
|
/// <c>float mInvMassScale1 = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_SetInvMassScale1")]
|
|
public static partial void ContactSettings_SetInvMassScale1(ContactSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Scale factor for the inverse inertia of body 1 (usually same as mInvMassScale1)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L46">Jolt/Physics/Collision/ContactListener.h:46</see>
|
|
/// <br/>
|
|
/// <c>float mInvInertiaScale1 = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_GetInvInertiaScale1")]
|
|
public static partial float ContactSettings_GetInvInertiaScale1(ContactSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Scale factor for the inverse inertia of body 1 (usually same as mInvMassScale1)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L46">Jolt/Physics/Collision/ContactListener.h:46</see>
|
|
/// <br/>
|
|
/// <c>float mInvInertiaScale1 = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_SetInvInertiaScale1")]
|
|
public static partial void ContactSettings_SetInvInertiaScale1(ContactSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Scale factor for the inverse mass of body 2 (0 = infinite mass, 1 = use original mass, 2 = body has
|
|
/// half the mass). For the same contact pair, you should strive to keep the value the same over time.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L47">Jolt/Physics/Collision/ContactListener.h:47</see>
|
|
/// <br/>
|
|
/// <c>float mInvMassScale2 = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_GetInvMassScale2")]
|
|
public static partial float ContactSettings_GetInvMassScale2(ContactSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Scale factor for the inverse mass of body 2 (0 = infinite mass, 1 = use original mass, 2 = body has
|
|
/// half the mass). For the same contact pair, you should strive to keep the value the same over time.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L47">Jolt/Physics/Collision/ContactListener.h:47</see>
|
|
/// <br/>
|
|
/// <c>float mInvMassScale2 = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_SetInvMassScale2")]
|
|
public static partial void ContactSettings_SetInvMassScale2(ContactSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Scale factor for the inverse inertia of body 2 (usually same as mInvMassScale2)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L48">Jolt/Physics/Collision/ContactListener.h:48</see>
|
|
/// <br/>
|
|
/// <c>float mInvInertiaScale2 = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_GetInvInertiaScale2")]
|
|
public static partial float ContactSettings_GetInvInertiaScale2(ContactSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Scale factor for the inverse inertia of body 2 (usually same as mInvMassScale2)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L48">Jolt/Physics/Collision/ContactListener.h:48</see>
|
|
/// <br/>
|
|
/// <c>float mInvInertiaScale2 = 1.0f</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_SetInvInertiaScale2")]
|
|
public static partial void ContactSettings_SetInvInertiaScale2(ContactSettings self, float value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// If the contact should be treated as a sensor vs body contact (no collision response)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L49">Jolt/Physics/Collision/ContactListener.h:49</see>
|
|
/// <br/>
|
|
/// <c>bool mIsSensor</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_GetIsSensor")]
|
|
public static partial Brutal.Bool8 ContactSettings_GetIsSensor(ContactSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// If the contact should be treated as a sensor vs body contact (no collision response)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L49">Jolt/Physics/Collision/ContactListener.h:49</see>
|
|
/// <br/>
|
|
/// <c>bool mIsSensor</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_SetIsSensor")]
|
|
public static partial void ContactSettings_SetIsSensor(ContactSettings self, Brutal.Bool8 value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Relative linear surface velocity between the bodies (world space surface velocity of body 2 - world
|
|
/// space surface velocity of body 1), can be used to create a conveyor belt effect
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L50">Jolt/Physics/Collision/ContactListener.h:50</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mRelativeLinearSurfaceVelocity = Vec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_GetRelativeLinearSurfaceVelocity")]
|
|
public static partial float3 ContactSettings_GetRelativeLinearSurfaceVelocity(ContactSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Relative linear surface velocity between the bodies (world space surface velocity of body 2 - world
|
|
/// space surface velocity of body 1), can be used to create a conveyor belt effect
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L50">Jolt/Physics/Collision/ContactListener.h:50</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mRelativeLinearSurfaceVelocity = Vec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_SetRelativeLinearSurfaceVelocity")]
|
|
public static partial void ContactSettings_SetRelativeLinearSurfaceVelocity(ContactSettings self, float3 value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Relative angular surface velocity between the bodies (world space angular surface velocity of body 2
|
|
/// - world space angular surface velocity of body 1). Note that this angular velocity is relative to
|
|
/// the center of mass of body 1, so if you want it relative to body 2's center of mass you need to add
|
|
/// body 2 angular velocity x (body 1 world space center of mass - body 2 world space center of mass) to
|
|
/// mRelativeLinearSurfaceVelocity.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L51">Jolt/Physics/Collision/ContactListener.h:51</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mRelativeAngularSurfaceVelocity = Vec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_GetRelativeAngularSurfaceVelocity")]
|
|
public static partial float3 ContactSettings_GetRelativeAngularSurfaceVelocity(ContactSettings self);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Relative angular surface velocity between the bodies (world space angular surface velocity of body 2
|
|
/// - world space angular surface velocity of body 1). Note that this angular velocity is relative to
|
|
/// the center of mass of body 1, so if you want it relative to body 2's center of mass you need to add
|
|
/// body 2 angular velocity x (body 1 world space center of mass - body 2 world space center of mass) to
|
|
/// mRelativeLinearSurfaceVelocity.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/ContactListener.h#L51">Jolt/Physics/Collision/ContactListener.h:51</see>
|
|
/// <br/>
|
|
/// <c>Vec3 mRelativeAngularSurfaceVelocity = Vec3::sZero()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "ContactSettings_SetRelativeAngularSurfaceVelocity")]
|
|
public static partial void ContactSettings_SetRelativeAngularSurfaceVelocity(ContactSettings self, float3 value);
|
|
}
|
|
}
|
|
}
|