diff --git a/.gitignore b/.gitignore
index 56798b1..5205560 100644
--- a/.gitignore
+++ b/.gitignore
@@ -484,7 +484,7 @@ $RECYCLE.BIN/
*.swp
# Zig
-zig-cache/
+.zig-cache/
src/Box2D.NET.Native/debug
src/Box2D.NET.Native/release
diff --git a/Box2D.NET.Bindgen/Box2D.NET.Bindgen.csproj b/Box2D.NET.Bindgen/Box2D.NET.Bindgen.csproj
index ec0391d..e30d003 100644
--- a/Box2D.NET.Bindgen/Box2D.NET.Bindgen.csproj
+++ b/Box2D.NET.Bindgen/Box2D.NET.Bindgen.csproj
@@ -2,7 +2,7 @@
Exe
- net7.0
+ net9.0
enable
enable
false
@@ -11,7 +11,60 @@
-
+
+
+
+
+
+ $([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture)
+
+
+
+
+
+
+
+ win-x64
+ win-arm64
+ any-windows-any
+
+
+
+
+ linux-x64
+ linux-arm64
+ generic-glibc
+
+
+
+
+ osx-x64
+ osx-arm64
+ any-macos-any
+
+
+
+
+
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Box2D.NET.Bindgen/Program.cs b/Box2D.NET.Bindgen/Program.cs
index c7b5576..af15601 100644
--- a/Box2D.NET.Bindgen/Program.cs
+++ b/Box2D.NET.Bindgen/Program.cs
@@ -1,5 +1,5 @@
-using System.Runtime.CompilerServices;
-using Bindgen.NET;
+using Bindgen.NET;
+using System.Runtime.CompilerServices;
const string library = "box2d";
@@ -7,23 +7,9 @@
{
Namespace = "Box2D.NET.Bindings",
Class = "B2",
-
DllImportPath = library,
- DllFilePaths =
- {
- library,
- "lib" + library,
- "runtimes/linux-x64/native/lib" + library,
- "runtimes/linux-arm64/native/lib" + library,
- "runtimes/osx-x64/native/lib" + library,
- "runtimes/osx-arm64/native/lib" + library,
- "runtimes/win-x64/native/" + library,
- "runtimes/win-arm64/native/" + library
- },
-
- IncludeBuiltInClangHeaders = true,
- IncludeDirectories = { GetNativeDirectory("include") },
-
+ IncludeDirectories = [GetNativeDirectory("include")],
+ SystemIncludeDirectories = [BuildConstants.ZigLibIncludePath, BuildConstants.ZigCLibIncludePath],
TreatInputFileAsRawSourceCode = true,
InputFile = """
#include
@@ -36,7 +22,7 @@
OutputFile = GetOutputDirectory("B2.g.cs"),
RemappedPrefixes =
- {
+ [
("b2AABB_", "AABB"),
("b2Body_", "Body"),
("b2Chain_", "Chain"),
@@ -55,11 +41,10 @@
("b2World_", "World"),
("b2_", ""),
("b2", ""),
- },
+ ],
- GenerateMacros = true,
GenerateExternVariables = true,
- SuppressedWarnings = { "CS9084" }
+ SuppressedWarnings = ["CS9084"]
};
BindingGenerator.Generate(options);
diff --git a/Box2D.NET.Bindings/B2.g.cs b/Box2D.NET.Bindings/B2.g.cs
index 69ec726..e0d449b 100644
--- a/Box2D.NET.Bindings/B2.g.cs
+++ b/Box2D.NET.Bindings/B2.g.cs
@@ -1,3153 +1,5632 @@
#nullable enable
#pragma warning disable CS9084
-namespace Box2D.NET.Bindings
+using System;
+using System.Runtime.InteropServices;
+using System.Runtime.CompilerServices;
+
+namespace Box2D.NET.Bindings;
+public static unsafe partial class B2
{
- public static unsafe partial class B2
+ public partial class BindgenInternal
{
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2AABB_Center", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 AABBCenter(AABB a);
+ public const string DllImportPath = @"box2d";
+ }
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2AABB_Contains", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte AABBContains(AABB a, AABB b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2AABB_Center")]
+ public static extern Vec2 AABBCenter(AABB a);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2AABB_Extents", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 AABBExtents(AABB a);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2AABB_Contains")]
+ public static extern byte AABBContains(AABB a, AABB b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2AABB_IsValid", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte AABBIsValid(AABB aabb);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2AABB_Extents")]
+ public static extern Vec2 AABBExtents(AABB a);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2AABB_Union", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern AABB AABBUnion(AABB a, AABB b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2AABB_Union")]
+ public static extern AABB AABBUnion(AABB a, AABB b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Abs", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 Abs(Vec2 a);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Abs")]
+ public static extern Vec2 Abs(Vec2 a);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2AbsFloat", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float AbsFloat(float a);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2AbsFloat")]
+ public static extern float AbsFloat(float a);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2AbsInt", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int AbsInt(int a);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2AbsInt")]
+ public static extern int AbsInt(int a);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Add", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 Add(Vec2 a, Vec2 b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Add")]
+ public static extern Vec2 Add(Vec2 a, Vec2 b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_ApplyAngularImpulse", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodyApplyAngularImpulse(BodyId bodyId, float impulse, byte wake);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Atan2")]
+ public static extern float Atan2(float y, float x);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_ApplyForce", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodyApplyForce(BodyId bodyId, Vec2 force, Vec2 point, byte wake);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_ApplyAngularImpulse")]
+ public static extern void BodyApplyAngularImpulse(BodyId bodyId, float impulse, byte wake);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_ApplyForceToCenter", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodyApplyForceToCenter(BodyId bodyId, Vec2 force, byte wake);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_ApplyForce")]
+ public static extern void BodyApplyForce(BodyId bodyId, Vec2 force, Vec2 point, byte wake);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_ApplyLinearImpulse", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodyApplyLinearImpulse(BodyId bodyId, Vec2 impulse, Vec2 point, byte wake);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_ApplyForceToCenter")]
+ public static extern void BodyApplyForceToCenter(BodyId bodyId, Vec2 force, byte wake);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_ApplyLinearImpulseToCenter", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodyApplyLinearImpulseToCenter(BodyId bodyId, Vec2 impulse, byte wake);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_ApplyLinearImpulse")]
+ public static extern void BodyApplyLinearImpulse(BodyId bodyId, Vec2 impulse, Vec2 point, byte wake);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_ApplyMassFromShapes", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodyApplyMassFromShapes(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_ApplyLinearImpulseToCenter")]
+ public static extern void BodyApplyLinearImpulseToCenter(BodyId bodyId, Vec2 impulse, byte wake);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_ApplyTorque", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodyApplyTorque(BodyId bodyId, float torque, byte wake);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_ApplyMassFromShapes")]
+ public static extern void BodyApplyMassFromShapes(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_ComputeAABB", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern AABB BodyComputeAABB(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_ApplyTorque")]
+ public static extern void BodyApplyTorque(BodyId bodyId, float torque, byte wake);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_Disable", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodyDisable(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_ComputeAABB")]
+ public static extern AABB BodyComputeAABB(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_Enable", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodyEnable(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_Disable")]
+ public static extern void BodyDisable(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_EnableHitEvents", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodyEnableHitEvents(BodyId bodyId, byte enableHitEvents);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_Enable")]
+ public static extern void BodyEnable(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_EnableSleep", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodyEnableSleep(BodyId bodyId, byte enableSleep);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_EnableContactEvents")]
+ public static extern void BodyEnableContactEvents(BodyId bodyId, byte flag);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetAngularDamping", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float BodyGetAngularDamping(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_EnableHitEvents")]
+ public static extern void BodyEnableHitEvents(BodyId bodyId, byte flag);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetAngularVelocity", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float BodyGetAngularVelocity(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_EnableSleep")]
+ public static extern void BodyEnableSleep(BodyId bodyId, byte enableSleep);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetAutomaticMass", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte BodyGetAutomaticMass(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetAngularDamping")]
+ public static extern float BodyGetAngularDamping(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetContactCapacity", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int BodyGetContactCapacity(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetAngularVelocity")]
+ public static extern float BodyGetAngularVelocity(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetContactData", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int BodyGetContactData(BodyId bodyId, ContactData* contactData, int capacity);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetContactCapacity")]
+ public static extern int BodyGetContactCapacity(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetGravityScale", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float BodyGetGravityScale(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetContactData")]
+ public static extern int BodyGetContactData(BodyId bodyId, ContactData* contactData, int capacity);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetInertiaTensor", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float BodyGetInertiaTensor(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetGravityScale")]
+ public static extern float BodyGetGravityScale(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetJointCount", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int BodyGetJointCount(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetJointCount")]
+ public static extern int BodyGetJointCount(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetJoints", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int BodyGetJoints(BodyId bodyId, JointId* jointArray, int capacity);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetJoints")]
+ public static extern int BodyGetJoints(BodyId bodyId, JointId* jointArray, int capacity);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetLinearDamping", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float BodyGetLinearDamping(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetLinearDamping")]
+ public static extern float BodyGetLinearDamping(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetLinearVelocity", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 BodyGetLinearVelocity(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetLinearVelocity")]
+ public static extern Vec2 BodyGetLinearVelocity(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetLocalCenterOfMass", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 BodyGetLocalCenterOfMass(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetLocalCenterOfMass")]
+ public static extern Vec2 BodyGetLocalCenterOfMass(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetLocalPoint", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 BodyGetLocalPoint(BodyId bodyId, Vec2 worldPoint);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetLocalPoint")]
+ public static extern Vec2 BodyGetLocalPoint(BodyId bodyId, Vec2 worldPoint);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetLocalVector", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 BodyGetLocalVector(BodyId bodyId, Vec2 worldVector);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetLocalPointVelocity")]
+ public static extern Vec2 BodyGetLocalPointVelocity(BodyId bodyId, Vec2 localPoint);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetMass", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float BodyGetMass(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetLocalVector")]
+ public static extern Vec2 BodyGetLocalVector(BodyId bodyId, Vec2 worldVector);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetMassData", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern MassData BodyGetMassData(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetMass")]
+ public static extern float BodyGetMass(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetPosition", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 BodyGetPosition(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetMassData")]
+ public static extern MassData BodyGetMassData(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetRotation", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Rot BodyGetRotation(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetName")]
+ public static extern byte* BodyGetName(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetShapeCount", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int BodyGetShapeCount(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetPosition")]
+ public static extern Vec2 BodyGetPosition(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetShapes", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int BodyGetShapes(BodyId bodyId, ShapeId* shapeArray, int capacity);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetRotation")]
+ public static extern Rot BodyGetRotation(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetSleepThreshold", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float BodyGetSleepThreshold(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetRotationalInertia")]
+ public static extern float BodyGetRotationalInertia(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetTransform", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Transform BodyGetTransform(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetShapeCount")]
+ public static extern int BodyGetShapeCount(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetType", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern BodyType BodyGetType(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetShapes")]
+ public static extern int BodyGetShapes(BodyId bodyId, ShapeId* shapeArray, int capacity);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetUserData", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void* BodyGetUserData(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetSleepThreshold")]
+ public static extern float BodyGetSleepThreshold(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetWorldCenterOfMass", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 BodyGetWorldCenterOfMass(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetTransform")]
+ public static extern Transform BodyGetTransform(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetWorldPoint", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 BodyGetWorldPoint(BodyId bodyId, Vec2 localPoint);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetType")]
+ public static extern BodyType BodyGetType(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetWorldVector", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 BodyGetWorldVector(BodyId bodyId, Vec2 localVector);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetUserData")]
+ public static extern void* BodyGetUserData(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_IsAwake", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte BodyIsAwake(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetWorld")]
+ public static extern WorldId BodyGetWorld(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_IsBullet", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte BodyIsBullet(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetWorldCenterOfMass")]
+ public static extern Vec2 BodyGetWorldCenterOfMass(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_IsEnabled", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte BodyIsEnabled(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetWorldPoint")]
+ public static extern Vec2 BodyGetWorldPoint(BodyId bodyId, Vec2 localPoint);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_IsFixedRotation", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte BodyIsFixedRotation(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetWorldPointVelocity")]
+ public static extern Vec2 BodyGetWorldPointVelocity(BodyId bodyId, Vec2 worldPoint);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_IsSleepEnabled", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte BodyIsSleepEnabled(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_GetWorldVector")]
+ public static extern Vec2 BodyGetWorldVector(BodyId bodyId, Vec2 localVector);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_IsValid", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte BodyIsValid(BodyId id);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_IsAwake")]
+ public static extern byte BodyIsAwake(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetAngularDamping", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodySetAngularDamping(BodyId bodyId, float angularDamping);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_IsBullet")]
+ public static extern byte BodyIsBullet(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetAngularVelocity", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodySetAngularVelocity(BodyId bodyId, float angularVelocity);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_IsEnabled")]
+ public static extern byte BodyIsEnabled(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetAutomaticMass", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodySetAutomaticMass(BodyId bodyId, byte automaticMass);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_IsFixedRotation")]
+ public static extern byte BodyIsFixedRotation(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetAwake", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodySetAwake(BodyId bodyId, byte awake);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_IsSleepEnabled")]
+ public static extern byte BodyIsSleepEnabled(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetBullet", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodySetBullet(BodyId bodyId, byte flag);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_IsValid")]
+ public static extern byte BodyIsValid(BodyId id);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetFixedRotation", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodySetFixedRotation(BodyId bodyId, byte flag);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetAngularDamping")]
+ public static extern void BodySetAngularDamping(BodyId bodyId, float angularDamping);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetGravityScale", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodySetGravityScale(BodyId bodyId, float gravityScale);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetAngularVelocity")]
+ public static extern void BodySetAngularVelocity(BodyId bodyId, float angularVelocity);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetLinearDamping", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodySetLinearDamping(BodyId bodyId, float linearDamping);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetAwake")]
+ public static extern void BodySetAwake(BodyId bodyId, byte awake);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetLinearVelocity", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodySetLinearVelocity(BodyId bodyId, Vec2 linearVelocity);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetBullet")]
+ public static extern void BodySetBullet(BodyId bodyId, byte flag);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetMassData", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodySetMassData(BodyId bodyId, MassData massData);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetFixedRotation")]
+ public static extern void BodySetFixedRotation(BodyId bodyId, byte flag);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetSleepThreshold", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodySetSleepThreshold(BodyId bodyId, float sleepVelocity);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetGravityScale")]
+ public static extern void BodySetGravityScale(BodyId bodyId, float gravityScale);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetTransform", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodySetTransform(BodyId bodyId, Vec2 position, Rot rotation);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetLinearDamping")]
+ public static extern void BodySetLinearDamping(BodyId bodyId, float linearDamping);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetType", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodySetType(BodyId bodyId, BodyType type);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetLinearVelocity")]
+ public static extern void BodySetLinearVelocity(BodyId bodyId, Vec2 linearVelocity);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetUserData", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void BodySetUserData(BodyId bodyId, void* userData);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetMassData")]
+ public static extern void BodySetMassData(BodyId bodyId, MassData massData);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Chain_IsValid", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte ChainIsValid(ChainId id);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetName")]
+ public static extern void BodySetName(BodyId bodyId, byte* name);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Chain_SetFriction", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void ChainSetFriction(ChainId chainId, float friction);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetSleepThreshold")]
+ public static extern void BodySetSleepThreshold(BodyId bodyId, float sleepThreshold);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Chain_SetRestitution", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void ChainSetRestitution(ChainId chainId, float restitution);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetTransform")]
+ public static extern void BodySetTransform(BodyId bodyId, Vec2 position, Rot rotation);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Clamp", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 Clamp(Vec2 v, Vec2 a, Vec2 b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetType")]
+ public static extern void BodySetType(BodyId bodyId, BodyType type);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ClampFloat", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float ClampFloat(float a, float lower, float upper);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Body_SetUserData")]
+ public static extern void BodySetUserData(BodyId bodyId, void* userData);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ClampInt", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int ClampInt(int a, int lower, int upper);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Chain_GetFriction")]
+ public static extern float ChainGetFriction(ChainId chainId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollideCapsuleAndCircle", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Manifold CollideCapsuleAndCircle(Capsule* capsuleA, Transform xfA, Circle* circleB, Transform xfB);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Chain_GetMaterial")]
+ public static extern int ChainGetMaterial(ChainId chainId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollideCapsules", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Manifold CollideCapsules(Capsule* capsuleA, Transform xfA, Capsule* capsuleB, Transform xfB);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Chain_GetRestitution")]
+ public static extern float ChainGetRestitution(ChainId chainId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollideCircles", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Manifold CollideCircles(Circle* circleA, Transform xfA, Circle* circleB, Transform xfB);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Chain_GetSegmentCount")]
+ public static extern int ChainGetSegmentCount(ChainId chainId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollidePolygonAndCapsule", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Manifold CollidePolygonAndCapsule(Polygon* polygonA, Transform xfA, Capsule* capsuleB, Transform xfB);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Chain_GetSegments")]
+ public static extern int ChainGetSegments(ChainId chainId, ShapeId* segmentArray, int capacity);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollidePolygonAndCircle", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Manifold CollidePolygonAndCircle(Polygon* polygonA, Transform xfA, Circle* circleB, Transform xfB);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Chain_GetWorld")]
+ public static extern WorldId ChainGetWorld(ChainId chainId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollidePolygons", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Manifold CollidePolygons(Polygon* polygonA, Transform xfA, Polygon* polygonB, Transform xfB);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Chain_IsValid")]
+ public static extern byte ChainIsValid(ChainId id);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollideSegmentAndCapsule", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Manifold CollideSegmentAndCapsule(Segment* segmentA, Transform xfA, Capsule* capsuleB, Transform xfB);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Chain_SetFriction")]
+ public static extern void ChainSetFriction(ChainId chainId, float friction);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollideSegmentAndCircle", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Manifold CollideSegmentAndCircle(Segment* segmentA, Transform xfA, Circle* circleB, Transform xfB);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Chain_SetMaterial")]
+ public static extern void ChainSetMaterial(ChainId chainId, int material);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollideSegmentAndPolygon", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Manifold CollideSegmentAndPolygon(Segment* segmentA, Transform xfA, Polygon* polygonB, Transform xfB);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Chain_SetRestitution")]
+ public static extern void ChainSetRestitution(ChainId chainId, float restitution);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollideSmoothSegmentAndCapsule", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Manifold CollideSmoothSegmentAndCapsule(SmoothSegment* smoothSegmentA, Transform xfA, Capsule* capsuleB, Transform xfB, DistanceCache* cache);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Clamp")]
+ public static extern Vec2 Clamp(Vec2 v, Vec2 a, Vec2 b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollideSmoothSegmentAndCircle", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Manifold CollideSmoothSegmentAndCircle(SmoothSegment* smoothSegmentA, Transform xfA, Circle* circleB, Transform xfB);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ClampFloat")]
+ public static extern float ClampFloat(float a, float lower, float upper);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollideSmoothSegmentAndPolygon", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Manifold CollideSmoothSegmentAndPolygon(SmoothSegment* smoothSegmentA, Transform xfA, Polygon* polygonB, Transform xfB, DistanceCache* cache);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ClampInt")]
+ public static extern int ClampInt(int a, int lower, int upper);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputeAngularVelocity", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float ComputeAngularVelocity(Rot q1, Rot q2, float inv_h);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollideCapsuleAndCircle")]
+ public static extern Manifold CollideCapsuleAndCircle(Capsule* capsuleA, Transform xfA, Circle* circleB, Transform xfB);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputeCapsuleAABB", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern AABB ComputeCapsuleAABB(Capsule* shape, Transform transform);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollideCapsules")]
+ public static extern Manifold CollideCapsules(Capsule* capsuleA, Transform xfA, Capsule* capsuleB, Transform xfB);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputeCapsuleMass", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern MassData ComputeCapsuleMass(Capsule* shape, float density);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollideChainSegmentAndCapsule")]
+ public static extern Manifold CollideChainSegmentAndCapsule(ChainSegment* segmentA, Transform xfA, Capsule* capsuleB, Transform xfB, SimplexCache* cache);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputeCircleAABB", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern AABB ComputeCircleAABB(Circle* shape, Transform transform);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollideChainSegmentAndCircle")]
+ public static extern Manifold CollideChainSegmentAndCircle(ChainSegment* segmentA, Transform xfA, Circle* circleB, Transform xfB);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputeCircleMass", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern MassData ComputeCircleMass(Circle* shape, float density);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollideChainSegmentAndPolygon")]
+ public static extern Manifold CollideChainSegmentAndPolygon(ChainSegment* segmentA, Transform xfA, Polygon* polygonB, Transform xfB, SimplexCache* cache);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputeHull", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Hull ComputeHull(Vec2* points, int count);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollideCircles")]
+ public static extern Manifold CollideCircles(Circle* circleA, Transform xfA, Circle* circleB, Transform xfB);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputePolygonAABB", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern AABB ComputePolygonAABB(Polygon* shape, Transform transform);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollidePolygonAndCapsule")]
+ public static extern Manifold CollidePolygonAndCapsule(Polygon* polygonA, Transform xfA, Capsule* capsuleB, Transform xfB);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputePolygonMass", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern MassData ComputePolygonMass(Polygon* shape, float density);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollidePolygonAndCircle")]
+ public static extern Manifold CollidePolygonAndCircle(Polygon* polygonA, Transform xfA, Circle* circleB, Transform xfB);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputeSegmentAABB", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern AABB ComputeSegmentAABB(Segment* shape, Transform transform);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollidePolygons")]
+ public static extern Manifold CollidePolygons(Polygon* polygonA, Transform xfA, Polygon* polygonB, Transform xfB);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateBody", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern BodyId CreateBody(WorldId worldId, BodyDef* def);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollideSegmentAndCapsule")]
+ public static extern Manifold CollideSegmentAndCapsule(Segment* segmentA, Transform xfA, Capsule* capsuleB, Transform xfB);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateCapsuleShape", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern ShapeId CreateCapsuleShape(BodyId bodyId, ShapeDef* def, Capsule* capsule);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollideSegmentAndCircle")]
+ public static extern Manifold CollideSegmentAndCircle(Segment* segmentA, Transform xfA, Circle* circleB, Transform xfB);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateChain", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern ChainId CreateChain(BodyId bodyId, ChainDef* def);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CollideSegmentAndPolygon")]
+ public static extern Manifold CollideSegmentAndPolygon(Segment* segmentA, Transform xfA, Polygon* polygonB, Transform xfB);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateCircleShape", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern ShapeId CreateCircleShape(BodyId bodyId, ShapeDef* def, Circle* circle);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputeAngularVelocity")]
+ public static extern float ComputeAngularVelocity(Rot q1, Rot q2, float inv_h);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateDistanceJoint", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern JointId CreateDistanceJoint(WorldId worldId, DistanceJointDef* def);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputeCapsuleAABB")]
+ public static extern AABB ComputeCapsuleAABB(Capsule* shape, Transform transform);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateMotorJoint", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern JointId CreateMotorJoint(WorldId worldId, MotorJointDef* def);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputeCapsuleMass")]
+ public static extern MassData ComputeCapsuleMass(Capsule* shape, float density);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateMouseJoint", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern JointId CreateMouseJoint(WorldId worldId, MouseJointDef* def);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputeCircleAABB")]
+ public static extern AABB ComputeCircleAABB(Circle* shape, Transform transform);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreatePolygonShape", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern ShapeId CreatePolygonShape(BodyId bodyId, ShapeDef* def, Polygon* polygon);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputeCircleMass")]
+ public static extern MassData ComputeCircleMass(Circle* shape, float density);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreatePrismaticJoint", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern JointId CreatePrismaticJoint(WorldId worldId, PrismaticJointDef* def);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputeCosSin")]
+ public static extern CosSin ComputeCosSin(float radians);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateRevoluteJoint", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern JointId CreateRevoluteJoint(WorldId worldId, RevoluteJointDef* def);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputeHull")]
+ public static extern Hull ComputeHull(Vec2* points, int count);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateSegmentShape", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern ShapeId CreateSegmentShape(BodyId bodyId, ShapeDef* def, Segment* segment);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputePolygonAABB")]
+ public static extern AABB ComputePolygonAABB(Polygon* shape, Transform transform);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateTimer", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Timer CreateTimer();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputePolygonMass")]
+ public static extern MassData ComputePolygonMass(Polygon* shape, float density);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateWeldJoint", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern JointId CreateWeldJoint(WorldId worldId, WeldJointDef* def);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputeRotationBetweenUnitVectors")]
+ public static extern Rot ComputeRotationBetweenUnitVectors(Vec2 v1, Vec2 v2);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateWheelJoint", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern JointId CreateWheelJoint(WorldId worldId, WheelJointDef* def);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ComputeSegmentAABB")]
+ public static extern AABB ComputeSegmentAABB(Segment* shape, Transform transform);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateWorld", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern WorldId CreateWorld(WorldDef* def);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateBody")]
+ public static extern BodyId CreateBody(WorldId worldId, BodyDef* def);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Cross", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float Cross(Vec2 a, Vec2 b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateCapsuleShape")]
+ public static extern ShapeId CreateCapsuleShape(BodyId bodyId, ShapeDef* def, Capsule* capsule);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CrossSV", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 CrossSV(float s, Vec2 v);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateChain")]
+ public static extern ChainId CreateChain(BodyId bodyId, ChainDef* def);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CrossVS", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 CrossVS(Vec2 v, float s);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateCircleShape")]
+ public static extern ShapeId CreateCircleShape(BodyId bodyId, ShapeDef* def, Circle* circle);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultBodyDef", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern BodyDef DefaultBodyDef();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateDistanceJoint")]
+ public static extern JointId CreateDistanceJoint(WorldId worldId, DistanceJointDef* def);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultChainDef", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern ChainDef DefaultChainDef();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateMotorJoint")]
+ public static extern JointId CreateMotorJoint(WorldId worldId, MotorJointDef* def);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultDistanceJointDef", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern DistanceJointDef DefaultDistanceJointDef();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateMouseJoint")]
+ public static extern JointId CreateMouseJoint(WorldId worldId, MouseJointDef* def);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultFilter", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Filter DefaultFilter();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateNullJoint")]
+ public static extern JointId CreateNullJoint(WorldId worldId, NullJointDef* def);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultMotorJointDef", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern MotorJointDef DefaultMotorJointDef();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreatePolygonShape")]
+ public static extern ShapeId CreatePolygonShape(BodyId bodyId, ShapeDef* def, Polygon* polygon);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultMouseJointDef", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern MouseJointDef DefaultMouseJointDef();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreatePrismaticJoint")]
+ public static extern JointId CreatePrismaticJoint(WorldId worldId, PrismaticJointDef* def);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultPrismaticJointDef", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern PrismaticJointDef DefaultPrismaticJointDef();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateRevoluteJoint")]
+ public static extern JointId CreateRevoluteJoint(WorldId worldId, RevoluteJointDef* def);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultQueryFilter", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern QueryFilter DefaultQueryFilter();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateSegmentShape")]
+ public static extern ShapeId CreateSegmentShape(BodyId bodyId, ShapeDef* def, Segment* segment);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultRevoluteJointDef", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern RevoluteJointDef DefaultRevoluteJointDef();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateWeldJoint")]
+ public static extern JointId CreateWeldJoint(WorldId worldId, WeldJointDef* def);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultShapeDef", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern ShapeDef DefaultShapeDef();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateWheelJoint")]
+ public static extern JointId CreateWheelJoint(WorldId worldId, WheelJointDef* def);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultWeldJointDef", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern WeldJointDef DefaultWeldJointDef();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CreateWorld")]
+ public static extern WorldId CreateWorld(WorldDef* def);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultWheelJointDef", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern WheelJointDef DefaultWheelJointDef();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Cross")]
+ public static extern float Cross(Vec2 a, Vec2 b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultWorldDef", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern WorldDef DefaultWorldDef();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CrossSV")]
+ public static extern Vec2 CrossSV(float s, Vec2 v);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DestroyBody", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DestroyBody(BodyId bodyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2CrossVS")]
+ public static extern Vec2 CrossVS(Vec2 v, float s);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DestroyChain", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DestroyChain(ChainId chainId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultBodyDef")]
+ public static extern BodyDef DefaultBodyDef();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DestroyJoint", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DestroyJoint(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultChainDef")]
+ public static extern ChainDef DefaultChainDef();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DestroyShape", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DestroyShape(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultDebugDraw")]
+ public static extern DebugDraw DefaultDebugDraw();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DestroyWorld", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DestroyWorld(WorldId worldId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultDistanceJointDef")]
+ public static extern DistanceJointDef DefaultDistanceJointDef();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Distance", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float Distance(Vec2 a, Vec2 b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultExplosionDef")]
+ public static extern ExplosionDef DefaultExplosionDef();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_EnableLimit", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DistanceJointEnableLimit(JointId jointId, byte enableLimit);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultFilter")]
+ public static extern Filter DefaultFilter();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_EnableMotor", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DistanceJointEnableMotor(JointId jointId, byte enableMotor);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultMotorJointDef")]
+ public static extern MotorJointDef DefaultMotorJointDef();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_EnableSpring", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DistanceJointEnableSpring(JointId jointId, byte enableSpring);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultMouseJointDef")]
+ public static extern MouseJointDef DefaultMouseJointDef();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_GetCurrentLength", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float DistanceJointGetCurrentLength(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultNullJointDef")]
+ public static extern NullJointDef DefaultNullJointDef();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_GetDampingRatio", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float DistanceJointGetDampingRatio(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultPrismaticJointDef")]
+ public static extern PrismaticJointDef DefaultPrismaticJointDef();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_GetHertz", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float DistanceJointGetHertz(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultQueryFilter")]
+ public static extern QueryFilter DefaultQueryFilter();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_GetLength", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float DistanceJointGetLength(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultRevoluteJointDef")]
+ public static extern RevoluteJointDef DefaultRevoluteJointDef();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_GetMaxLength", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float DistanceJointGetMaxLength(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultShapeDef")]
+ public static extern ShapeDef DefaultShapeDef();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_GetMaxMotorForce", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float DistanceJointGetMaxMotorForce(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultSurfaceMaterial")]
+ public static extern SurfaceMaterial DefaultSurfaceMaterial();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_GetMinLength", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float DistanceJointGetMinLength(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultWeldJointDef")]
+ public static extern WeldJointDef DefaultWeldJointDef();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_GetMotorForce", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float DistanceJointGetMotorForce(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultWheelJointDef")]
+ public static extern WheelJointDef DefaultWheelJointDef();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_GetMotorSpeed", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float DistanceJointGetMotorSpeed(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DefaultWorldDef")]
+ public static extern WorldDef DefaultWorldDef();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_IsLimitEnabled", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte DistanceJointIsLimitEnabled(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DestroyBody")]
+ public static extern void DestroyBody(BodyId bodyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_IsMotorEnabled", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte DistanceJointIsMotorEnabled(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DestroyChain")]
+ public static extern void DestroyChain(ChainId chainId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_IsSpringEnabled", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte DistanceJointIsSpringEnabled(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DestroyJoint")]
+ public static extern void DestroyJoint(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_SetLength", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DistanceJointSetLength(JointId jointId, float length);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DestroyShape")]
+ public static extern void DestroyShape(ShapeId shapeId, byte updateBodyMass);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_SetLengthRange", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DistanceJointSetLengthRange(JointId jointId, float minLength, float maxLength);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DestroyWorld")]
+ public static extern void DestroyWorld(WorldId worldId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_SetMaxMotorForce", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DistanceJointSetMaxMotorForce(JointId jointId, float force);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Distance")]
+ public static extern float Distance(Vec2 a, Vec2 b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_SetMotorSpeed", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DistanceJointSetMotorSpeed(JointId jointId, float motorSpeed);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_EnableLimit")]
+ public static extern void DistanceJointEnableLimit(JointId jointId, byte enableLimit);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_SetSpringDampingRatio", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DistanceJointSetSpringDampingRatio(JointId jointId, float dampingRatio);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_EnableMotor")]
+ public static extern void DistanceJointEnableMotor(JointId jointId, byte enableMotor);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_SetSpringHertz", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DistanceJointSetSpringHertz(JointId jointId, float hertz);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_EnableSpring")]
+ public static extern void DistanceJointEnableSpring(JointId jointId, byte enableSpring);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceSquared", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float DistanceSquared(Vec2 a, Vec2 b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_GetCurrentLength")]
+ public static extern float DistanceJointGetCurrentLength(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Dot", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float Dot(Vec2 a, Vec2 b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_GetLength")]
+ public static extern float DistanceJointGetLength(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_Create", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern DynamicTree DynamicTreeCreate();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_GetMaxLength")]
+ public static extern float DistanceJointGetMaxLength(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_CreateProxy", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int DynamicTreeCreateProxy(DynamicTree* tree, AABB aabb, uint categoryBits, int userData);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_GetMaxMotorForce")]
+ public static extern float DistanceJointGetMaxMotorForce(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_Destroy", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DynamicTreeDestroy(DynamicTree* tree);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_GetMinLength")]
+ public static extern float DistanceJointGetMinLength(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_DestroyProxy", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DynamicTreeDestroyProxy(DynamicTree* tree, int proxyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_GetMotorForce")]
+ public static extern float DistanceJointGetMotorForce(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_EnlargeProxy", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DynamicTreeEnlargeProxy(DynamicTree* tree, int proxyId, AABB aabb);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_GetMotorSpeed")]
+ public static extern float DistanceJointGetMotorSpeed(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_GetAABB", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern AABB DynamicTreeGetAABB(DynamicTree* tree, int proxyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_GetSpringDampingRatio")]
+ public static extern float DistanceJointGetSpringDampingRatio(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_GetAreaRatio", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float DynamicTreeGetAreaRatio(DynamicTree* tree);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_GetSpringHertz")]
+ public static extern float DistanceJointGetSpringHertz(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_GetByteCount", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int DynamicTreeGetByteCount(DynamicTree* tree);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_IsLimitEnabled")]
+ public static extern byte DistanceJointIsLimitEnabled(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_GetHeight", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int DynamicTreeGetHeight(DynamicTree* tree);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_IsMotorEnabled")]
+ public static extern byte DistanceJointIsMotorEnabled(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_GetMaxBalance", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int DynamicTreeGetMaxBalance(DynamicTree* tree);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_IsSpringEnabled")]
+ public static extern byte DistanceJointIsSpringEnabled(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_GetProxyCount", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int DynamicTreeGetProxyCount(DynamicTree* tree);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_SetLength")]
+ public static extern void DistanceJointSetLength(JointId jointId, float length);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_GetUserData", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int DynamicTreeGetUserData(DynamicTree* tree, int proxyId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_SetLengthRange")]
+ public static extern void DistanceJointSetLengthRange(JointId jointId, float minLength, float maxLength);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_MoveProxy", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DynamicTreeMoveProxy(DynamicTree* tree, int proxyId, AABB aabb);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_SetMaxMotorForce")]
+ public static extern void DistanceJointSetMaxMotorForce(JointId jointId, float force);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_Query", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DynamicTreeQuery(DynamicTree* tree, AABB aabb, uint maskBits, System.IntPtr callback, void* context);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_SetMotorSpeed")]
+ public static extern void DistanceJointSetMotorSpeed(JointId jointId, float motorSpeed);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_RayCast", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DynamicTreeRayCast(DynamicTree* tree, RayCastInput* input, uint maskBits, System.IntPtr callback, void* context);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_SetSpringDampingRatio")]
+ public static extern void DistanceJointSetSpringDampingRatio(JointId jointId, float dampingRatio);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_Rebuild", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int DynamicTreeRebuild(DynamicTree* tree, byte fullBuild);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceJoint_SetSpringHertz")]
+ public static extern void DistanceJointSetSpringHertz(JointId jointId, float hertz);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_RebuildBottomUp", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DynamicTreeRebuildBottomUp(DynamicTree* tree);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DistanceSquared")]
+ public static extern float DistanceSquared(Vec2 a, Vec2 b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_ShapeCast", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DynamicTreeShapeCast(DynamicTree* tree, ShapeCastInput* input, uint maskBits, System.IntPtr callback, void* context);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Dot")]
+ public static extern float Dot(Vec2 a, Vec2 b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_ShiftOrigin", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DynamicTreeShiftOrigin(DynamicTree* tree, Vec2 newOrigin);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_Create")]
+ public static extern DynamicTree DynamicTreeCreate();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_Validate", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void DynamicTreeValidate(DynamicTree* tree);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_CreateProxy")]
+ public static extern int DynamicTreeCreateProxy(DynamicTree* tree, AABB aabb, ulong categoryBits, int userData);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2GetByteCount", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int GetByteCount();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_Destroy")]
+ public static extern void DynamicTreeDestroy(DynamicTree* tree);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2GetInverse22", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Mat22 GetInverse22(Mat22 A);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_DestroyProxy")]
+ public static extern void DynamicTreeDestroyProxy(DynamicTree* tree, int proxyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2GetLengthAndNormalize", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 GetLengthAndNormalize(float* length, Vec2 v);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_EnlargeProxy")]
+ public static extern void DynamicTreeEnlargeProxy(DynamicTree* tree, int proxyId, AABB aabb);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2GetLengthUnitsPerMeter", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float GetLengthUnitsPerMeter();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_GetAABB")]
+ public static extern AABB DynamicTreeGetAABB(DynamicTree* tree, int proxyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2GetMilliseconds", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float GetMilliseconds(Timer* timer);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_GetAreaRatio")]
+ public static extern float DynamicTreeGetAreaRatio(DynamicTree* tree);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2GetMillisecondsAndReset", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float GetMillisecondsAndReset(Timer* timer);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_GetByteCount")]
+ public static extern int DynamicTreeGetByteCount(DynamicTree* tree);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2GetSweepTransform", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Transform GetSweepTransform(Sweep* sweep, float time);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_GetHeight")]
+ public static extern int DynamicTreeGetHeight(DynamicTree* tree);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2GetTicks", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern long GetTicks(Timer* timer);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_GetProxyCount")]
+ public static extern int DynamicTreeGetProxyCount(DynamicTree* tree);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2GetVersion", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Version GetVersion();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_GetUserData")]
+ public static extern int DynamicTreeGetUserData(DynamicTree* tree, int proxyId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2IntegrateRotation", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Rot IntegrateRotation(Rot q1, float deltaAngle);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_MoveProxy")]
+ public static extern void DynamicTreeMoveProxy(DynamicTree* tree, int proxyId, AABB aabb);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2InvMulRot", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Rot InvMulRot(Rot q, Rot r);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_Query")]
+ public static extern TreeStats DynamicTreeQuery(DynamicTree* tree, AABB aabb, ulong maskBits, delegate* unmanaged callback, void* context);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2InvMulTransforms", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Transform InvMulTransforms(Transform A, Transform B);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_RayCast")]
+ public static extern TreeStats DynamicTreeRayCast(DynamicTree* tree, RayCastInput* input, ulong maskBits, delegate* unmanaged callback, void* context);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2InvRotateVector", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 InvRotateVector(Rot q, Vec2 v);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_Rebuild")]
+ public static extern int DynamicTreeRebuild(DynamicTree* tree, byte fullBuild);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2InvTransformPoint", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 InvTransformPoint(Transform t, Vec2 p);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_ShapeCast")]
+ public static extern TreeStats DynamicTreeShapeCast(DynamicTree* tree, ShapeCastInput* input, ulong maskBits, delegate* unmanaged callback, void* context);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2IsNormalized", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte IsNormalized(Rot q);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_Validate")]
+ public static extern void DynamicTreeValidate(DynamicTree* tree);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2IsValid", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte IsValid(float a);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2DynamicTree_ValidateNoEnlarged")]
+ public static extern void DynamicTreeValidateNoEnlarged(DynamicTree* tree);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2IsValidRay", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte IsValidRay(RayCastInput* input);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2GetByteCount")]
+ public static extern int GetByteCount();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetBodyA", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern BodyId JointGetBodyA(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2GetInverse22")]
+ public static extern Mat22 GetInverse22(Mat22 A);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetBodyB", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern BodyId JointGetBodyB(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2GetLengthAndNormalize")]
+ public static extern Vec2 GetLengthAndNormalize(float* length, Vec2 v);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetCollideConnected", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte JointGetCollideConnected(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2GetLengthUnitsPerMeter")]
+ public static extern float GetLengthUnitsPerMeter();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetConstraintForce", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 JointGetConstraintForce(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2GetMilliseconds")]
+ public static extern float GetMilliseconds(ulong ticks);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetConstraintTorque", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float JointGetConstraintTorque(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2GetMillisecondsAndReset")]
+ public static extern float GetMillisecondsAndReset(ulong* ticks);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetLocalAnchorA", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 JointGetLocalAnchorA(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2GetSweepTransform")]
+ public static extern Transform GetSweepTransform(Sweep* sweep, float time);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetLocalAnchorB", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 JointGetLocalAnchorB(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2GetTicks")]
+ public static extern ulong GetTicks();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetType", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern JointType JointGetType(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2GetVersion")]
+ public static extern Version GetVersion();
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetUserData", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void* JointGetUserData(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Hash")]
+ public static extern uint Hash(uint hash, byte* data, int count);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_IsValid", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte JointIsValid(JointId id);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2IntegrateRotation")]
+ public static extern Rot IntegrateRotation(Rot q1, float deltaAngle);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_SetCollideConnected", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void JointSetCollideConnected(JointId jointId, byte shouldCollide);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2InternalAssertFcn")]
+ public static extern int InternalAssertFcn(byte* condition, byte* fileName, int lineNumber);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_SetUserData", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void JointSetUserData(JointId jointId, void* userData);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2InvMulRot")]
+ public static extern Rot InvMulRot(Rot q, Rot r);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_WakeBodies", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void JointWakeBodies(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2InvMulTransforms")]
+ public static extern Transform InvMulTransforms(Transform A, Transform B);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2LeftPerp", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 LeftPerp(Vec2 v);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2InvRotateVector")]
+ public static extern Vec2 InvRotateVector(Rot q, Vec2 v);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Length", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float Length(Vec2 v);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2InvTransformPoint")]
+ public static extern Vec2 InvTransformPoint(Transform t, Vec2 p);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2LengthSquared", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float LengthSquared(Vec2 v);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2IsNormalized")]
+ public static extern byte IsNormalized(Rot q);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Lerp", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 Lerp(Vec2 a, Vec2 b, float t);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2IsValidAABB")]
+ public static extern byte IsValidAABB(AABB aabb);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MakeBox", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Polygon MakeBox(float hx, float hy);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2IsValidFloat")]
+ public static extern byte IsValidFloat(float a);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MakeOffsetBox", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Polygon MakeOffsetBox(float hx, float hy, Vec2 center, float angle);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2IsValidRay")]
+ public static extern byte IsValidRay(RayCastInput* input);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MakeOffsetPolygon", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Polygon MakeOffsetPolygon(Hull* hull, float radius, Transform transform);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2IsValidRotation")]
+ public static extern byte IsValidRotation(Rot q);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MakePolygon", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Polygon MakePolygon(Hull* hull, float radius);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2IsValidVec2")]
+ public static extern byte IsValidVec2(Vec2 v);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MakeProxy", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern DistanceProxy MakeProxy(Vec2* vertices, int count, float radius);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetBodyA")]
+ public static extern BodyId JointGetBodyA(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MakeRot", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Rot MakeRot(float angle);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetBodyB")]
+ public static extern BodyId JointGetBodyB(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MakeRoundedBox", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Polygon MakeRoundedBox(float hx, float hy, float radius);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetCollideConnected")]
+ public static extern byte JointGetCollideConnected(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MakeSquare", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Polygon MakeSquare(float h);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetConstraintForce")]
+ public static extern Vec2 JointGetConstraintForce(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Max", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 Max(Vec2 a, Vec2 b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetConstraintTorque")]
+ public static extern float JointGetConstraintTorque(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MaxFloat", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float MaxFloat(float a, float b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetLocalAnchorA")]
+ public static extern Vec2 JointGetLocalAnchorA(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MaxInt", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int MaxInt(int a, int b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetLocalAnchorB")]
+ public static extern Vec2 JointGetLocalAnchorB(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Min", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 Min(Vec2 a, Vec2 b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetType")]
+ public static extern JointType JointGetType(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MinFloat", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float MinFloat(float a, float b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetUserData")]
+ public static extern void* JointGetUserData(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MinInt", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int MinInt(int a, int b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_GetWorld")]
+ public static extern WorldId JointGetWorld(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_GetAngularOffset", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float MotorJointGetAngularOffset(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_IsValid")]
+ public static extern byte JointIsValid(JointId id);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_GetCorrectionFactor", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float MotorJointGetCorrectionFactor(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_SetCollideConnected")]
+ public static extern void JointSetCollideConnected(JointId jointId, byte shouldCollide);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_GetLinearOffset", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 MotorJointGetLinearOffset(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_SetUserData")]
+ public static extern void JointSetUserData(JointId jointId, void* userData);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_GetMaxForce", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float MotorJointGetMaxForce(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Joint_WakeBodies")]
+ public static extern void JointWakeBodies(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_GetMaxTorque", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float MotorJointGetMaxTorque(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2LeftPerp")]
+ public static extern Vec2 LeftPerp(Vec2 v);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_SetAngularOffset", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void MotorJointSetAngularOffset(JointId jointId, float angularOffset);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Length")]
+ public static extern float Length(Vec2 v);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_SetCorrectionFactor", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void MotorJointSetCorrectionFactor(JointId jointId, float correctionFactor);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2LengthSquared")]
+ public static extern float LengthSquared(Vec2 v);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_SetLinearOffset", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void MotorJointSetLinearOffset(JointId jointId, Vec2 linearOffset);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Lerp")]
+ public static extern Vec2 Lerp(Vec2 a, Vec2 b, float t);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_SetMaxForce", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void MotorJointSetMaxForce(JointId jointId, float maxForce);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2LoadBodyId")]
+ public static extern BodyId LoadBodyId(ulong x);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_SetMaxTorque", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void MotorJointSetMaxTorque(JointId jointId, float maxTorque);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2LoadChainId")]
+ public static extern ChainId LoadChainId(ulong x);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MouseJoint_GetMaxForce", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float MouseJointGetMaxForce(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2LoadJointId")]
+ public static extern JointId LoadJointId(ulong x);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MouseJoint_GetSpringDampingRatio", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float MouseJointGetSpringDampingRatio(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2LoadShapeId")]
+ public static extern ShapeId LoadShapeId(ulong x);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MouseJoint_GetSpringHertz", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float MouseJointGetSpringHertz(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MakeBox")]
+ public static extern Polygon MakeBox(float halfWidth, float halfHeight);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MouseJoint_GetTarget", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 MouseJointGetTarget(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MakeOffsetBox")]
+ public static extern Polygon MakeOffsetBox(float halfWidth, float halfHeight, Vec2 center, Rot rotation);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MouseJoint_SetMaxForce", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void MouseJointSetMaxForce(JointId jointId, float maxForce);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MakeOffsetPolygon")]
+ public static extern Polygon MakeOffsetPolygon(Hull* hull, Vec2 position, Rot rotation);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MouseJoint_SetSpringDampingRatio", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void MouseJointSetSpringDampingRatio(JointId jointId, float dampingRatio);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MakeOffsetRoundedBox")]
+ public static extern Polygon MakeOffsetRoundedBox(float halfWidth, float halfHeight, Vec2 center, Rot rotation, float radius);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MouseJoint_SetSpringHertz", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void MouseJointSetSpringHertz(JointId jointId, float hertz);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MakeOffsetRoundedPolygon")]
+ public static extern Polygon MakeOffsetRoundedPolygon(Hull* hull, Vec2 position, Rot rotation, float radius);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MouseJoint_SetTarget", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void MouseJointSetTarget(JointId jointId, Vec2 target);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MakePolygon")]
+ public static extern Polygon MakePolygon(Hull* hull, float radius);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Mul", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 Mul(Vec2 a, Vec2 b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MakeProxy")]
+ public static extern ShapeProxy MakeProxy(Vec2* vertices, int count, float radius);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MulAdd", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 MulAdd(Vec2 a, float s, Vec2 b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MakeRot")]
+ public static extern Rot MakeRot(float radians);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MulMV", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 MulMV(Mat22 A, Vec2 v);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MakeRoundedBox")]
+ public static extern Polygon MakeRoundedBox(float halfWidth, float halfHeight, float radius);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MulRot", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Rot MulRot(Rot q, Rot r);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MakeSquare")]
+ public static extern Polygon MakeSquare(float halfWidth);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MulSub", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 MulSub(Vec2 a, float s, Vec2 b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Max")]
+ public static extern Vec2 Max(Vec2 a, Vec2 b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MulSV", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 MulSV(float s, Vec2 v);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MaxFloat")]
+ public static extern float MaxFloat(float a, float b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MulTransforms", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Transform MulTransforms(Transform A, Transform B);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MaxInt")]
+ public static extern int MaxInt(int a, int b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Neg", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 Neg(Vec2 a);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Min")]
+ public static extern Vec2 Min(Vec2 a, Vec2 b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2NLerp", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Rot NLerp(Rot q1, Rot q2, float t);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MinFloat")]
+ public static extern float MinFloat(float a, float b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Normalize", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 Normalize(Vec2 v);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MinInt")]
+ public static extern int MinInt(int a, int b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2NormalizeChecked", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 NormalizeChecked(Vec2 v);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_GetAngularOffset")]
+ public static extern float MotorJointGetAngularOffset(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2NormalizeRot", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Rot NormalizeRot(Rot q);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_GetCorrectionFactor")]
+ public static extern float MotorJointGetCorrectionFactor(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PointInCapsule", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte PointInCapsule(Vec2 point, Capsule* shape);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_GetLinearOffset")]
+ public static extern Vec2 MotorJointGetLinearOffset(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PointInCircle", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte PointInCircle(Vec2 point, Circle* shape);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_GetMaxForce")]
+ public static extern float MotorJointGetMaxForce(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PointInPolygon", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte PointInPolygon(Vec2 point, Polygon* shape);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_GetMaxTorque")]
+ public static extern float MotorJointGetMaxTorque(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_EnableLimit", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void PrismaticJointEnableLimit(JointId jointId, byte enableLimit);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_SetAngularOffset")]
+ public static extern void MotorJointSetAngularOffset(JointId jointId, float angularOffset);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_EnableMotor", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void PrismaticJointEnableMotor(JointId jointId, byte enableMotor);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_SetCorrectionFactor")]
+ public static extern void MotorJointSetCorrectionFactor(JointId jointId, float correctionFactor);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_EnableSpring", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void PrismaticJointEnableSpring(JointId jointId, byte enableSpring);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_SetLinearOffset")]
+ public static extern void MotorJointSetLinearOffset(JointId jointId, Vec2 linearOffset);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_GetLowerLimit", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float PrismaticJointGetLowerLimit(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_SetMaxForce")]
+ public static extern void MotorJointSetMaxForce(JointId jointId, float maxForce);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_GetMaxMotorForce", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float PrismaticJointGetMaxMotorForce(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MotorJoint_SetMaxTorque")]
+ public static extern void MotorJointSetMaxTorque(JointId jointId, float maxTorque);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_GetMotorForce", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float PrismaticJointGetMotorForce(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MouseJoint_GetMaxForce")]
+ public static extern float MouseJointGetMaxForce(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_GetMotorSpeed", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float PrismaticJointGetMotorSpeed(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MouseJoint_GetSpringDampingRatio")]
+ public static extern float MouseJointGetSpringDampingRatio(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_GetSpringDampingRatio", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float PrismaticJointGetSpringDampingRatio(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MouseJoint_GetSpringHertz")]
+ public static extern float MouseJointGetSpringHertz(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_GetSpringHertz", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float PrismaticJointGetSpringHertz(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MouseJoint_GetTarget")]
+ public static extern Vec2 MouseJointGetTarget(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_GetUpperLimit", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float PrismaticJointGetUpperLimit(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MouseJoint_SetMaxForce")]
+ public static extern void MouseJointSetMaxForce(JointId jointId, float maxForce);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_IsLimitEnabled", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte PrismaticJointIsLimitEnabled(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MouseJoint_SetSpringDampingRatio")]
+ public static extern void MouseJointSetSpringDampingRatio(JointId jointId, float dampingRatio);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_IsMotorEnabled", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte PrismaticJointIsMotorEnabled(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MouseJoint_SetSpringHertz")]
+ public static extern void MouseJointSetSpringHertz(JointId jointId, float hertz);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_IsSpringEnabled", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte PrismaticJointIsSpringEnabled(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MouseJoint_SetTarget")]
+ public static extern void MouseJointSetTarget(JointId jointId, Vec2 target);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_SetLimits", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void PrismaticJointSetLimits(JointId jointId, float lower, float upper);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Mul")]
+ public static extern Vec2 Mul(Vec2 a, Vec2 b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_SetMaxMotorForce", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void PrismaticJointSetMaxMotorForce(JointId jointId, float force);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MulAdd")]
+ public static extern Vec2 MulAdd(Vec2 a, float s, Vec2 b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_SetMotorSpeed", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void PrismaticJointSetMotorSpeed(JointId jointId, float motorSpeed);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MulMV")]
+ public static extern Vec2 MulMV(Mat22 A, Vec2 v);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_SetSpringDampingRatio", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void PrismaticJointSetSpringDampingRatio(JointId jointId, float dampingRatio);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MulRot")]
+ public static extern Rot MulRot(Rot q, Rot r);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_SetSpringHertz", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void PrismaticJointSetSpringHertz(JointId jointId, float hertz);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MulSub")]
+ public static extern Vec2 MulSub(Vec2 a, float s, Vec2 b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RayCastCapsule", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern CastOutput RayCastCapsule(RayCastInput* input, Capsule* shape);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MulSV")]
+ public static extern Vec2 MulSV(float s, Vec2 v);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RayCastCircle", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern CastOutput RayCastCircle(RayCastInput* input, Circle* shape);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2MulTransforms")]
+ public static extern Transform MulTransforms(Transform A, Transform B);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RayCastPolygon", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern CastOutput RayCastPolygon(RayCastInput* input, Polygon* shape);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Neg")]
+ public static extern Vec2 Neg(Vec2 a);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RayCastSegment", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern CastOutput RayCastSegment(RayCastInput* input, Segment* shape, byte oneSided);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2NLerp")]
+ public static extern Rot NLerp(Rot q1, Rot q2, float t);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RelativeAngle", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float RelativeAngle(Rot b, Rot a);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Normalize")]
+ public static extern Vec2 Normalize(Vec2 v);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_EnableLimit", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void RevoluteJointEnableLimit(JointId jointId, byte enableLimit);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2NormalizeRot")]
+ public static extern Rot NormalizeRot(Rot q);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_EnableMotor", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void RevoluteJointEnableMotor(JointId jointId, byte enableMotor);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PointInCapsule")]
+ public static extern byte PointInCapsule(Vec2 point, Capsule* shape);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_EnableSpring", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void RevoluteJointEnableSpring(JointId jointId, byte enableSpring);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PointInCircle")]
+ public static extern byte PointInCircle(Vec2 point, Circle* shape);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_GetAngle", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float RevoluteJointGetAngle(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PointInPolygon")]
+ public static extern byte PointInPolygon(Vec2 point, Polygon* shape);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_GetLowerLimit", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float RevoluteJointGetLowerLimit(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_EnableLimit")]
+ public static extern void PrismaticJointEnableLimit(JointId jointId, byte enableLimit);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_GetMaxMotorTorque", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float RevoluteJointGetMaxMotorTorque(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_EnableMotor")]
+ public static extern void PrismaticJointEnableMotor(JointId jointId, byte enableMotor);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_GetMotorSpeed", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float RevoluteJointGetMotorSpeed(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_EnableSpring")]
+ public static extern void PrismaticJointEnableSpring(JointId jointId, byte enableSpring);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_GetMotorTorque", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float RevoluteJointGetMotorTorque(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_GetLowerLimit")]
+ public static extern float PrismaticJointGetLowerLimit(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_GetSpringDampingRatio", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float RevoluteJointGetSpringDampingRatio(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_GetMaxMotorForce")]
+ public static extern float PrismaticJointGetMaxMotorForce(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_GetSpringHertz", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float RevoluteJointGetSpringHertz(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_GetMotorForce")]
+ public static extern float PrismaticJointGetMotorForce(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_GetUpperLimit", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float RevoluteJointGetUpperLimit(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_GetMotorSpeed")]
+ public static extern float PrismaticJointGetMotorSpeed(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_IsLimitEnabled", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte RevoluteJointIsLimitEnabled(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_GetSpeed")]
+ public static extern float PrismaticJointGetSpeed(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_IsMotorEnabled", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte RevoluteJointIsMotorEnabled(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_GetSpringDampingRatio")]
+ public static extern float PrismaticJointGetSpringDampingRatio(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_SetLimits", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void RevoluteJointSetLimits(JointId jointId, float lower, float upper);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_GetSpringHertz")]
+ public static extern float PrismaticJointGetSpringHertz(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_SetMaxMotorTorque", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void RevoluteJointSetMaxMotorTorque(JointId jointId, float torque);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_GetTranslation")]
+ public static extern float PrismaticJointGetTranslation(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_SetMotorSpeed", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void RevoluteJointSetMotorSpeed(JointId jointId, float motorSpeed);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_GetUpperLimit")]
+ public static extern float PrismaticJointGetUpperLimit(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_SetSpringDampingRatio", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void RevoluteJointSetSpringDampingRatio(JointId jointId, float dampingRatio);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_IsLimitEnabled")]
+ public static extern byte PrismaticJointIsLimitEnabled(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_SetSpringHertz", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void RevoluteJointSetSpringHertz(JointId jointId, float hertz);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_IsMotorEnabled")]
+ public static extern byte PrismaticJointIsMotorEnabled(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RightPerp", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 RightPerp(Vec2 v);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_IsSpringEnabled")]
+ public static extern byte PrismaticJointIsSpringEnabled(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Rot_GetAngle", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float RotGetAngle(Rot q);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_SetLimits")]
+ public static extern void PrismaticJointSetLimits(JointId jointId, float lower, float upper);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Rot_GetXAxis", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 RotGetXAxis(Rot q);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_SetMaxMotorForce")]
+ public static extern void PrismaticJointSetMaxMotorForce(JointId jointId, float force);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Rot_GetYAxis", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 RotGetYAxis(Rot q);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_SetMotorSpeed")]
+ public static extern void PrismaticJointSetMotorSpeed(JointId jointId, float motorSpeed);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Rot_IsValid", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte RotIsValid(Rot q);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_SetSpringDampingRatio")]
+ public static extern void PrismaticJointSetSpringDampingRatio(JointId jointId, float dampingRatio);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RotateVector", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 RotateVector(Rot q, Vec2 v);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2PrismaticJoint_SetSpringHertz")]
+ public static extern void PrismaticJointSetSpringHertz(JointId jointId, float hertz);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2SegmentDistance", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern SegmentDistanceResult SegmentDistance(Vec2 p1, Vec2 q1, Vec2 p2, Vec2 q2);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RayCastCapsule")]
+ public static extern CastOutput RayCastCapsule(RayCastInput* input, Capsule* shape);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2SetAllocator", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void SetAllocator(System.IntPtr allocFcn, System.IntPtr freeFcn);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RayCastCircle")]
+ public static extern CastOutput RayCastCircle(RayCastInput* input, Circle* shape);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2SetAssertFcn", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void SetAssertFcn(System.IntPtr assertFcn);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RayCastPolygon")]
+ public static extern CastOutput RayCastPolygon(RayCastInput* input, Polygon* shape);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2SetLengthUnitsPerMeter", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void SetLengthUnitsPerMeter(float lengthUnits);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RayCastSegment")]
+ public static extern CastOutput RayCastSegment(RayCastInput* input, Segment* shape, byte oneSided);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_AreContactEventsEnabled", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte ShapeAreContactEventsEnabled(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RelativeAngle")]
+ public static extern float RelativeAngle(Rot b, Rot a);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_AreHitEventsEnabled", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte ShapeAreHitEventsEnabled(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_EnableLimit")]
+ public static extern void RevoluteJointEnableLimit(JointId jointId, byte enableLimit);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_ArePreSolveEventsEnabled", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte ShapeArePreSolveEventsEnabled(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_EnableMotor")]
+ public static extern void RevoluteJointEnableMotor(JointId jointId, byte enableMotor);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_AreSensorEventsEnabled", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte ShapeAreSensorEventsEnabled(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_EnableSpring")]
+ public static extern void RevoluteJointEnableSpring(JointId jointId, byte enableSpring);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_EnableContactEvents", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void ShapeEnableContactEvents(ShapeId shapeId, byte flag);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_GetAngle")]
+ public static extern float RevoluteJointGetAngle(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_EnableHitEvents", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void ShapeEnableHitEvents(ShapeId shapeId, byte flag);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_GetLowerLimit")]
+ public static extern float RevoluteJointGetLowerLimit(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_EnablePreSolveEvents", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void ShapeEnablePreSolveEvents(ShapeId shapeId, byte flag);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_GetMaxMotorTorque")]
+ public static extern float RevoluteJointGetMaxMotorTorque(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_EnableSensorEvents", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void ShapeEnableSensorEvents(ShapeId shapeId, byte flag);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_GetMotorSpeed")]
+ public static extern float RevoluteJointGetMotorSpeed(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetAABB", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern AABB ShapeGetAABB(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_GetMotorTorque")]
+ public static extern float RevoluteJointGetMotorTorque(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetBody", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern BodyId ShapeGetBody(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_GetSpringDampingRatio")]
+ public static extern float RevoluteJointGetSpringDampingRatio(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetCapsule", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Capsule ShapeGetCapsule(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_GetSpringHertz")]
+ public static extern float RevoluteJointGetSpringHertz(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetCircle", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Circle ShapeGetCircle(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_GetUpperLimit")]
+ public static extern float RevoluteJointGetUpperLimit(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetClosestPoint", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 ShapeGetClosestPoint(ShapeId shapeId, Vec2 target);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_IsLimitEnabled")]
+ public static extern byte RevoluteJointIsLimitEnabled(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetContactCapacity", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int ShapeGetContactCapacity(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_IsMotorEnabled")]
+ public static extern byte RevoluteJointIsMotorEnabled(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetContactData", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern int ShapeGetContactData(ShapeId shapeId, ContactData* contactData, int capacity);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_IsSpringEnabled")]
+ public static extern byte RevoluteJointIsSpringEnabled(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetDensity", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float ShapeGetDensity(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_SetLimits")]
+ public static extern void RevoluteJointSetLimits(JointId jointId, float lower, float upper);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetFilter", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Filter ShapeGetFilter(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_SetMaxMotorTorque")]
+ public static extern void RevoluteJointSetMaxMotorTorque(JointId jointId, float torque);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetFriction", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float ShapeGetFriction(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_SetMotorSpeed")]
+ public static extern void RevoluteJointSetMotorSpeed(JointId jointId, float motorSpeed);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetParentChain", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern ChainId ShapeGetParentChain(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_SetSpringDampingRatio")]
+ public static extern void RevoluteJointSetSpringDampingRatio(JointId jointId, float dampingRatio);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetPolygon", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Polygon ShapeGetPolygon(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RevoluteJoint_SetSpringHertz")]
+ public static extern void RevoluteJointSetSpringHertz(JointId jointId, float hertz);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetRestitution", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float ShapeGetRestitution(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RightPerp")]
+ public static extern Vec2 RightPerp(Vec2 v);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetSegment", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Segment ShapeGetSegment(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Rot_GetAngle")]
+ public static extern float RotGetAngle(Rot q);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetSmoothSegment", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern SmoothSegment ShapeGetSmoothSegment(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Rot_GetXAxis")]
+ public static extern Vec2 RotGetXAxis(Rot q);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetType", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern ShapeType ShapeGetType(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Rot_GetYAxis")]
+ public static extern Vec2 RotGetYAxis(Rot q);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetUserData", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void* ShapeGetUserData(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2RotateVector")]
+ public static extern Vec2 RotateVector(Rot q, Vec2 v);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_IsSensor", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte ShapeIsSensor(ShapeId shapeId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2SegmentDistance")]
+ public static extern SegmentDistanceResult SegmentDistance(Vec2 p1, Vec2 q1, Vec2 p2, Vec2 q2);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_IsValid", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte ShapeIsValid(ShapeId id);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2SetAllocator")]
+ public static extern void SetAllocator(delegate* unmanaged allocFcn, delegate* unmanaged freeFcn);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_RayCast", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern CastOutput ShapeRayCast(ShapeId shapeId, Vec2 origin, Vec2 translation);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2SetAssertFcn")]
+ public static extern void SetAssertFcn(delegate* unmanaged assertFcn);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetCapsule", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void ShapeSetCapsule(ShapeId shapeId, Capsule* capsule);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2SetLengthUnitsPerMeter")]
+ public static extern void SetLengthUnitsPerMeter(float lengthUnits);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetCircle", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void ShapeSetCircle(ShapeId shapeId, Circle* circle);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_AreContactEventsEnabled")]
+ public static extern byte ShapeAreContactEventsEnabled(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetDensity", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void ShapeSetDensity(ShapeId shapeId, float density);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_AreHitEventsEnabled")]
+ public static extern byte ShapeAreHitEventsEnabled(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetFilter", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void ShapeSetFilter(ShapeId shapeId, Filter filter);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_ArePreSolveEventsEnabled")]
+ public static extern byte ShapeArePreSolveEventsEnabled(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetFriction", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void ShapeSetFriction(ShapeId shapeId, float friction);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_EnableContactEvents")]
+ public static extern void ShapeEnableContactEvents(ShapeId shapeId, byte flag);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetPolygon", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void ShapeSetPolygon(ShapeId shapeId, Polygon* polygon);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_EnableHitEvents")]
+ public static extern void ShapeEnableHitEvents(ShapeId shapeId, byte flag);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetRestitution", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void ShapeSetRestitution(ShapeId shapeId, float restitution);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_EnablePreSolveEvents")]
+ public static extern void ShapeEnablePreSolveEvents(ShapeId shapeId, byte flag);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetSegment", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void ShapeSetSegment(ShapeId shapeId, Segment* segment);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetAABB")]
+ public static extern AABB ShapeGetAABB(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetUserData", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void ShapeSetUserData(ShapeId shapeId, void* userData);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetBody")]
+ public static extern BodyId ShapeGetBody(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_TestPoint", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte ShapeTestPoint(ShapeId shapeId, Vec2 point);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetCapsule")]
+ public static extern Capsule ShapeGetCapsule(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ShapeCast", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern CastOutput ShapeCast(ShapeCastPairInput* input);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetChainSegment")]
+ public static extern ChainSegment ShapeGetChainSegment(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ShapeCastCapsule", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern CastOutput ShapeCastCapsule(ShapeCastInput* input, Capsule* shape);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetCircle")]
+ public static extern Circle ShapeGetCircle(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ShapeCastCircle", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern CastOutput ShapeCastCircle(ShapeCastInput* input, Circle* shape);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetClosestPoint")]
+ public static extern Vec2 ShapeGetClosestPoint(ShapeId shapeId, Vec2 target);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ShapeCastPolygon", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern CastOutput ShapeCastPolygon(ShapeCastInput* input, Polygon* shape);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetContactCapacity")]
+ public static extern int ShapeGetContactCapacity(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ShapeCastSegment", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern CastOutput ShapeCastSegment(ShapeCastInput* input, Segment* shape);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetContactData")]
+ public static extern int ShapeGetContactData(ShapeId shapeId, ContactData* contactData, int capacity);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ShapeDistance", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern DistanceOutput ShapeDistance(DistanceCache* cache, DistanceInput* input, Simplex* simplexes, int simplexCapacity);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetDensity")]
+ public static extern float ShapeGetDensity(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2SleepMilliseconds", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void SleepMilliseconds(int milliseconds);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetFilter")]
+ public static extern Filter ShapeGetFilter(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Solve22", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 Solve22(Mat22 A, Vec2 b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetFriction")]
+ public static extern float ShapeGetFriction(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Sub", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 Sub(Vec2 a, Vec2 b);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetMassData")]
+ public static extern MassData ShapeGetMassData(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2TimeOfImpact", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern TOIOutput TimeOfImpact(TOIInput* input);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetMaterial")]
+ public static extern int ShapeGetMaterial(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2TransformPoint", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 TransformPoint(Transform t, Vec2 p);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetParentChain")]
+ public static extern ChainId ShapeGetParentChain(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2TransformPolygon", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Polygon TransformPolygon(Transform transform, Polygon* polygon);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetPolygon")]
+ public static extern Polygon ShapeGetPolygon(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2UnwindAngle", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float UnwindAngle(float angle);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetRestitution")]
+ public static extern float ShapeGetRestitution(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ValidateHull", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte ValidateHull(Hull* hull);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetSegment")]
+ public static extern Segment ShapeGetSegment(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Vec2_IsValid", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte Vec2IsValid(Vec2 v);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetSensorCapacity")]
+ public static extern int ShapeGetSensorCapacity(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WeldJoint_GetAngularDampingRatio", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float WeldJointGetAngularDampingRatio(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetSensorOverlaps")]
+ public static extern int ShapeGetSensorOverlaps(ShapeId shapeId, ShapeId* overlaps, int capacity);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WeldJoint_GetAngularHertz", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float WeldJointGetAngularHertz(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetType")]
+ public static extern ShapeType ShapeGetType(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WeldJoint_GetLinearDampingRatio", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float WeldJointGetLinearDampingRatio(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetUserData")]
+ public static extern void* ShapeGetUserData(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WeldJoint_GetLinearHertz", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float WeldJointGetLinearHertz(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_GetWorld")]
+ public static extern WorldId ShapeGetWorld(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WeldJoint_SetAngularDampingRatio", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WeldJointSetAngularDampingRatio(JointId jointId, float dampingRatio);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_IsSensor")]
+ public static extern byte ShapeIsSensor(ShapeId shapeId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WeldJoint_SetAngularHertz", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WeldJointSetAngularHertz(JointId jointId, float hertz);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_IsValid")]
+ public static extern byte ShapeIsValid(ShapeId id);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WeldJoint_SetLinearDampingRatio", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WeldJointSetLinearDampingRatio(JointId jointId, float dampingRatio);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_RayCast")]
+ public static extern CastOutput ShapeRayCast(ShapeId shapeId, RayCastInput* input);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WeldJoint_SetLinearHertz", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WeldJointSetLinearHertz(JointId jointId, float hertz);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetCapsule")]
+ public static extern void ShapeSetCapsule(ShapeId shapeId, Capsule* capsule);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_EnableLimit", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WheelJointEnableLimit(JointId jointId, byte enableLimit);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetCircle")]
+ public static extern void ShapeSetCircle(ShapeId shapeId, Circle* circle);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_EnableMotor", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WheelJointEnableMotor(JointId jointId, byte enableMotor);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetDensity")]
+ public static extern void ShapeSetDensity(ShapeId shapeId, float density, byte updateBodyMass);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_EnableSpring", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WheelJointEnableSpring(JointId jointId, byte enableSpring);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetFilter")]
+ public static extern void ShapeSetFilter(ShapeId shapeId, Filter filter);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_GetLowerLimit", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float WheelJointGetLowerLimit(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetFriction")]
+ public static extern void ShapeSetFriction(ShapeId shapeId, float friction);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_GetMaxMotorTorque", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float WheelJointGetMaxMotorTorque(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetMaterial")]
+ public static extern void ShapeSetMaterial(ShapeId shapeId, int material);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_GetMotorSpeed", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float WheelJointGetMotorSpeed(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetPolygon")]
+ public static extern void ShapeSetPolygon(ShapeId shapeId, Polygon* polygon);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_GetMotorTorque", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float WheelJointGetMotorTorque(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetRestitution")]
+ public static extern void ShapeSetRestitution(ShapeId shapeId, float restitution);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_GetSpringDampingRatio", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float WheelJointGetSpringDampingRatio(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetSegment")]
+ public static extern void ShapeSetSegment(ShapeId shapeId, Segment* segment);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_GetSpringHertz", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float WheelJointGetSpringHertz(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_SetUserData")]
+ public static extern void ShapeSetUserData(ShapeId shapeId, void* userData);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_GetUpperLimit", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern float WheelJointGetUpperLimit(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Shape_TestPoint")]
+ public static extern byte ShapeTestPoint(ShapeId shapeId, Vec2 point);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_IsLimitEnabled", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte WheelJointIsLimitEnabled(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ShapeCast")]
+ public static extern CastOutput ShapeCast(ShapeCastPairInput* input);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_IsMotorEnabled", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte WheelJointIsMotorEnabled(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ShapeCastCapsule")]
+ public static extern CastOutput ShapeCastCapsule(ShapeCastInput* input, Capsule* shape);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_IsSpringEnabled", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte WheelJointIsSpringEnabled(JointId jointId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ShapeCastCircle")]
+ public static extern CastOutput ShapeCastCircle(ShapeCastInput* input, Circle* shape);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_SetLimits", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WheelJointSetLimits(JointId jointId, float lower, float upper);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ShapeCastPolygon")]
+ public static extern CastOutput ShapeCastPolygon(ShapeCastInput* input, Polygon* shape);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_SetMaxMotorTorque", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WheelJointSetMaxMotorTorque(JointId jointId, float torque);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ShapeCastSegment")]
+ public static extern CastOutput ShapeCastSegment(ShapeCastInput* input, Segment* shape);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_SetMotorSpeed", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WheelJointSetMotorSpeed(JointId jointId, float motorSpeed);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ShapeDistance")]
+ public static extern DistanceOutput ShapeDistance(SimplexCache* cache, DistanceInput* input, Simplex* simplexes, int simplexCapacity);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_SetSpringDampingRatio", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WheelJointSetSpringDampingRatio(JointId jointId, float dampingRatio);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Solve22")]
+ public static extern Vec2 Solve22(Mat22 A, Vec2 b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_SetSpringHertz", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WheelJointSetSpringHertz(JointId jointId, float hertz);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2StoreBodyId")]
+ public static extern ulong StoreBodyId(BodyId id);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_CastCapsule", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldCastCapsule(WorldId worldId, Capsule* capsule, Transform originTransform, Vec2 translation, QueryFilter filter, System.IntPtr fcn, void* context);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2StoreChainId")]
+ public static extern ulong StoreChainId(ChainId id);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_CastCircle", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldCastCircle(WorldId worldId, Circle* circle, Transform originTransform, Vec2 translation, QueryFilter filter, System.IntPtr fcn, void* context);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2StoreJointId")]
+ public static extern ulong StoreJointId(JointId id);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_CastPolygon", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldCastPolygon(WorldId worldId, Polygon* polygon, Transform originTransform, Vec2 translation, QueryFilter filter, System.IntPtr fcn, void* context);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2StoreShapeId")]
+ public static extern ulong StoreShapeId(ShapeId id);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_CastRay", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldCastRay(WorldId worldId, Vec2 origin, Vec2 translation, QueryFilter filter, System.IntPtr fcn, void* context);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Sub")]
+ public static extern Vec2 Sub(Vec2 a, Vec2 b);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_CastRayClosest", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern RayResult WorldCastRayClosest(WorldId worldId, Vec2 origin, Vec2 translation, QueryFilter filter);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2TimeOfImpact")]
+ public static extern TOIOutput TimeOfImpact(TOIInput* input);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_Draw", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldDraw(WorldId worldId, DebugDraw* draw);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2TransformPoint")]
+ public static extern Vec2 TransformPoint(Transform t, Vec2 p);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_DumpMemoryStats", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldDumpMemoryStats(WorldId worldId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2TransformPolygon")]
+ public static extern Polygon TransformPolygon(Transform transform, Polygon* polygon);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_EnableContinuous", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldEnableContinuous(WorldId worldId, byte flag);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2UnwindAngle")]
+ public static extern float UnwindAngle(float radians);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_EnableSleeping", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldEnableSleeping(WorldId worldId, byte flag);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2UnwindLargeAngle")]
+ public static extern float UnwindLargeAngle(float radians);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_EnableWarmStarting", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldEnableWarmStarting(WorldId worldId, byte flag);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2ValidateHull")]
+ public static extern byte ValidateHull(Hull* hull);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_Explode", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldExplode(WorldId worldId, Vec2 position, float radius, float impulse);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WeldJoint_GetAngularDampingRatio")]
+ public static extern float WeldJointGetAngularDampingRatio(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_GetBodyEvents", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern BodyEvents WorldGetBodyEvents(WorldId worldId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WeldJoint_GetAngularHertz")]
+ public static extern float WeldJointGetAngularHertz(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_GetContactEvents", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern ContactEvents WorldGetContactEvents(WorldId worldId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WeldJoint_GetLinearDampingRatio")]
+ public static extern float WeldJointGetLinearDampingRatio(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_GetCounters", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Counters WorldGetCounters(WorldId worldId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WeldJoint_GetLinearHertz")]
+ public static extern float WeldJointGetLinearHertz(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_GetGravity", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Vec2 WorldGetGravity(WorldId worldId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WeldJoint_GetReferenceAngle")]
+ public static extern float WeldJointGetReferenceAngle(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_GetProfile", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern Profile WorldGetProfile(WorldId worldId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WeldJoint_SetAngularDampingRatio")]
+ public static extern void WeldJointSetAngularDampingRatio(JointId jointId, float dampingRatio);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_GetSensorEvents", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern SensorEvents WorldGetSensorEvents(WorldId worldId);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WeldJoint_SetAngularHertz")]
+ public static extern void WeldJointSetAngularHertz(JointId jointId, float hertz);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_IsValid", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern byte WorldIsValid(WorldId id);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WeldJoint_SetLinearDampingRatio")]
+ public static extern void WeldJointSetLinearDampingRatio(JointId jointId, float dampingRatio);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_OverlapAABB", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldOverlapAABB(WorldId worldId, AABB aabb, QueryFilter filter, System.IntPtr fcn, void* context);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WeldJoint_SetLinearHertz")]
+ public static extern void WeldJointSetLinearHertz(JointId jointId, float hertz);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_OverlapCapsule", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldOverlapCapsule(WorldId worldId, Capsule* capsule, Transform transform, QueryFilter filter, System.IntPtr fcn, void* context);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WeldJoint_SetReferenceAngle")]
+ public static extern void WeldJointSetReferenceAngle(JointId jointId, float angleInRadians);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_OverlapCircle", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldOverlapCircle(WorldId worldId, Circle* circle, Transform transform, QueryFilter filter, System.IntPtr fcn, void* context);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_EnableLimit")]
+ public static extern void WheelJointEnableLimit(JointId jointId, byte enableLimit);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_OverlapPolygon", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldOverlapPolygon(WorldId worldId, Polygon* polygon, Transform transform, QueryFilter filter, System.IntPtr fcn, void* context);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_EnableMotor")]
+ public static extern void WheelJointEnableMotor(JointId jointId, byte enableMotor);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_SetContactTuning", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldSetContactTuning(WorldId worldId, float hertz, float dampingRatio, float pushVelocity);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_EnableSpring")]
+ public static extern void WheelJointEnableSpring(JointId jointId, byte enableSpring);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_SetCustomFilterCallback", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldSetCustomFilterCallback(WorldId worldId, System.IntPtr fcn, void* context);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_GetLowerLimit")]
+ public static extern float WheelJointGetLowerLimit(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_SetGravity", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldSetGravity(WorldId worldId, Vec2 gravity);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_GetMaxMotorTorque")]
+ public static extern float WheelJointGetMaxMotorTorque(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_SetHitEventThreshold", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldSetHitEventThreshold(WorldId worldId, float value);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_GetMotorSpeed")]
+ public static extern float WheelJointGetMotorSpeed(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_SetPreSolveCallback", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldSetPreSolveCallback(WorldId worldId, System.IntPtr fcn, void* context);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_GetMotorTorque")]
+ public static extern float WheelJointGetMotorTorque(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_SetRestitutionThreshold", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldSetRestitutionThreshold(WorldId worldId, float value);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_GetSpringDampingRatio")]
+ public static extern float WheelJointGetSpringDampingRatio(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_Step", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void WorldStep(WorldId worldId, float timeStep, int subStepCount);
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_GetSpringHertz")]
+ public static extern float WheelJointGetSpringHertz(JointId jointId);
- [System.Runtime.InteropServices.DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Yield", CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
- public static extern void Yield();
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_GetUpperLimit")]
+ public static extern float WheelJointGetUpperLimit(JointId jointId);
- public partial struct AABB
- {
- public Vec2 lowerBound;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_IsLimitEnabled")]
+ public static extern byte WheelJointIsLimitEnabled(JointId jointId);
- public Vec2 upperBound;
- }
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_IsMotorEnabled")]
+ public static extern byte WheelJointIsMotorEnabled(JointId jointId);
- public partial struct BodyDef
- {
- public BodyType type;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_IsSpringEnabled")]
+ public static extern byte WheelJointIsSpringEnabled(JointId jointId);
- public Vec2 position;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_SetLimits")]
+ public static extern void WheelJointSetLimits(JointId jointId, float lower, float upper);
- public Rot rotation;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_SetMaxMotorTorque")]
+ public static extern void WheelJointSetMaxMotorTorque(JointId jointId, float torque);
- public Vec2 linearVelocity;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_SetMotorSpeed")]
+ public static extern void WheelJointSetMotorSpeed(JointId jointId, float motorSpeed);
- public float angularVelocity;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_SetSpringDampingRatio")]
+ public static extern void WheelJointSetSpringDampingRatio(JointId jointId, float dampingRatio);
- public float linearDamping;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2WheelJoint_SetSpringHertz")]
+ public static extern void WheelJointSetSpringHertz(JointId jointId, float hertz);
- public float angularDamping;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_CastCapsule")]
+ public static extern TreeStats WorldCastCapsule(WorldId worldId, Capsule* capsule, Transform originTransform, Vec2 translation, QueryFilter filter, delegate* unmanaged fcn, void* context);
- public float gravityScale;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_CastCircle")]
+ public static extern TreeStats WorldCastCircle(WorldId worldId, Circle* circle, Transform originTransform, Vec2 translation, QueryFilter filter, delegate* unmanaged fcn, void* context);
- public float sleepThreshold;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_CastPolygon")]
+ public static extern TreeStats WorldCastPolygon(WorldId worldId, Polygon* polygon, Transform originTransform, Vec2 translation, QueryFilter filter, delegate* unmanaged fcn, void* context);
- public void* userData;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_CastRay")]
+ public static extern TreeStats WorldCastRay(WorldId worldId, Vec2 origin, Vec2 translation, QueryFilter filter, delegate* unmanaged fcn, void* context);
- public byte enableSleep;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_CastRayClosest")]
+ public static extern RayResult WorldCastRayClosest(WorldId worldId, Vec2 origin, Vec2 translation, QueryFilter filter);
- public byte isAwake;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_Draw")]
+ public static extern void WorldDraw(WorldId worldId, DebugDraw* draw);
- public byte fixedRotation;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_DumpMemoryStats")]
+ public static extern void WorldDumpMemoryStats(WorldId worldId);
- public byte isBullet;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_EnableContinuous")]
+ public static extern void WorldEnableContinuous(WorldId worldId, byte flag);
- public byte isEnabled;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_EnableSleeping")]
+ public static extern void WorldEnableSleeping(WorldId worldId, byte flag);
- public byte automaticMass;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_EnableSpeculative")]
+ public static extern void WorldEnableSpeculative(WorldId worldId, byte flag);
- public byte allowFastRotation;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_EnableWarmStarting")]
+ public static extern void WorldEnableWarmStarting(WorldId worldId, byte flag);
- public int internalValue;
- }
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_Explode")]
+ public static extern void WorldExplode(WorldId worldId, ExplosionDef* explosionDef);
- public partial struct BodyEvents
- {
- public BodyMoveEvent* moveEvents;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_GetAwakeBodyCount")]
+ public static extern int WorldGetAwakeBodyCount(WorldId worldId);
- public int moveCount;
- }
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_GetBodyEvents")]
+ public static extern BodyEvents WorldGetBodyEvents(WorldId worldId);
- public partial struct BodyId
- {
- public int index1;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_GetContactEvents")]
+ public static extern ContactEvents WorldGetContactEvents(WorldId worldId);
- public ushort world0;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_GetCounters")]
+ public static extern Counters WorldGetCounters(WorldId worldId);
- public ushort revision;
- }
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_GetGravity")]
+ public static extern Vec2 WorldGetGravity(WorldId worldId);
- public partial struct BodyMoveEvent
- {
- public Transform transform;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_GetHitEventThreshold")]
+ public static extern float WorldGetHitEventThreshold(WorldId worldId);
- public BodyId bodyId;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_GetMaximumLinearSpeed")]
+ public static extern float WorldGetMaximumLinearSpeed(WorldId worldId);
- public void* userData;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_GetProfile")]
+ public static extern Profile WorldGetProfile(WorldId worldId);
- public byte fellAsleep;
- }
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_GetRestitutionThreshold")]
+ public static extern float WorldGetRestitutionThreshold(WorldId worldId);
- public partial struct Capsule
- {
- public Vec2 center1;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_GetSensorEvents")]
+ public static extern SensorEvents WorldGetSensorEvents(WorldId worldId);
- public Vec2 center2;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_GetUserData")]
+ public static extern void* WorldGetUserData(WorldId worldId);
- public float radius;
- }
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_IsContinuousEnabled")]
+ public static extern byte WorldIsContinuousEnabled(WorldId worldId);
- public partial struct CastOutput
- {
- public Vec2 normal;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_IsSleepingEnabled")]
+ public static extern byte WorldIsSleepingEnabled(WorldId worldId);
- public Vec2 point;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_IsValid")]
+ public static extern byte WorldIsValid(WorldId id);
- public float fraction;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_IsWarmStartingEnabled")]
+ public static extern byte WorldIsWarmStartingEnabled(WorldId worldId);
- public int iterations;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_OverlapAABB")]
+ public static extern TreeStats WorldOverlapAABB(WorldId worldId, AABB aabb, QueryFilter filter, delegate* unmanaged fcn, void* context);
- public byte hit;
- }
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_OverlapCapsule")]
+ public static extern TreeStats WorldOverlapCapsule(WorldId worldId, Capsule* capsule, Transform transform, QueryFilter filter, delegate* unmanaged fcn, void* context);
- public partial struct ChainDef
- {
- public void* userData;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_OverlapCircle")]
+ public static extern TreeStats WorldOverlapCircle(WorldId worldId, Circle* circle, Transform transform, QueryFilter filter, delegate* unmanaged fcn, void* context);
- public Vec2* points;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_OverlapPoint")]
+ public static extern TreeStats WorldOverlapPoint(WorldId worldId, Vec2 point, Transform transform, QueryFilter filter, delegate* unmanaged fcn, void* context);
- public int count;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_OverlapPolygon")]
+ public static extern TreeStats WorldOverlapPolygon(WorldId worldId, Polygon* polygon, Transform transform, QueryFilter filter, delegate* unmanaged fcn, void* context);
- public float friction;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_RebuildStaticTree")]
+ public static extern void WorldRebuildStaticTree(WorldId worldId);
- public float restitution;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_SetContactTuning")]
+ public static extern void WorldSetContactTuning(WorldId worldId, float hertz, float dampingRatio, float pushSpeed);
- public Filter filter;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_SetCustomFilterCallback")]
+ public static extern void WorldSetCustomFilterCallback(WorldId worldId, delegate* unmanaged fcn, void* context);
- public byte isLoop;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_SetFrictionCallback")]
+ public static extern void WorldSetFrictionCallback(WorldId worldId, delegate* unmanaged callback);
- public int internalValue;
- }
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_SetGravity")]
+ public static extern void WorldSetGravity(WorldId worldId, Vec2 gravity);
- public partial struct ChainId
- {
- public int index1;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_SetHitEventThreshold")]
+ public static extern void WorldSetHitEventThreshold(WorldId worldId, float value);
- public ushort world0;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_SetJointTuning")]
+ public static extern void WorldSetJointTuning(WorldId worldId, float hertz, float dampingRatio);
- public ushort revision;
- }
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_SetMaximumLinearSpeed")]
+ public static extern void WorldSetMaximumLinearSpeed(WorldId worldId, float maximumLinearSpeed);
- public partial struct Circle
- {
- public Vec2 center;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_SetPreSolveCallback")]
+ public static extern void WorldSetPreSolveCallback(WorldId worldId, delegate* unmanaged fcn, void* context);
- public float radius;
- }
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_SetRestitutionCallback")]
+ public static extern void WorldSetRestitutionCallback(WorldId worldId, delegate* unmanaged callback);
- public partial struct ContactBeginTouchEvent
- {
- public ShapeId shapeIdA;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_SetRestitutionThreshold")]
+ public static extern void WorldSetRestitutionThreshold(WorldId worldId, float value);
- public ShapeId shapeIdB;
- }
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_SetUserData")]
+ public static extern void WorldSetUserData(WorldId worldId, void* userData);
- public partial struct ContactData
- {
- public ShapeId shapeIdA;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2World_Step")]
+ public static extern void WorldStep(WorldId worldId, float timeStep, int subStepCount);
- public ShapeId shapeIdB;
+ [DllImport(BindgenInternal.DllImportPath, EntryPoint = "b2Yield")]
+ public static extern void Yield();
- public Manifold manifold;
- }
+ public enum BodyType : uint
+ {
+ staticBody = 0,
+ kinematicBody = 1,
+ dynamicBody = 2,
+ bodyTypeCount = 3
+ }
- public partial struct ContactEndTouchEvent
- {
- public ShapeId shapeIdA;
+ public enum HexColor : uint
+ {
+ colorAliceBlue = 15792383,
+ colorAntiqueWhite = 16444375,
+ colorAqua = 65535,
+ colorAquamarine = 8388564,
+ colorAzure = 15794175,
+ colorBeige = 16119260,
+ colorBisque = 16770244,
+ colorBlack = 0,
+ colorBlanchedAlmond = 16772045,
+ colorBlue = 255,
+ colorBlueViolet = 9055202,
+ colorBrown = 10824234,
+ colorBurlywood = 14596231,
+ colorCadetBlue = 6266528,
+ colorChartreuse = 8388352,
+ colorChocolate = 13789470,
+ colorCoral = 16744272,
+ colorCornflowerBlue = 6591981,
+ colorCornsilk = 16775388,
+ colorCrimson = 14423100,
+ colorCyan = 65535,
+ colorDarkBlue = 139,
+ colorDarkCyan = 35723,
+ colorDarkGoldenRod = 12092939,
+ colorDarkGray = 11119017,
+ colorDarkGreen = 25600,
+ colorDarkKhaki = 12433259,
+ colorDarkMagenta = 9109643,
+ colorDarkOliveGreen = 5597999,
+ colorDarkOrange = 16747520,
+ colorDarkOrchid = 10040012,
+ colorDarkRed = 9109504,
+ colorDarkSalmon = 15308410,
+ colorDarkSeaGreen = 9419919,
+ colorDarkSlateBlue = 4734347,
+ colorDarkSlateGray = 3100495,
+ colorDarkTurquoise = 52945,
+ colorDarkViolet = 9699539,
+ colorDeepPink = 16716947,
+ colorDeepSkyBlue = 49151,
+ colorDimGray = 6908265,
+ colorDodgerBlue = 2003199,
+ colorFireBrick = 11674146,
+ colorFloralWhite = 16775920,
+ colorForestGreen = 2263842,
+ colorFuchsia = 16711935,
+ colorGainsboro = 14474460,
+ colorGhostWhite = 16316671,
+ colorGold = 16766720,
+ colorGoldenRod = 14329120,
+ colorGray = 8421504,
+ colorGreen = 32768,
+ colorGreenYellow = 11403055,
+ colorHoneyDew = 15794160,
+ colorHotPink = 16738740,
+ colorIndianRed = 13458524,
+ colorIndigo = 4915330,
+ colorIvory = 16777200,
+ colorKhaki = 15787660,
+ colorLavender = 15132410,
+ colorLavenderBlush = 16773365,
+ colorLawnGreen = 8190976,
+ colorLemonChiffon = 16775885,
+ colorLightBlue = 11393254,
+ colorLightCoral = 15761536,
+ colorLightCyan = 14745599,
+ colorLightGoldenRodYellow = 16448210,
+ colorLightGray = 13882323,
+ colorLightGreen = 9498256,
+ colorLightPink = 16758465,
+ colorLightSalmon = 16752762,
+ colorLightSeaGreen = 2142890,
+ colorLightSkyBlue = 8900346,
+ colorLightSlateGray = 7833753,
+ colorLightSteelBlue = 11584734,
+ colorLightYellow = 16777184,
+ colorLime = 65280,
+ colorLimeGreen = 3329330,
+ colorLinen = 16445670,
+ colorMagenta = 16711935,
+ colorMaroon = 8388608,
+ colorMediumAquaMarine = 6737322,
+ colorMediumBlue = 205,
+ colorMediumOrchid = 12211667,
+ colorMediumPurple = 9662683,
+ colorMediumSeaGreen = 3978097,
+ colorMediumSlateBlue = 8087790,
+ colorMediumSpringGreen = 64154,
+ colorMediumTurquoise = 4772300,
+ colorMediumVioletRed = 13047173,
+ colorMidnightBlue = 1644912,
+ colorMintCream = 16121850,
+ colorMistyRose = 16770273,
+ colorMoccasin = 16770229,
+ colorNavajoWhite = 16768685,
+ colorNavy = 128,
+ colorOldLace = 16643558,
+ colorOlive = 8421376,
+ colorOliveDrab = 7048739,
+ colorOrange = 16753920,
+ colorOrangeRed = 16729344,
+ colorOrchid = 14315734,
+ colorPaleGoldenRod = 15657130,
+ colorPaleGreen = 10025880,
+ colorPaleTurquoise = 11529966,
+ colorPaleVioletRed = 14381203,
+ colorPapayaWhip = 16773077,
+ colorPeachPuff = 16767673,
+ colorPeru = 13468991,
+ colorPink = 16761035,
+ colorPlum = 14524637,
+ colorPowderBlue = 11591910,
+ colorPurple = 8388736,
+ colorRebeccaPurple = 6697881,
+ colorRed = 16711680,
+ colorRosyBrown = 12357519,
+ colorRoyalBlue = 4286945,
+ colorSaddleBrown = 9127187,
+ colorSalmon = 16416882,
+ colorSandyBrown = 16032864,
+ colorSeaGreen = 3050327,
+ colorSeaShell = 16774638,
+ colorSienna = 10506797,
+ colorSilver = 12632256,
+ colorSkyBlue = 8900331,
+ colorSlateBlue = 6970061,
+ colorSlateGray = 7372944,
+ colorSnow = 16775930,
+ colorSpringGreen = 65407,
+ colorSteelBlue = 4620980,
+ colorTan = 13808780,
+ colorTeal = 32896,
+ colorThistle = 14204888,
+ colorTomato = 16737095,
+ colorTurquoise = 4251856,
+ colorViolet = 15631086,
+ colorWheat = 16113331,
+ colorWhite = 16777215,
+ colorWhiteSmoke = 16119285,
+ colorYellow = 16776960,
+ colorYellowGreen = 10145074,
+ colorBox2DRed = 14430514,
+ colorBox2DBlue = 3190463,
+ colorBox2DGreen = 9226532,
+ colorBox2DYellow = 16772748
+ }
- public ShapeId shapeIdB;
- }
+ public enum JointType : uint
+ {
+ distanceJoint = 0,
+ motorJoint = 1,
+ mouseJoint = 2,
+ nullJoint = 3,
+ prismaticJoint = 4,
+ revoluteJoint = 5,
+ weldJoint = 6,
+ wheelJoint = 7
+ }
- public partial struct ContactEvents
- {
- public ContactBeginTouchEvent* beginEvents;
+ public enum ShapeType : uint
+ {
+ circleShape = 0,
+ capsuleShape = 1,
+ segmentShape = 2,
+ polygonShape = 3,
+ chainSegmentShape = 4,
+ shapeTypeCount = 5
+ }
- public ContactEndTouchEvent* endEvents;
+ public enum TOIState : uint
+ {
+ toiStateUnknown = 0,
+ toiStateFailed = 1,
+ toiStateOverlapped = 2,
+ toiStateHit = 3,
+ toiStateSeparated = 4
+ }
- public ContactHitEvent* hitEvents;
+ public const BodyType staticBody = BodyType.staticBody;
- public int beginCount;
+ public const BodyType kinematicBody = BodyType.kinematicBody;
- public int endCount;
+ public const BodyType dynamicBody = BodyType.dynamicBody;
- public int hitCount;
- }
+ public const BodyType bodyTypeCount = BodyType.bodyTypeCount;
- public partial struct ContactHitEvent
- {
- public ShapeId shapeIdA;
+ public const HexColor colorAliceBlue = HexColor.colorAliceBlue;
- public ShapeId shapeIdB;
+ public const HexColor colorAntiqueWhite = HexColor.colorAntiqueWhite;
- public Vec2 point;
+ public const HexColor colorAqua = HexColor.colorAqua;
- public Vec2 normal;
+ public const HexColor colorAquamarine = HexColor.colorAquamarine;
- public float approachSpeed;
- }
+ public const HexColor colorAzure = HexColor.colorAzure;
- public partial struct Counters
- {
- public int staticBodyCount;
+ public const HexColor colorBeige = HexColor.colorBeige;
- public int bodyCount;
+ public const HexColor colorBisque = HexColor.colorBisque;
- public int shapeCount;
+ public const HexColor colorBlack = HexColor.colorBlack;
- public int contactCount;
+ public const HexColor colorBlanchedAlmond = HexColor.colorBlanchedAlmond;
- public int jointCount;
+ public const HexColor colorBlue = HexColor.colorBlue;
- public int islandCount;
+ public const HexColor colorBlueViolet = HexColor.colorBlueViolet;
- public int stackUsed;
+ public const HexColor colorBrown = HexColor.colorBrown;
- public int staticTreeHeight;
+ public const HexColor colorBurlywood = HexColor.colorBurlywood;
- public int treeHeight;
+ public const HexColor colorCadetBlue = HexColor.colorCadetBlue;
- public int byteCount;
+ public const HexColor colorChartreuse = HexColor.colorChartreuse;
- public int taskCount;
+ public const HexColor colorChocolate = HexColor.colorChocolate;
- public fixed int colorCounts[12];
- }
+ public const HexColor colorCoral = HexColor.colorCoral;
- public partial struct DebugDraw
- {
- public System.IntPtr DrawPolygon; // delegate*
+ public const HexColor colorCornflowerBlue = HexColor.colorCornflowerBlue;
- public System.IntPtr DrawSolidPolygon; // delegate*
+ public const HexColor colorCornsilk = HexColor.colorCornsilk;
- public System.IntPtr DrawCircle; // delegate*
+ public const HexColor colorCrimson = HexColor.colorCrimson;
- public System.IntPtr DrawSolidCircle; // delegate*
+ public const HexColor colorCyan = HexColor.colorCyan;
- public System.IntPtr DrawCapsule; // delegate*
+ public const HexColor colorDarkBlue = HexColor.colorDarkBlue;
- public System.IntPtr DrawSolidCapsule; // delegate*
+ public const HexColor colorDarkCyan = HexColor.colorDarkCyan;
- public System.IntPtr DrawSegment; // delegate*
+ public const HexColor colorDarkGoldenRod = HexColor.colorDarkGoldenRod;
- public System.IntPtr DrawTransform; // delegate*
+ public const HexColor colorDarkGray = HexColor.colorDarkGray;
- public System.IntPtr DrawPoint; // delegate*
+ public const HexColor colorDarkGreen = HexColor.colorDarkGreen;
- public System.IntPtr DrawString; // delegate*
+ public const HexColor colorDarkKhaki = HexColor.colorDarkKhaki;
- public AABB drawingBounds;
+ public const HexColor colorDarkMagenta = HexColor.colorDarkMagenta;
- public byte useDrawingBounds;
+ public const HexColor colorDarkOliveGreen = HexColor.colorDarkOliveGreen;
- public byte drawShapes;
+ public const HexColor colorDarkOrange = HexColor.colorDarkOrange;
- public byte drawJoints;
+ public const HexColor colorDarkOrchid = HexColor.colorDarkOrchid;
- public byte drawJointExtras;
+ public const HexColor colorDarkRed = HexColor.colorDarkRed;
- public byte drawAABBs;
+ public const HexColor colorDarkSalmon = HexColor.colorDarkSalmon;
- public byte drawMass;
+ public const HexColor colorDarkSeaGreen = HexColor.colorDarkSeaGreen;
- public byte drawContacts;
+ public const HexColor colorDarkSlateBlue = HexColor.colorDarkSlateBlue;
- public byte drawGraphColors;
+ public const HexColor colorDarkSlateGray = HexColor.colorDarkSlateGray;
- public byte drawContactNormals;
+ public const HexColor colorDarkTurquoise = HexColor.colorDarkTurquoise;
- public byte drawContactImpulses;
+ public const HexColor colorDarkViolet = HexColor.colorDarkViolet;
- public byte drawFrictionImpulses;
+ public const HexColor colorDeepPink = HexColor.colorDeepPink;
- public void* context;
- }
+ public const HexColor colorDeepSkyBlue = HexColor.colorDeepSkyBlue;
- public partial struct DistanceCache
- {
- public ushort count;
+ public const HexColor colorDimGray = HexColor.colorDimGray;
- public fixed byte indexA[3];
+ public const HexColor colorDodgerBlue = HexColor.colorDodgerBlue;
- public fixed byte indexB[3];
- }
+ public const HexColor colorFireBrick = HexColor.colorFireBrick;
- public partial struct DistanceInput
- {
- public DistanceProxy proxyA;
+ public const HexColor colorFloralWhite = HexColor.colorFloralWhite;
- public DistanceProxy proxyB;
+ public const HexColor colorForestGreen = HexColor.colorForestGreen;
- public Transform transformA;
+ public const HexColor colorFuchsia = HexColor.colorFuchsia;
- public Transform transformB;
+ public const HexColor colorGainsboro = HexColor.colorGainsboro;
- public byte useRadii;
- }
+ public const HexColor colorGhostWhite = HexColor.colorGhostWhite;
- public partial struct DistanceJointDef
- {
- public BodyId bodyIdA;
+ public const HexColor colorGold = HexColor.colorGold;
- public BodyId bodyIdB;
+ public const HexColor colorGoldenRod = HexColor.colorGoldenRod;
- public Vec2 localAnchorA;
+ public const HexColor colorGray = HexColor.colorGray;
- public Vec2 localAnchorB;
+ public const HexColor colorGreen = HexColor.colorGreen;
- public float length;
+ public const HexColor colorGreenYellow = HexColor.colorGreenYellow;
- public byte enableSpring;
+ public const HexColor colorHoneyDew = HexColor.colorHoneyDew;
- public float hertz;
+ public const HexColor colorHotPink = HexColor.colorHotPink;
- public float dampingRatio;
+ public const HexColor colorIndianRed = HexColor.colorIndianRed;
- public byte enableLimit;
+ public const HexColor colorIndigo = HexColor.colorIndigo;
- public float minLength;
+ public const HexColor colorIvory = HexColor.colorIvory;
- public float maxLength;
+ public const HexColor colorKhaki = HexColor.colorKhaki;
- public byte enableMotor;
+ public const HexColor colorLavender = HexColor.colorLavender;
- public float maxMotorForce;
+ public const HexColor colorLavenderBlush = HexColor.colorLavenderBlush;
- public float motorSpeed;
+ public const HexColor colorLawnGreen = HexColor.colorLawnGreen;
- public byte collideConnected;
+ public const HexColor colorLemonChiffon = HexColor.colorLemonChiffon;
- public void* userData;
+ public const HexColor colorLightBlue = HexColor.colorLightBlue;
- public int internalValue;
- }
+ public const HexColor colorLightCoral = HexColor.colorLightCoral;
- public partial struct DistanceOutput
- {
- public Vec2 pointA;
+ public const HexColor colorLightCyan = HexColor.colorLightCyan;
- public Vec2 pointB;
+ public const HexColor colorLightGoldenRodYellow = HexColor.colorLightGoldenRodYellow;
- public float distance;
+ public const HexColor colorLightGray = HexColor.colorLightGray;
- public int iterations;
+ public const HexColor colorLightGreen = HexColor.colorLightGreen;
- public int simplexCount;
- }
+ public const HexColor colorLightPink = HexColor.colorLightPink;
- public partial struct DistanceProxy
- {
- public points_FixedBuffer points;
+ public const HexColor colorLightSalmon = HexColor.colorLightSalmon;
- public int count;
+ public const HexColor colorLightSeaGreen = HexColor.colorLightSeaGreen;
- public float radius;
+ public const HexColor colorLightSkyBlue = HexColor.colorLightSkyBlue;
- public partial struct points_FixedBuffer
- {
- public Vec2 Item0;
+ public const HexColor colorLightSlateGray = HexColor.colorLightSlateGray;
- public Vec2 Item1;
+ public const HexColor colorLightSteelBlue = HexColor.colorLightSteelBlue;
- public Vec2 Item2;
+ public const HexColor colorLightYellow = HexColor.colorLightYellow;
- public Vec2 Item3;
+ public const HexColor colorLime = HexColor.colorLime;
- public Vec2 Item4;
+ public const HexColor colorLimeGreen = HexColor.colorLimeGreen;
- public Vec2 Item5;
+ public const HexColor colorLinen = HexColor.colorLinen;
- public Vec2 Item6;
+ public const HexColor colorMagenta = HexColor.colorMagenta;
- public Vec2 Item7;
+ public const HexColor colorMaroon = HexColor.colorMaroon;
- public ref Vec2 this[int index] => ref AsSpan()[index];
+ public const HexColor colorMediumAquaMarine = HexColor.colorMediumAquaMarine;
- [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
- public System.Span AsSpan() => System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref Item0, 8);
- }
- }
+ public const HexColor colorMediumBlue = HexColor.colorMediumBlue;
- public partial struct DynamicTree
- {
- public TreeNode* nodes;
+ public const HexColor colorMediumOrchid = HexColor.colorMediumOrchid;
- public int root;
+ public const HexColor colorMediumPurple = HexColor.colorMediumPurple;
- public int nodeCount;
+ public const HexColor colorMediumSeaGreen = HexColor.colorMediumSeaGreen;
- public int nodeCapacity;
+ public const HexColor colorMediumSlateBlue = HexColor.colorMediumSlateBlue;
- public int freeList;
+ public const HexColor colorMediumSpringGreen = HexColor.colorMediumSpringGreen;
- public int proxyCount;
+ public const HexColor colorMediumTurquoise = HexColor.colorMediumTurquoise;
- public int* leafIndices;
+ public const HexColor colorMediumVioletRed = HexColor.colorMediumVioletRed;
- public AABB* leafBoxes;
+ public const HexColor colorMidnightBlue = HexColor.colorMidnightBlue;
- public Vec2* leafCenters;
+ public const HexColor colorMintCream = HexColor.colorMintCream;
- public int* binIndices;
+ public const HexColor colorMistyRose = HexColor.colorMistyRose;
- public int rebuildCapacity;
- }
+ public const HexColor colorMoccasin = HexColor.colorMoccasin;
- public partial struct Filter
- {
- public uint categoryBits;
+ public const HexColor colorNavajoWhite = HexColor.colorNavajoWhite;
- public uint maskBits;
+ public const HexColor colorNavy = HexColor.colorNavy;
- public int groupIndex;
- }
+ public const HexColor colorOldLace = HexColor.colorOldLace;
- public partial struct Hull
- {
- public points_FixedBuffer points;
+ public const HexColor colorOlive = HexColor.colorOlive;
- public int count;
+ public const HexColor colorOliveDrab = HexColor.colorOliveDrab;
- public partial struct points_FixedBuffer
- {
- public Vec2 Item0;
+ public const HexColor colorOrange = HexColor.colorOrange;
- public Vec2 Item1;
+ public const HexColor colorOrangeRed = HexColor.colorOrangeRed;
- public Vec2 Item2;
+ public const HexColor colorOrchid = HexColor.colorOrchid;
- public Vec2 Item3;
+ public const HexColor colorPaleGoldenRod = HexColor.colorPaleGoldenRod;
- public Vec2 Item4;
+ public const HexColor colorPaleGreen = HexColor.colorPaleGreen;
- public Vec2 Item5;
+ public const HexColor colorPaleTurquoise = HexColor.colorPaleTurquoise;
- public Vec2 Item6;
+ public const HexColor colorPaleVioletRed = HexColor.colorPaleVioletRed;
- public Vec2 Item7;
+ public const HexColor colorPapayaWhip = HexColor.colorPapayaWhip;
- public ref Vec2 this[int index] => ref AsSpan()[index];
+ public const HexColor colorPeachPuff = HexColor.colorPeachPuff;
- [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
- public System.Span AsSpan() => System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref Item0, 8);
- }
- }
+ public const HexColor colorPeru = HexColor.colorPeru;
- public partial struct JointId
- {
- public int index1;
+ public const HexColor colorPink = HexColor.colorPink;
- public ushort world0;
+ public const HexColor colorPlum = HexColor.colorPlum;
- public ushort revision;
- }
+ public const HexColor colorPowderBlue = HexColor.colorPowderBlue;
- public partial struct Manifold
- {
- public points_FixedBuffer points;
+ public const HexColor colorPurple = HexColor.colorPurple;
- public Vec2 normal;
+ public const HexColor colorRebeccaPurple = HexColor.colorRebeccaPurple;
- public int pointCount;
+ public const HexColor colorRed = HexColor.colorRed;
- public partial struct points_FixedBuffer
- {
- public ManifoldPoint Item0;
+ public const HexColor colorRosyBrown = HexColor.colorRosyBrown;
- public ManifoldPoint Item1;
+ public const HexColor colorRoyalBlue = HexColor.colorRoyalBlue;
- public ref ManifoldPoint this[int index] => ref AsSpan()[index];
+ public const HexColor colorSaddleBrown = HexColor.colorSaddleBrown;
- [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
- public System.Span AsSpan() => System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref Item0, 2);
- }
- }
+ public const HexColor colorSalmon = HexColor.colorSalmon;
- public partial struct ManifoldPoint
- {
- public Vec2 point;
+ public const HexColor colorSandyBrown = HexColor.colorSandyBrown;
- public Vec2 anchorA;
+ public const HexColor colorSeaGreen = HexColor.colorSeaGreen;
- public Vec2 anchorB;
+ public const HexColor colorSeaShell = HexColor.colorSeaShell;
- public float separation;
+ public const HexColor colorSienna = HexColor.colorSienna;
- public float normalImpulse;
+ public const HexColor colorSilver = HexColor.colorSilver;
- public float tangentImpulse;
+ public const HexColor colorSkyBlue = HexColor.colorSkyBlue;
- public float maxNormalImpulse;
+ public const HexColor colorSlateBlue = HexColor.colorSlateBlue;
- public float normalVelocity;
+ public const HexColor colorSlateGray = HexColor.colorSlateGray;
- public ushort id;
+ public const HexColor colorSnow = HexColor.colorSnow;
- public byte persisted;
- }
+ public const HexColor colorSpringGreen = HexColor.colorSpringGreen;
- public partial struct MassData
- {
- public float mass;
+ public const HexColor colorSteelBlue = HexColor.colorSteelBlue;
- public Vec2 center;
+ public const HexColor colorTan = HexColor.colorTan;
- public float rotationalInertia;
- }
+ public const HexColor colorTeal = HexColor.colorTeal;
- public partial struct Mat22
- {
- public Vec2 cx;
+ public const HexColor colorThistle = HexColor.colorThistle;
- public Vec2 cy;
- }
+ public const HexColor colorTomato = HexColor.colorTomato;
- public partial struct MotorJointDef
- {
- public BodyId bodyIdA;
+ public const HexColor colorTurquoise = HexColor.colorTurquoise;
- public BodyId bodyIdB;
+ public const HexColor colorViolet = HexColor.colorViolet;
- public Vec2 linearOffset;
+ public const HexColor colorWheat = HexColor.colorWheat;
- public float angularOffset;
+ public const HexColor colorWhite = HexColor.colorWhite;
- public float maxForce;
+ public const HexColor colorWhiteSmoke = HexColor.colorWhiteSmoke;
- public float maxTorque;
+ public const HexColor colorYellow = HexColor.colorYellow;
- public float correctionFactor;
+ public const HexColor colorYellowGreen = HexColor.colorYellowGreen;
- public byte collideConnected;
+ public const HexColor colorBox2DRed = HexColor.colorBox2DRed;
- public void* userData;
+ public const HexColor colorBox2DBlue = HexColor.colorBox2DBlue;
- public int internalValue;
- }
+ public const HexColor colorBox2DGreen = HexColor.colorBox2DGreen;
- public partial struct MouseJointDef
- {
- public BodyId bodyIdA;
+ public const HexColor colorBox2DYellow = HexColor.colorBox2DYellow;
- public BodyId bodyIdB;
+ public const JointType distanceJoint = JointType.distanceJoint;
- public Vec2 target;
+ public const JointType motorJoint = JointType.motorJoint;
- public float hertz;
+ public const JointType mouseJoint = JointType.mouseJoint;
- public float dampingRatio;
+ public const JointType nullJoint = JointType.nullJoint;
- public float maxForce;
+ public const JointType prismaticJoint = JointType.prismaticJoint;
- public byte collideConnected;
+ public const JointType revoluteJoint = JointType.revoluteJoint;
- public void* userData;
+ public const JointType weldJoint = JointType.weldJoint;
- public int internalValue;
- }
+ public const JointType wheelJoint = JointType.wheelJoint;
- public partial struct Polygon
- {
- public vertices_FixedBuffer vertices;
+ public const ShapeType circleShape = ShapeType.circleShape;
- public normals_FixedBuffer normals;
+ public const ShapeType capsuleShape = ShapeType.capsuleShape;
- public Vec2 centroid;
+ public const ShapeType segmentShape = ShapeType.segmentShape;
- public float radius;
+ public const ShapeType polygonShape = ShapeType.polygonShape;
- public int count;
+ public const ShapeType chainSegmentShape = ShapeType.chainSegmentShape;
- public partial struct vertices_FixedBuffer
- {
- public Vec2 Item0;
+ public const ShapeType shapeTypeCount = ShapeType.shapeTypeCount;
- public Vec2 Item1;
+ public const TOIState toiStateUnknown = TOIState.toiStateUnknown;
- public Vec2 Item2;
+ public const TOIState toiStateFailed = TOIState.toiStateFailed;
- public Vec2 Item3;
+ public const TOIState toiStateOverlapped = TOIState.toiStateOverlapped;
- public Vec2 Item4;
+ public const TOIState toiStateHit = TOIState.toiStateHit;
- public Vec2 Item5;
+ public const TOIState toiStateSeparated = TOIState.toiStateSeparated;
- public Vec2 Item6;
+ public partial struct Version
+ {
+ public int major;
- public Vec2 Item7;
+ public int minor;
- public ref Vec2 this[int index] => ref AsSpan()[index];
+ public int revision;
+ }
- [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
- public System.Span AsSpan() => System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref Item0, 8);
- }
+ public partial struct Vec2
+ {
+ public float x;
- public partial struct normals_FixedBuffer
- {
- public Vec2 Item0;
+ public float y;
+ }
- public Vec2 Item1;
+ public partial struct CosSin
+ {
+ public float cosine;
- public Vec2 Item2;
+ public float sine;
+ }
- public Vec2 Item3;
+ public partial struct Rot
+ {
+ public float c;
- public Vec2 Item4;
+ public float s;
+ }
- public Vec2 Item5;
+ public partial struct Transform
+ {
+ public Vec2 p;
- public Vec2 Item6;
+ public Rot q;
+ }
- public Vec2 Item7;
+ public partial struct Mat22
+ {
+ public Vec2 cx;
- public ref Vec2 this[int index] => ref AsSpan()[index];
+ public Vec2 cy;
+ }
- [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
- public System.Span AsSpan() => System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref Item0, 8);
- }
- }
+ public partial struct AABB
+ {
+ public Vec2 lowerBound;
- public partial struct PrismaticJointDef
- {
- public BodyId bodyIdA;
+ public Vec2 upperBound;
+ }
- public BodyId bodyIdB;
+ public partial struct SimplexCache
+ {
+ public ushort count;
- public Vec2 localAnchorA;
+ public InlineArrays.byte_3 indexA;
- public Vec2 localAnchorB;
+ public InlineArrays.byte_3 indexB;
+ }
- public Vec2 localAxisA;
+ public partial struct Hull
+ {
+ public InlineArrays.Vec2_8 points;
- public float referenceAngle;
+ public int count;
+ }
- public byte enableSpring;
+ public partial struct RayCastInput
+ {
+ public Vec2 origin;
- public float hertz;
+ public Vec2 translation;
- public float dampingRatio;
+ public float maxFraction;
+ }
- public byte enableLimit;
+ public partial struct ShapeCastInput
+ {
+ public InlineArrays.Vec2_8 points;
- public float lowerTranslation;
+ public int count;
- public float upperTranslation;
+ public float radius;
- public byte enableMotor;
+ public Vec2 translation;
- public float maxMotorForce;
+ public float maxFraction;
+ }
- public float motorSpeed;
+ public partial struct CastOutput
+ {
+ public Vec2 normal;
- public byte collideConnected;
+ public Vec2 point;
- public void* userData;
+ public float fraction;
- public int internalValue;
- }
+ public int iterations;
- public partial struct Profile
- {
- public float step;
+ public byte hit;
+ }
- public float pairs;
+ public partial struct MassData
+ {
+ public float mass;
- public float collide;
+ public Vec2 center;
- public float solve;
+ public float rotationalInertia;
+ }
- public float buildIslands;
+ public partial struct Circle
+ {
+ public Vec2 center;
- public float solveConstraints;
+ public float radius;
+ }
- public float prepareTasks;
+ public partial struct Capsule
+ {
+ public Vec2 center1;
- public float solverTasks;
+ public Vec2 center2;
- public float prepareConstraints;
+ public float radius;
+ }
- public float integrateVelocities;
+ public partial struct Polygon
+ {
+ public InlineArrays.Vec2_8 vertices;
- public float warmStart;
+ public InlineArrays.Vec2_8 normals;
- public float solveVelocities;
+ public Vec2 centroid;
- public float integratePositions;
+ public float radius;
- public float relaxVelocities;
+ public int count;
+ }
- public float applyRestitution;
+ public partial struct Segment
+ {
+ public Vec2 point1;
- public float storeImpulses;
+ public Vec2 point2;
+ }
- public float finalizeBodies;
+ public partial struct ChainSegment
+ {
+ public Vec2 ghost1;
- public float splitIslands;
+ public Segment segment;
- public float sleepIslands;
+ public Vec2 ghost2;
- public float hitEvents;
+ public int chainId;
+ }
- public float broadphase;
+ public partial struct SegmentDistanceResult
+ {
+ public Vec2 closest1;
- public float continuous;
- }
+ public Vec2 closest2;
- public partial struct QueryFilter
- {
- public uint categoryBits;
+ public float fraction1;
- public uint maskBits;
- }
+ public float fraction2;
- public partial struct RayCastInput
- {
- public Vec2 origin;
+ public float distanceSquared;
+ }
- public Vec2 translation;
+ public partial struct ShapeProxy
+ {
+ public InlineArrays.Vec2_8 points;
- public float maxFraction;
- }
+ public int count;
- public partial struct RayResult
- {
- public ShapeId shapeId;
+ public float radius;
+ }
- public Vec2 point;
+ public partial struct DistanceInput
+ {
+ public ShapeProxy proxyA;
- public Vec2 normal;
+ public ShapeProxy proxyB;
- public float fraction;
+ public Transform transformA;
- public byte hit;
- }
+ public Transform transformB;
- public partial struct RevoluteJointDef
- {
- public BodyId bodyIdA;
+ public byte useRadii;
+ }
- public BodyId bodyIdB;
+ public partial struct DistanceOutput
+ {
+ public Vec2 pointA;
- public Vec2 localAnchorA;
+ public Vec2 pointB;
- public Vec2 localAnchorB;
+ public float distance;
- public float referenceAngle;
+ public int iterations;
- public byte enableSpring;
+ public int simplexCount;
+ }
- public float hertz;
+ public partial struct SimplexVertex
+ {
+ public Vec2 wA;
- public float dampingRatio;
+ public Vec2 wB;
- public byte enableLimit;
+ public Vec2 w;
- public float lowerAngle;
+ public float a;
- public float upperAngle;
+ public int indexA;
- public byte enableMotor;
+ public int indexB;
+ }
- public float maxMotorTorque;
+ public partial struct Simplex
+ {
+ public SimplexVertex v1;
- public float motorSpeed;
+ public SimplexVertex v2;
- public float drawSize;
+ public SimplexVertex v3;
- public byte collideConnected;
+ public int count;
+ }
- public void* userData;
+ public partial struct ShapeCastPairInput
+ {
+ public ShapeProxy proxyA;
- public int internalValue;
- }
+ public ShapeProxy proxyB;
- public partial struct Rot
- {
- public float c;
+ public Transform transformA;
- public float s;
- }
+ public Transform transformB;
- public partial struct Segment
- {
- public Vec2 point1;
+ public Vec2 translationB;
- public Vec2 point2;
- }
+ public float maxFraction;
+ }
- public partial struct SegmentDistanceResult
- {
- public Vec2 closest1;
+ public partial struct Sweep
+ {
+ public Vec2 localCenter;
- public Vec2 closest2;
+ public Vec2 c1;
- public float fraction1;
+ public Vec2 c2;
- public float fraction2;
+ public Rot q1;
- public float distanceSquared;
- }
+ public Rot q2;
+ }
- public partial struct SensorBeginTouchEvent
- {
- public ShapeId sensorShapeId;
+ public partial struct TOIInput
+ {
+ public ShapeProxy proxyA;
- public ShapeId visitorShapeId;
- }
+ public ShapeProxy proxyB;
- public partial struct SensorEndTouchEvent
- {
- public ShapeId sensorShapeId;
+ public Sweep sweepA;
- public ShapeId visitorShapeId;
- }
+ public Sweep sweepB;
- public partial struct SensorEvents
- {
- public SensorBeginTouchEvent* beginEvents;
+ public float maxFraction;
+ }
- public SensorEndTouchEvent* endEvents;
+ public partial struct TOIOutput
+ {
+ public TOIState state;
- public int beginCount;
+ public float fraction;
+ }
- public int endCount;
- }
+ public partial struct ManifoldPoint
+ {
+ public Vec2 point;
- public partial struct ShapeCastInput
- {
- public points_FixedBuffer points;
+ public Vec2 anchorA;
- public int count;
+ public Vec2 anchorB;
- public float radius;
+ public float separation;
- public Vec2 translation;
+ public float normalImpulse;
- public float maxFraction;
+ public float tangentImpulse;
- public partial struct points_FixedBuffer
- {
- public Vec2 Item0;
+ public float maxNormalImpulse;
- public Vec2 Item1;
+ public float normalVelocity;
- public Vec2 Item2;
+ public ushort id;
- public Vec2 Item3;
+ public byte persisted;
+ }
- public Vec2 Item4;
+ public partial struct Manifold
+ {
+ public Vec2 normal;
- public Vec2 Item5;
+ public float rollingImpulse;
- public Vec2 Item6;
+ public InlineArrays.ManifoldPoint_2 points;
- public Vec2 Item7;
+ public int pointCount;
+ }
- public ref Vec2 this[int index] => ref AsSpan()[index];
+ public partial struct DynamicTree
+ {
+ public TreeNode* nodes;
- [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
- public System.Span AsSpan() => System.Runtime.InteropServices.MemoryMarshal.CreateSpan(ref Item0, 8);
- }
- }
+ public int root;
- public partial struct ShapeCastPairInput
- {
- public DistanceProxy proxyA;
+ public int nodeCount;
- public DistanceProxy proxyB;
+ public int nodeCapacity;
- public Transform transformA;
+ public int freeList;
- public Transform transformB;
+ public int proxyCount;
- public Vec2 translationB;
+ public int* leafIndices;
- public float maxFraction;
- }
+ public AABB* leafBoxes;
- public partial struct ShapeDef
- {
- public void* userData;
+ public Vec2* leafCenters;
- public float friction;
+ public int* binIndices;
- public float restitution;
+ public int rebuildCapacity;
+ }
- public float density;
+ public partial struct TreeNode
+ {
+ }
- public Filter filter;
+ public partial struct TreeStats
+ {
+ public int nodeVisits;
- public uint customColor;
+ public int leafVisits;
+ }
- public byte isSensor;
+ public partial struct WorldId
+ {
+ public ushort index1;
- public byte enableSensorEvents;
+ public ushort generation;
+ }
- public byte enableContactEvents;
+ public partial struct BodyId
+ {
+ public int index1;
- public byte enableHitEvents;
+ public ushort world0;
- public byte enablePreSolveEvents;
+ public ushort generation;
+ }
- public byte forceContactCreation;
+ public partial struct ShapeId
+ {
+ public int index1;
- public int internalValue;
- }
+ public ushort world0;
- public partial struct ShapeId
- {
- public int index1;
+ public ushort generation;
+ }
- public ushort world0;
+ public partial struct ChainId
+ {
+ public int index1;
- public ushort revision;
- }
+ public ushort world0;
- public partial struct Simplex
- {
- public SimplexVertex v1;
+ public ushort generation;
+ }
- public SimplexVertex v2;
+ public partial struct JointId
+ {
+ public int index1;
- public SimplexVertex v3;
+ public ushort world0;
- public int count;
- }
+ public ushort generation;
+ }
- public partial struct SimplexVertex
- {
- public Vec2 wA;
+ public partial struct RayResult
+ {
+ public ShapeId shapeId;
- public Vec2 wB;
+ public Vec2 point;
- public Vec2 w;
+ public Vec2 normal;
- public float a;
+ public float fraction;
- public int indexA;
+ public int nodeVisits;
- public int indexB;
- }
+ public int leafVisits;
- public partial struct SmoothSegment
- {
- public Vec2 ghost1;
+ public byte hit;
+ }
- public Segment segment;
+ public partial struct WorldDef
+ {
+ public Vec2 gravity;
- public Vec2 ghost2;
+ public float restitutionThreshold;
- public int chainId;
- }
+ public float hitEventThreshold;
- public partial struct Sweep
- {
- public Vec2 localCenter;
+ public float contactHertz;
- public Vec2 c1;
+ public float contactDampingRatio;
- public Vec2 c2;
+ public float contactPushMaxSpeed;
- public Rot q1;
+ public float jointHertz;
- public Rot q2;
- }
+ public float jointDampingRatio;
- public partial struct Timer
- {
- public ulong start_sec;
+ public float maximumLinearSpeed;
- public ulong start_usec;
- }
+ public delegate* unmanaged frictionCallback;
- public partial struct TOIInput
- {
- public DistanceProxy proxyA;
+ public delegate* unmanaged restitutionCallback;
- public DistanceProxy proxyB;
+ public byte enableSleep;
- public Sweep sweepA;
+ public byte enableContinuous;
- public Sweep sweepB;
+ public int workerCount;
- public float tMax;
- }
+ public delegate* unmanaged , int, int, void*, void*, void*> enqueueTask;
- public partial struct TOIOutput
- {
- public TOIState state;
+ public delegate* unmanaged finishTask;
- public float t;
- }
+ public void* userTaskContext;
- public partial struct Transform
- {
- public Vec2 p;
+ public void* userData;
- public Rot q;
- }
+ public int internalValue;
+ }
- public partial struct TreeNode
- {
- public AABB aabb;
+ public partial struct BodyDef
+ {
+ public BodyType type;
- public uint categoryBits;
+ public Vec2 position;
- public AnonymousRecord_collision_L608_C2 AnonymousRecord_collision_L608_C2_Field;
+ public Rot rotation;
- public int child1;
+ public Vec2 linearVelocity;
- public int child2;
+ public float angularVelocity;
- public int userData;
+ public float linearDamping;
- public short height;
+ public float angularDamping;
- public byte enlarged;
+ public float gravityScale;
- public fixed byte pad[9];
+ public float sleepThreshold;
- public ref int parent => ref AnonymousRecord_collision_L608_C2_Field.parent;
+ public byte* name;
- public ref int next => ref AnonymousRecord_collision_L608_C2_Field.next;
+ public void* userData;
- [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Explicit)]
- public partial struct AnonymousRecord_collision_L608_C2
- {
- [System.Runtime.InteropServices.FieldOffset(0)]
- public int parent;
+ public byte enableSleep;
- [System.Runtime.InteropServices.FieldOffset(0)]
- public int next;
- }
- }
+ public byte isAwake;
- public partial struct Vec2
- {
- public float x;
+ public byte fixedRotation;
- public float y;
- }
+ public byte isBullet;
- public partial struct Version
- {
- public int major;
+ public byte isEnabled;
- public int minor;
+ public byte allowFastRotation;
- public int revision;
- }
+ public int internalValue;
+ }
- public partial struct WeldJointDef
- {
- public BodyId bodyIdA;
+ public partial struct Filter
+ {
+ public ulong categoryBits;
- public BodyId bodyIdB;
+ public ulong maskBits;
- public Vec2 localAnchorA;
+ public int groupIndex;
+ }
- public Vec2 localAnchorB;
+ public partial struct QueryFilter
+ {
+ public ulong categoryBits;
- public float referenceAngle;
+ public ulong maskBits;
+ }
- public float linearHertz;
+ public partial struct ShapeDef
+ {
+ public void* userData;
- public float angularHertz;
+ public float friction;
- public float linearDampingRatio;
+ public float restitution;
- public float angularDampingRatio;
+ public float rollingResistance;
- public byte collideConnected;
+ public float tangentSpeed;
- public void* userData;
+ public int material;
- public int internalValue;
- }
+ public float density;
- public partial struct WheelJointDef
- {
- public BodyId bodyIdA;
+ public Filter filter;
- public BodyId bodyIdB;
+ public uint customColor;
- public Vec2 localAnchorA;
+ public byte isSensor;
- public Vec2 localAnchorB;
+ public byte enableContactEvents;
- public Vec2 localAxisA;
+ public byte enableHitEvents;
- public byte enableSpring;
+ public byte enablePreSolveEvents;
- public float hertz;
+ public byte invokeContactCreation;
- public float dampingRatio;
+ public byte updateBodyMass;
- public byte enableLimit;
+ public int internalValue;
+ }
- public float lowerTranslation;
+ public partial struct SurfaceMaterial
+ {
+ public float friction;
- public float upperTranslation;
+ public float restitution;
- public byte enableMotor;
+ public float rollingResistance;
- public float maxMotorTorque;
+ public float tangentSpeed;
- public float motorSpeed;
+ public int material;
- public byte collideConnected;
+ public uint customColor;
+ }
- public void* userData;
+ public partial struct ChainDef
+ {
+ public void* userData;
- public int internalValue;
- }
+ public Vec2* points;
- public partial struct WorldDef
- {
- public Vec2 gravity;
+ public int count;
- public float restitutionThreshold;
+ public SurfaceMaterial* materials;
- public float contactPushoutVelocity;
+ public int materialCount;
- public float hitEventThreshold;
+ public Filter filter;
- public float contactHertz;
+ public byte isLoop;
- public float contactDampingRatio;
+ public int internalValue;
+ }
- public float jointHertz;
+ public partial struct Profile
+ {
+ public float step;
- public float jointDampingRatio;
+ public float pairs;
- public float maximumLinearVelocity;
+ public float collide;
- public byte enableSleep;
+ public float solve;
- public byte enableContinous;
+ public float mergeIslands;
- public int workerCount;
+ public float prepareStages;
- public System.IntPtr enqueueTask; // delegate*
+ public float solveConstraints;
- public System.IntPtr finishTask; // delegate*
+ public float prepareConstraints;
- public void* userTaskContext;
+ public float integrateVelocities;
- public int internalValue;
- }
+ public float warmStart;
- public partial struct WorldId
- {
- public ushort index1;
+ public float solveImpulses;
- public ushort revision;
- }
+ public float integratePositions;
- public enum BodyType : uint
- {
- staticBody = 0,
- kinematicBody = 1,
- dynamicBody = 2,
- bodyTypeCount = 3
- }
+ public float relaxImpulses;
- public enum HexColor : uint
- {
- colorAliceBlue = 15792383,
- colorAntiqueWhite = 16444375,
- colorAqua = 65535,
- colorAquamarine = 8388564,
- colorAzure = 15794175,
- colorBeige = 16119260,
- colorBisque = 16770244,
- colorBlack = 0,
- colorBlanchedAlmond = 16772045,
- colorBlue = 255,
- colorBlueViolet = 9055202,
- colorBrown = 10824234,
- colorBurlywood = 14596231,
- colorCadetBlue = 6266528,
- colorChartreuse = 8388352,
- colorChocolate = 13789470,
- colorCoral = 16744272,
- colorCornflowerBlue = 6591981,
- colorCornsilk = 16775388,
- colorCrimson = 14423100,
- colorCyan = 65535,
- colorDarkBlue = 139,
- colorDarkCyan = 35723,
- colorDarkGoldenrod = 12092939,
- colorDarkGray = 11119017,
- colorDarkGreen = 25600,
- colorDarkKhaki = 12433259,
- colorDarkMagenta = 9109643,
- colorDarkOliveGreen = 5597999,
- colorDarkOrange = 16747520,
- colorDarkOrchid = 10040012,
- colorDarkRed = 9109504,
- colorDarkSalmon = 15308410,
- colorDarkSeaGreen = 9419919,
- colorDarkSlateBlue = 4734347,
- colorDarkSlateGray = 3100495,
- colorDarkTurquoise = 52945,
- colorDarkViolet = 9699539,
- colorDeepPink = 16716947,
- colorDeepSkyBlue = 49151,
- colorDimGray = 6908265,
- colorDodgerBlue = 2003199,
- colorFirebrick = 11674146,
- colorFloralWhite = 16775920,
- colorForestGreen = 2263842,
- colorFuchsia = 16711935,
- colorGainsboro = 14474460,
- colorGhostWhite = 16316671,
- colorGold = 16766720,
- colorGoldenrod = 14329120,
- colorGray = 12500670,
- colorGray1 = 1710618,
- colorGray2 = 3355443,
- colorGray3 = 5066061,
- colorGray4 = 6710886,
- colorGray5 = 8355711,
- colorGray6 = 10066329,
- colorGray7 = 11776947,
- colorGray8 = 13421772,
- colorGray9 = 15066597,
- colorGreen = 65280,
- colorGreenYellow = 11403055,
- colorHoneydew = 15794160,
- colorHotPink = 16738740,
- colorIndianRed = 13458524,
- colorIndigo = 4915330,
- colorIvory = 16777200,
- colorKhaki = 15787660,
- colorLavender = 15132410,
- colorLavenderBlush = 16773365,
- colorLawnGreen = 8190976,
- colorLemonChiffon = 16775885,
- colorLightBlue = 11393254,
- colorLightCoral = 15761536,
- colorLightCyan = 14745599,
- colorLightGoldenrod = 15654274,
- colorLightGoldenrodYellow = 16448210,
- colorLightGray = 13882323,
- colorLightGreen = 9498256,
- colorLightPink = 16758465,
- colorLightSalmon = 16752762,
- colorLightSeaGreen = 2142890,
- colorLightSkyBlue = 8900346,
- colorLightSlateBlue = 8679679,
- colorLightSlateGray = 7833753,
- colorLightSteelBlue = 11584734,
- colorLightYellow = 16777184,
- colorLime = 65280,
- colorLimeGreen = 3329330,
- colorLinen = 16445670,
- colorMagenta = 16711935,
- colorMaroon = 11546720,
- colorMediumAquamarine = 6737322,
- colorMediumBlue = 205,
- colorMediumOrchid = 12211667,
- colorMediumPurple = 9662683,
- colorMediumSeaGreen = 3978097,
- colorMediumSlateBlue = 8087790,
- colorMediumSpringGreen = 64154,
- colorMediumTurquoise = 4772300,
- colorMediumVioletRed = 13047173,
- colorMidnightBlue = 1644912,
- colorMintCream = 16121850,
- colorMistyRose = 16770273,
- colorMoccasin = 16770229,
- colorNavajoWhite = 16768685,
- colorNavy = 128,
- colorNavyBlue = 128,
- colorOldLace = 16643558,
- colorOlive = 8421376,
- colorOliveDrab = 7048739,
- colorOrange = 16753920,
- colorOrangeRed = 16729344,
- colorOrchid = 14315734,
- colorPaleGoldenrod = 15657130,
- colorPaleGreen = 10025880,
- colorPaleTurquoise = 11529966,
- colorPaleVioletRed = 14381203,
- colorPapayaWhip = 16773077,
- colorPeachPuff = 16767673,
- colorPeru = 13468991,
- colorPink = 16761035,
- colorPlum = 14524637,
- colorPowderBlue = 11591910,
- colorPurple = 10494192,
- colorRebeccaPurple = 6697881,
- colorRed = 16711680,
- colorRosyBrown = 12357519,
- colorRoyalBlue = 4286945,
- colorSaddleBrown = 9127187,
- colorSalmon = 16416882,
- colorSandyBrown = 16032864,
- colorSeaGreen = 3050327,
- colorSeashell = 16774638,
- colorSienna = 10506797,
- colorSilver = 12632256,
- colorSkyBlue = 8900331,
- colorSlateBlue = 6970061,
- colorSlateGray = 7372944,
- colorSnow = 16775930,
- colorSpringGreen = 65407,
- colorSteelBlue = 4620980,
- colorTan = 13808780,
- colorTeal = 32896,
- colorThistle = 14204888,
- colorTomato = 16737095,
- colorTurquoise = 4251856,
- colorViolet = 15631086,
- colorVioletRed = 13639824,
- colorWheat = 16113331,
- colorWhite = 16777215,
- colorWhiteSmoke = 16119285,
- colorYellow = 16776960,
- colorYellowGreen = 10145074,
- colorBox2DRed = 14430514,
- colorBox2DBlue = 3190463,
- colorBox2DGreen = 9226532,
- colorBox2DYellow = 16772748
- }
-
- public enum JointType : uint
- {
- distanceJoint = 0,
- motorJoint = 1,
- mouseJoint = 2,
- prismaticJoint = 3,
- revoluteJoint = 4,
- weldJoint = 5,
- wheelJoint = 6
- }
+ public float applyRestitution;
- public enum ShapeType : uint
- {
- circleShape = 0,
- capsuleShape = 1,
- segmentShape = 2,
- polygonShape = 3,
- smoothSegmentShape = 4,
- shapeTypeCount = 5
- }
+ public float storeImpulses;
- public enum TOIState : uint
- {
- toiStateUnknown = 0,
- toiStateFailed = 1,
- toiStateOverlapped = 2,
- toiStateHit = 3,
- toiStateSeparated = 4
- }
+ public float splitIslands;
- public const BodyType staticBody = BodyType.staticBody;
+ public float transforms;
- public const BodyType kinematicBody = BodyType.kinematicBody;
+ public float hitEvents;
- public const BodyType dynamicBody = BodyType.dynamicBody;
+ public float refit;
- public const BodyType bodyTypeCount = BodyType.bodyTypeCount;
+ public float bullets;
- public const HexColor colorAliceBlue = HexColor.colorAliceBlue;
+ public float sleepIslands;
- public const HexColor colorAntiqueWhite = HexColor.colorAntiqueWhite;
+ public float sensors;
+ }
- public const HexColor colorAqua = HexColor.colorAqua;
+ public partial struct Counters
+ {
+ public int bodyCount;
+
+ public int shapeCount;
- public const HexColor colorAquamarine = HexColor.colorAquamarine;
+ public int contactCount;
- public const HexColor colorAzure = HexColor.colorAzure;
+ public int jointCount;
- public const HexColor colorBeige = HexColor.colorBeige;
+ public int islandCount;
- public const HexColor colorBisque = HexColor.colorBisque;
+ public int stackUsed;
- public const HexColor colorBlack = HexColor.colorBlack;
+ public int staticTreeHeight;
- public const HexColor colorBlanchedAlmond = HexColor.colorBlanchedAlmond;
+ public int treeHeight;
- public const HexColor colorBlue = HexColor.colorBlue;
+ public int byteCount;
- public const HexColor colorBlueViolet = HexColor.colorBlueViolet;
+ public int taskCount;
+
+ public InlineArrays.int_12 colorCounts;
+ }
- public const HexColor colorBrown = HexColor.colorBrown;
+ public partial struct DistanceJointDef
+ {
+ public BodyId bodyIdA;
- public const HexColor colorBurlywood = HexColor.colorBurlywood;
+ public BodyId bodyIdB;
- public const HexColor colorCadetBlue = HexColor.colorCadetBlue;
+ public Vec2 localAnchorA;
- public const HexColor colorChartreuse = HexColor.colorChartreuse;
+ public Vec2 localAnchorB;
- public const HexColor colorChocolate = HexColor.colorChocolate;
+ public float length;
- public const HexColor colorCoral = HexColor.colorCoral;
+ public byte enableSpring;
- public const HexColor colorCornflowerBlue = HexColor.colorCornflowerBlue;
+ public float hertz;
- public const HexColor colorCornsilk = HexColor.colorCornsilk;
+ public float dampingRatio;
- public const HexColor colorCrimson = HexColor.colorCrimson;
+ public byte enableLimit;
- public const HexColor colorCyan = HexColor.colorCyan;
+ public float minLength;
- public const HexColor colorDarkBlue = HexColor.colorDarkBlue;
+ public float maxLength;
- public const HexColor colorDarkCyan = HexColor.colorDarkCyan;
+ public byte enableMotor;
- public const HexColor colorDarkGoldenrod = HexColor.colorDarkGoldenrod;
+ public float maxMotorForce;
- public const HexColor colorDarkGray = HexColor.colorDarkGray;
+ public float motorSpeed;
- public const HexColor colorDarkGreen = HexColor.colorDarkGreen;
+ public byte collideConnected;
- public const HexColor colorDarkKhaki = HexColor.colorDarkKhaki;
+ public void* userData;
- public const HexColor colorDarkMagenta = HexColor.colorDarkMagenta;
+ public int internalValue;
+ }
- public const HexColor colorDarkOliveGreen = HexColor.colorDarkOliveGreen;
+ public partial struct MotorJointDef
+ {
+ public BodyId bodyIdA;
- public const HexColor colorDarkOrange = HexColor.colorDarkOrange;
+ public BodyId bodyIdB;
- public const HexColor colorDarkOrchid = HexColor.colorDarkOrchid;
+ public Vec2 linearOffset;
- public const HexColor colorDarkRed = HexColor.colorDarkRed;
+ public float angularOffset;
- public const HexColor colorDarkSalmon = HexColor.colorDarkSalmon;
+ public float maxForce;
- public const HexColor colorDarkSeaGreen = HexColor.colorDarkSeaGreen;
+ public float maxTorque;
- public const HexColor colorDarkSlateBlue = HexColor.colorDarkSlateBlue;
+ public float correctionFactor;
- public const HexColor colorDarkSlateGray = HexColor.colorDarkSlateGray;
+ public byte collideConnected;
- public const HexColor colorDarkTurquoise = HexColor.colorDarkTurquoise;
+ public void* userData;
- public const HexColor colorDarkViolet = HexColor.colorDarkViolet;
+ public int internalValue;
+ }
- public const HexColor colorDeepPink = HexColor.colorDeepPink;
+ public partial struct MouseJointDef
+ {
+ public BodyId bodyIdA;
- public const HexColor colorDeepSkyBlue = HexColor.colorDeepSkyBlue;
+ public BodyId bodyIdB;
- public const HexColor colorDimGray = HexColor.colorDimGray;
+ public Vec2 target;
- public const HexColor colorDodgerBlue = HexColor.colorDodgerBlue;
+ public float hertz;
- public const HexColor colorFirebrick = HexColor.colorFirebrick;
+ public float dampingRatio;
- public const HexColor colorFloralWhite = HexColor.colorFloralWhite;
+ public float maxForce;
- public const HexColor colorForestGreen = HexColor.colorForestGreen;
+ public byte collideConnected;
- public const HexColor colorFuchsia = HexColor.colorFuchsia;
+ public void* userData;
- public const HexColor colorGainsboro = HexColor.colorGainsboro;
+ public int internalValue;
+ }
- public const HexColor colorGhostWhite = HexColor.colorGhostWhite;
+ public partial struct NullJointDef
+ {
+ public BodyId bodyIdA;
- public const HexColor colorGold = HexColor.colorGold;
+ public BodyId bodyIdB;
- public const HexColor colorGoldenrod = HexColor.colorGoldenrod;
+ public void* userData;
- public const HexColor colorGray = HexColor.colorGray;
+ public int internalValue;
+ }
- public const HexColor colorGray1 = HexColor.colorGray1;
+ public partial struct PrismaticJointDef
+ {
+ public BodyId bodyIdA;
- public const HexColor colorGray2 = HexColor.colorGray2;
+ public BodyId bodyIdB;
- public const HexColor colorGray3 = HexColor.colorGray3;
+ public Vec2 localAnchorA;
- public const HexColor colorGray4 = HexColor.colorGray4;
+ public Vec2 localAnchorB;
- public const HexColor colorGray5 = HexColor.colorGray5;
+ public Vec2 localAxisA;
- public const HexColor colorGray6 = HexColor.colorGray6;
+ public float referenceAngle;
- public const HexColor colorGray7 = HexColor.colorGray7;
+ public byte enableSpring;
- public const HexColor colorGray8 = HexColor.colorGray8;
+ public float hertz;
- public const HexColor colorGray9 = HexColor.colorGray9;
+ public float dampingRatio;
- public const HexColor colorGreen = HexColor.colorGreen;
+ public byte enableLimit;
- public const HexColor colorGreenYellow = HexColor.colorGreenYellow;
+ public float lowerTranslation;
- public const HexColor colorHoneydew = HexColor.colorHoneydew;
+ public float upperTranslation;
- public const HexColor colorHotPink = HexColor.colorHotPink;
+ public byte enableMotor;
- public const HexColor colorIndianRed = HexColor.colorIndianRed;
+ public float maxMotorForce;
- public const HexColor colorIndigo = HexColor.colorIndigo;
+ public float motorSpeed;
- public const HexColor colorIvory = HexColor.colorIvory;
+ public byte collideConnected;
- public const HexColor colorKhaki = HexColor.colorKhaki;
+ public void* userData;
- public const HexColor colorLavender = HexColor.colorLavender;
+ public int internalValue;
+ }
- public const HexColor colorLavenderBlush = HexColor.colorLavenderBlush;
+ public partial struct RevoluteJointDef
+ {
+ public BodyId bodyIdA;
- public const HexColor colorLawnGreen = HexColor.colorLawnGreen;
+ public BodyId bodyIdB;
- public const HexColor colorLemonChiffon = HexColor.colorLemonChiffon;
+ public Vec2 localAnchorA;
- public const HexColor colorLightBlue = HexColor.colorLightBlue;
+ public Vec2 localAnchorB;
- public const HexColor colorLightCoral = HexColor.colorLightCoral;
+ public float referenceAngle;
- public const HexColor colorLightCyan = HexColor.colorLightCyan;
+ public byte enableSpring;
- public const HexColor colorLightGoldenrod = HexColor.colorLightGoldenrod;
+ public float hertz;
- public const HexColor colorLightGoldenrodYellow = HexColor.colorLightGoldenrodYellow;
+ public float dampingRatio;
- public const HexColor colorLightGray = HexColor.colorLightGray;
+ public byte enableLimit;
- public const HexColor colorLightGreen = HexColor.colorLightGreen;
+ public float lowerAngle;
- public const HexColor colorLightPink = HexColor.colorLightPink;
+ public float upperAngle;
- public const HexColor colorLightSalmon = HexColor.colorLightSalmon;
+ public byte enableMotor;
- public const HexColor colorLightSeaGreen = HexColor.colorLightSeaGreen;
+ public float maxMotorTorque;
- public const HexColor colorLightSkyBlue = HexColor.colorLightSkyBlue;
+ public float motorSpeed;
- public const HexColor colorLightSlateBlue = HexColor.colorLightSlateBlue;
+ public float drawSize;
- public const HexColor colorLightSlateGray = HexColor.colorLightSlateGray;
+ public byte collideConnected;
- public const HexColor colorLightSteelBlue = HexColor.colorLightSteelBlue;
+ public void* userData;
- public const HexColor colorLightYellow = HexColor.colorLightYellow;
+ public int internalValue;
+ }
- public const HexColor colorLime = HexColor.colorLime;
+ public partial struct WeldJointDef
+ {
+ public BodyId bodyIdA;
- public const HexColor colorLimeGreen = HexColor.colorLimeGreen;
+ public BodyId bodyIdB;
- public const HexColor colorLinen = HexColor.colorLinen;
+ public Vec2 localAnchorA;
- public const HexColor colorMagenta = HexColor.colorMagenta;
+ public Vec2 localAnchorB;
- public const HexColor colorMaroon = HexColor.colorMaroon;
+ public float referenceAngle;
- public const HexColor colorMediumAquamarine = HexColor.colorMediumAquamarine;
+ public float linearHertz;
- public const HexColor colorMediumBlue = HexColor.colorMediumBlue;
+ public float angularHertz;
- public const HexColor colorMediumOrchid = HexColor.colorMediumOrchid;
+ public float linearDampingRatio;
- public const HexColor colorMediumPurple = HexColor.colorMediumPurple;
+ public float angularDampingRatio;
- public const HexColor colorMediumSeaGreen = HexColor.colorMediumSeaGreen;
+ public byte collideConnected;
- public const HexColor colorMediumSlateBlue = HexColor.colorMediumSlateBlue;
+ public void* userData;
- public const HexColor colorMediumSpringGreen = HexColor.colorMediumSpringGreen;
+ public int internalValue;
+ }
- public const HexColor colorMediumTurquoise = HexColor.colorMediumTurquoise;
+ public partial struct WheelJointDef
+ {
+ public BodyId bodyIdA;
- public const HexColor colorMediumVioletRed = HexColor.colorMediumVioletRed;
+ public BodyId bodyIdB;
- public const HexColor colorMidnightBlue = HexColor.colorMidnightBlue;
+ public Vec2 localAnchorA;
- public const HexColor colorMintCream = HexColor.colorMintCream;
+ public Vec2 localAnchorB;
- public const HexColor colorMistyRose = HexColor.colorMistyRose;
+ public Vec2 localAxisA;
- public const HexColor colorMoccasin = HexColor.colorMoccasin;
+ public byte enableSpring;
- public const HexColor colorNavajoWhite = HexColor.colorNavajoWhite;
+ public float hertz;
- public const HexColor colorNavy = HexColor.colorNavy;
+ public float dampingRatio;
- public const HexColor colorNavyBlue = HexColor.colorNavyBlue;
+ public byte enableLimit;
- public const HexColor colorOldLace = HexColor.colorOldLace;
+ public float lowerTranslation;
- public const HexColor colorOlive = HexColor.colorOlive;
+ public float upperTranslation;
- public const HexColor colorOliveDrab = HexColor.colorOliveDrab;
+ public byte enableMotor;
- public const HexColor colorOrange = HexColor.colorOrange;
+ public float maxMotorTorque;
- public const HexColor colorOrangeRed = HexColor.colorOrangeRed;
+ public float motorSpeed;
- public const HexColor colorOrchid = HexColor.colorOrchid;
+ public byte collideConnected;
- public const HexColor colorPaleGoldenrod = HexColor.colorPaleGoldenrod;
+ public void* userData;
- public const HexColor colorPaleGreen = HexColor.colorPaleGreen;
+ public int internalValue;
+ }
- public const HexColor colorPaleTurquoise = HexColor.colorPaleTurquoise;
+ public partial struct ExplosionDef
+ {
+ public ulong maskBits;
- public const HexColor colorPaleVioletRed = HexColor.colorPaleVioletRed;
+ public Vec2 position;
- public const HexColor colorPapayaWhip = HexColor.colorPapayaWhip;
+ public float radius;
- public const HexColor colorPeachPuff = HexColor.colorPeachPuff;
+ public float falloff;
- public const HexColor colorPeru = HexColor.colorPeru;
+ public float impulsePerLength;
+ }
- public const HexColor colorPink = HexColor.colorPink;
+ public partial struct SensorBeginTouchEvent
+ {
+ public ShapeId sensorShapeId;
- public const HexColor colorPlum = HexColor.colorPlum;
+ public ShapeId visitorShapeId;
+ }
- public const HexColor colorPowderBlue = HexColor.colorPowderBlue;
+ public partial struct SensorEndTouchEvent
+ {
+ public ShapeId sensorShapeId;
- public const HexColor colorPurple = HexColor.colorPurple;
+ public ShapeId visitorShapeId;
+ }
- public const HexColor colorRebeccaPurple = HexColor.colorRebeccaPurple;
+ public partial struct SensorEvents
+ {
+ public SensorBeginTouchEvent* beginEvents;
- public const HexColor colorRed = HexColor.colorRed;
+ public SensorEndTouchEvent* endEvents;
- public const HexColor colorRosyBrown = HexColor.colorRosyBrown;
+ public int beginCount;
- public const HexColor colorRoyalBlue = HexColor.colorRoyalBlue;
+ public int endCount;
+ }
- public const HexColor colorSaddleBrown = HexColor.colorSaddleBrown;
+ public partial struct ContactBeginTouchEvent
+ {
+ public ShapeId shapeIdA;
- public const HexColor colorSalmon = HexColor.colorSalmon;
+ public ShapeId shapeIdB;
- public const HexColor colorSandyBrown = HexColor.colorSandyBrown;
+ public Manifold manifold;
+ }
- public const HexColor colorSeaGreen = HexColor.colorSeaGreen;
+ public partial struct ContactEndTouchEvent
+ {
+ public ShapeId shapeIdA;
- public const HexColor colorSeashell = HexColor.colorSeashell;
+ public ShapeId shapeIdB;
+ }
- public const HexColor colorSienna = HexColor.colorSienna;
+ public partial struct ContactHitEvent
+ {
+ public ShapeId shapeIdA;
- public const HexColor colorSilver = HexColor.colorSilver;
+ public ShapeId shapeIdB;
- public const HexColor colorSkyBlue = HexColor.colorSkyBlue;
+ public Vec2 point;
- public const HexColor colorSlateBlue = HexColor.colorSlateBlue;
+ public Vec2 normal;
- public const HexColor colorSlateGray = HexColor.colorSlateGray;
+ public float approachSpeed;
+ }
- public const HexColor colorSnow = HexColor.colorSnow;
+ public partial struct ContactEvents
+ {
+ public ContactBeginTouchEvent* beginEvents;
- public const HexColor colorSpringGreen = HexColor.colorSpringGreen;
+ public ContactEndTouchEvent* endEvents;
- public const HexColor colorSteelBlue = HexColor.colorSteelBlue;
+ public ContactHitEvent* hitEvents;
- public const HexColor colorTan = HexColor.colorTan;
+ public int beginCount;
- public const HexColor colorTeal = HexColor.colorTeal;
+ public int endCount;
- public const HexColor colorThistle = HexColor.colorThistle;
+ public int hitCount;
+ }
- public const HexColor colorTomato = HexColor.colorTomato;
+ public partial struct BodyMoveEvent
+ {
+ public Transform transform;
- public const HexColor colorTurquoise = HexColor.colorTurquoise;
+ public BodyId bodyId;
- public const HexColor colorViolet = HexColor.colorViolet;
+ public void* userData;
- public const HexColor colorVioletRed = HexColor.colorVioletRed;
+ public byte fellAsleep;
+ }
- public const HexColor colorWheat = HexColor.colorWheat;
+ public partial struct BodyEvents
+ {
+ public BodyMoveEvent* moveEvents;
- public const HexColor colorWhite = HexColor.colorWhite;
+ public int moveCount;
+ }
- public const HexColor colorWhiteSmoke = HexColor.colorWhiteSmoke;
+ public partial struct ContactData
+ {
+ public ShapeId shapeIdA;
- public const HexColor colorYellow = HexColor.colorYellow;
+ public ShapeId shapeIdB;
- public const HexColor colorYellowGreen = HexColor.colorYellowGreen;
+ public Manifold manifold;
+ }
- public const HexColor colorBox2DRed = HexColor.colorBox2DRed;
+ public partial struct DebugDraw
+ {
+ public delegate* unmanaged DrawPolygon;
- public const HexColor colorBox2DBlue = HexColor.colorBox2DBlue;
+ public delegate* unmanaged DrawSolidPolygon;
- public const HexColor colorBox2DGreen = HexColor.colorBox2DGreen;
+ public delegate* unmanaged DrawCircle;
- public const HexColor colorBox2DYellow = HexColor.colorBox2DYellow;
+ public delegate* unmanaged DrawSolidCircle;
- public const JointType distanceJoint = JointType.distanceJoint;
+ public delegate* unmanaged DrawSolidCapsule;
- public const JointType motorJoint = JointType.motorJoint;
+ public delegate* unmanaged DrawSegment;
- public const JointType mouseJoint = JointType.mouseJoint;
+ public delegate* unmanaged DrawTransform;
- public const JointType prismaticJoint = JointType.prismaticJoint;
+ public delegate* unmanaged DrawPoint;
- public const JointType revoluteJoint = JointType.revoluteJoint;
+ public delegate* unmanaged DrawString;
- public const JointType weldJoint = JointType.weldJoint;
+ public AABB drawingBounds;
- public const JointType wheelJoint = JointType.wheelJoint;
+ public byte useDrawingBounds;
- public const ShapeType circleShape = ShapeType.circleShape;
+ public byte drawShapes;
- public const ShapeType capsuleShape = ShapeType.capsuleShape;
+ public byte drawJoints;
- public const ShapeType segmentShape = ShapeType.segmentShape;
+ public byte drawJointExtras;
- public const ShapeType polygonShape = ShapeType.polygonShape;
+ public byte drawAABBs;
- public const ShapeType smoothSegmentShape = ShapeType.smoothSegmentShape;
+ public byte drawMass;
- public const ShapeType shapeTypeCount = ShapeType.shapeTypeCount;
+ public byte drawBodyNames;
- public const TOIState toiStateUnknown = TOIState.toiStateUnknown;
+ public byte drawContacts;
- public const TOIState toiStateFailed = TOIState.toiStateFailed;
+ public byte drawGraphColors;
- public const TOIState toiStateOverlapped = TOIState.toiStateOverlapped;
+ public byte drawContactNormals;
- public const TOIState toiStateHit = TOIState.toiStateHit;
+ public byte drawContactImpulses;
- public const TOIState toiStateSeparated = TOIState.toiStateSeparated;
+ public byte drawFrictionImpulses;
- public const int defaultCategoryBits = 1;
+ public void* context;
+ }
- public const uint defaultMaskBits = 4294967295;
+ public partial struct InlineArrays
+ {
+ [InlineArray(8)]
+ public partial struct Vec2_8
+ {
+ public Vec2 Item0;
+ }
+ }
- public const int maxPolygonVertices = 8;
+ public partial struct InlineArrays
+ {
+ [InlineArray(3)]
+ public partial struct byte_3
+ {
+ public byte Item0;
+ }
+ }
- public const float pi = 3.1415927f;
+ public partial struct InlineArrays
+ {
+ [InlineArray(2)]
+ public partial struct ManifoldPoint_2
+ {
+ public ManifoldPoint Item0;
+ }
+ }
- public partial class BindgenInternal
+ public partial struct InlineArrays
+ {
+ [InlineArray(12)]
+ public partial struct int_12
{
- public const string DllImportPath = "box2d";
+ public int Item0;
+ }
+ }
+
+ public const ulong B2_DEFAULT_CATEGORY_BITS = 1;
+
+ public const ulong B2_DEFAULT_MASK_BITS = 18446744073709551615;
+
+ public const int B2_HASH_INIT = 5381;
+
+ public const int B2_MAX_POLYGON_VERTICES = 8;
+
+ public const float B2_PI = 3.1415927f;
- static BindgenInternal()
+ public partial struct Version : IEquatable
+ {
+ public bool Equals(Version other)
+ {
+ fixed (Version* __self = &this)
{
- DllFilePaths = new System.Collections.Generic.List
- {
- "box2d",
- "libbox2d",
- "runtimes/linux-x64/native/libbox2d",
- "runtimes/linux-arm64/native/libbox2d",
- "runtimes/osx-x64/native/libbox2d",
- "runtimes/osx-arm64/native/libbox2d",
- "runtimes/win-x64/native/box2d",
- "runtimes/win-arm64/native/box2d"
- };
+ return new Span(__self, sizeof(Version)).SequenceEqual(new Span(&other, sizeof(Version)));
}
}
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "SYSLIB1054")]
- public partial class BindgenInternal
+ public override bool Equals(object? obj)
+ {
+ return obj is Version other && Equals(other);
+ }
+
+ public static bool operator ==(Version left, Version right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(Version left, Version right)
{
- public static readonly System.Collections.Generic.List DllFilePaths;
+ return !(left == right);
+ }
- public static System.IntPtr LibraryHandle = System.IntPtr.Zero;
+ public override int GetHashCode()
+ {
+ fixed (Version* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(Version)));
+ return hash.ToHashCode();
+ }
+ }
+ }
- public static readonly object Lock = new object ();
+ public partial struct Vec2 : IEquatable
+ {
+ public bool Equals(Vec2 other)
+ {
+ fixed (Vec2* __self = &this)
+ {
+ return new Span(__self, sizeof(Vec2)).SequenceEqual(new Span(&other, sizeof(Vec2)));
+ }
+ }
- public static bool IsLinux => System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Linux);
+ public override bool Equals(object? obj)
+ {
+ return obj is Vec2 other && Equals(other);
+ }
- public static bool IsOsx => System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.OSX);
+ public static bool operator ==(Vec2 left, Vec2 right)
+ {
+ return left.Equals(right);
+ }
- public static bool IsWindows => System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Windows);
+ public static bool operator !=(Vec2 left, Vec2 right)
+ {
+ return !(left == right);
+ }
- [System.Runtime.InteropServices.DllImport("libc", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall, CharSet = System.Runtime.InteropServices.CharSet.Ansi, EntryPoint = "dlopen")]
- public static extern System.IntPtr LoadLibraryLinux(string? path, int flags);
+ public override int GetHashCode()
+ {
+ fixed (Vec2* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(Vec2)));
+ return hash.ToHashCode();
+ }
+ }
+ }
- [System.Runtime.InteropServices.DllImport("libdl", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall, CharSet = System.Runtime.InteropServices.CharSet.Ansi, EntryPoint = "dlopen")]
- public static extern System.IntPtr LoadLibraryOsx(string? path, int flags);
+ public partial struct CosSin : IEquatable
+ {
+ public bool Equals(CosSin other)
+ {
+ fixed (CosSin* __self = &this)
+ {
+ return new Span(__self, sizeof(CosSin)).SequenceEqual(new Span(&other, sizeof(CosSin)));
+ }
+ }
- [System.Runtime.InteropServices.DllImport("kernel32", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall, CharSet = System.Runtime.InteropServices.CharSet.Ansi, EntryPoint = "LoadLibrary")]
- public static extern System.IntPtr LoadLibraryWindows(string path);
+ public override bool Equals(object? obj)
+ {
+ return obj is CosSin other && Equals(other);
+ }
- [System.Runtime.InteropServices.DllImport("kernel32", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall, CharSet = System.Runtime.InteropServices.CharSet.Ansi, EntryPoint = "GetModuleHandle")]
- public static extern System.IntPtr GetModuleHandle(string? name);
+ public static bool operator ==(CosSin left, CosSin right)
+ {
+ return left.Equals(right);
+ }
- [System.Runtime.InteropServices.DllImport("libc", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall, CharSet = System.Runtime.InteropServices.CharSet.Ansi, EntryPoint = "dlsym")]
- public static extern System.IntPtr GetExportLinux(System.IntPtr handle, string name);
+ public static bool operator !=(CosSin left, CosSin right)
+ {
+ return !(left == right);
+ }
- [System.Runtime.InteropServices.DllImport("libdl", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall, CharSet = System.Runtime.InteropServices.CharSet.Ansi, EntryPoint = "dlsym")]
- public static extern System.IntPtr GetExportOsx(System.IntPtr handle, string name);
+ public override int GetHashCode()
+ {
+ fixed (CosSin* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(CosSin)));
+ return hash.ToHashCode();
+ }
+ }
+ }
- [System.Runtime.InteropServices.DllImport("kernel32", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall, CharSet = System.Runtime.InteropServices.CharSet.Ansi, EntryPoint = "GetProcAddress")]
- public static extern System.IntPtr GetExportWindows(System.IntPtr handle, string name);
+ public partial struct Rot : IEquatable
+ {
+ public bool Equals(Rot other)
+ {
+ fixed (Rot* __self = &this)
+ {
+ return new Span(__self, sizeof(Rot)).SequenceEqual(new Span(&other, sizeof(Rot)));
+ }
+ }
- [System.Runtime.InteropServices.DllImport("libc", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall, CharSet = System.Runtime.InteropServices.CharSet.Ansi, EntryPoint = "dlerror")]
- public static extern byte* GetLastErrorLinux();
+ public override bool Equals(object? obj)
+ {
+ return obj is Rot other && Equals(other);
+ }
- [System.Runtime.InteropServices.DllImport("libdl", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall, CharSet = System.Runtime.InteropServices.CharSet.Ansi, EntryPoint = "dlerror")]
- public static extern byte* GetLastErrorOsx();
+ public static bool operator ==(Rot left, Rot right)
+ {
+ return left.Equals(right);
+ }
- [System.Runtime.InteropServices.DllImport("kernel32", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall, CharSet = System.Runtime.InteropServices.CharSet.Ansi, EntryPoint = "GetLastError")]
- public static extern int GetLastErrorWindows();
+ public static bool operator !=(Rot left, Rot right)
+ {
+ return !(left == right);
+ }
- public static bool TryLoad(string path, out System.IntPtr handle)
+ public override int GetHashCode()
+ {
+ fixed (Rot* __self = &this)
{
-#if NETCOREAPP3_0_OR_GREATER
- return System.Runtime.InteropServices.NativeLibrary.TryLoad(path, System.Reflection.Assembly.GetExecutingAssembly(), null, out handle);
-#else
- handle = System.IntPtr.Zero;
- if (IsLinux)
- handle = LoadLibraryLinux(path, 0x101);
- else if (IsOsx)
- handle = LoadLibraryOsx(path, 0x101);
- else if (IsWindows)
- handle = LoadLibraryWindows(path);
- return handle != System.IntPtr.Zero;
-#endif
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(Rot)));
+ return hash.ToHashCode();
}
+ }
+ }
- public static System.IntPtr GetExport(string symbol)
+ public partial struct Transform : IEquatable
+ {
+ public bool Equals(Transform other)
+ {
+ fixed (Transform* __self = &this)
{
-#if NETCOREAPP3_0_OR_GREATER
- return System.Runtime.InteropServices.NativeLibrary.GetExport(LibraryHandle, symbol);
-#else
- if (IsLinux)
- {
- GetLastErrorLinux();
- System.IntPtr handle = GetExportLinux(LibraryHandle, symbol);
- if (handle != System.IntPtr.Zero)
- return handle;
- byte* errorResult = GetLastErrorLinux();
- if (errorResult == null)
- return handle;
- string errorMessage = System.Runtime.InteropServices.Marshal.PtrToStringAnsi((System.IntPtr)errorResult)!;
- throw new System.EntryPointNotFoundException(errorMessage);
- }
+ return new Span(__self, sizeof(Transform)).SequenceEqual(new Span(&other, sizeof(Transform)));
+ }
+ }
- if (IsOsx)
- {
- GetLastErrorOsx();
- System.IntPtr handle = GetExportOsx(LibraryHandle, symbol);
- if (handle != System.IntPtr.Zero)
- return handle;
- byte* errorResult = GetLastErrorOsx();
- if (errorResult == null)
- return handle;
- string errorMessage = System.Runtime.InteropServices.Marshal.PtrToStringAnsi((System.IntPtr)errorResult)!;
- throw new System.EntryPointNotFoundException(errorMessage);
- }
+ public override bool Equals(object? obj)
+ {
+ return obj is Transform other && Equals(other);
+ }
- if (IsWindows)
- {
- System.IntPtr handle = GetExportWindows(LibraryHandle, symbol);
- if (handle != System.IntPtr.Zero)
- return handle;
- int errorCode = GetLastErrorWindows();
- string errorMessage = new System.ComponentModel.Win32Exception(errorCode).Message;
- throw new System.EntryPointNotFoundException($"{errorMessage} \"{symbol}\" not found.");
- }
+ public static bool operator ==(Transform left, Transform right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(Transform left, Transform right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (Transform* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(Transform)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct Mat22 : IEquatable
+ {
+ public bool Equals(Mat22 other)
+ {
+ fixed (Mat22* __self = &this)
+ {
+ return new Span(__self, sizeof(Mat22)).SequenceEqual(new Span(&other, sizeof(Mat22)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is Mat22 other && Equals(other);
+ }
+
+ public static bool operator ==(Mat22 left, Mat22 right)
+ {
+ return left.Equals(right);
+ }
- throw new System.InvalidOperationException($"Failed to export symbol \"{symbol}\" from dll. Platform is not linux, mac, or windows.");
-#endif
+ public static bool operator !=(Mat22 left, Mat22 right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (Mat22* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(Mat22)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct AABB : IEquatable
+ {
+ public bool Equals(AABB other)
+ {
+ fixed (AABB* __self = &this)
+ {
+ return new Span(__self, sizeof(AABB)).SequenceEqual(new Span(&other, sizeof(AABB)));
}
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is AABB other && Equals(other);
+ }
- public static void ResolveLibrary()
+ public static bool operator ==(AABB left, AABB right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(AABB left, AABB right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (AABB* __self = &this)
{
- System.IntPtr handle = default;
-#if NETCOREAPP3_0_OR_GREATER
- foreach (string dllFilePath in DllFilePaths)
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(AABB)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct SimplexCache : IEquatable
+ {
+ public bool Equals(SimplexCache other)
+ {
+ fixed (SimplexCache* __self = &this)
{
- if (TryLoad(dllFilePath, out handle))
- goto Return;
+ return new Span(__self, sizeof(SimplexCache)).SequenceEqual(new Span(&other, sizeof(SimplexCache)));
}
-#else
- string fileExtension;
- if (IsLinux)
- fileExtension = ".so";
- else if (IsOsx)
- fileExtension = ".dylib";
- else if (IsWindows)
- fileExtension = ".dll";
- else
- throw new System.InvalidOperationException("Can't determine native library file extension for the current system.");
- foreach (string dllFilePath in DllFilePaths)
- {
- string fileName = System.IO.Path.GetFileName(dllFilePath);
- string parentDir = $"{dllFilePath}/..";
- string exeDir = System.IO.Path.GetFullPath(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)!);
- string searchDir = System.IO.Path.IsPathRooted(dllFilePath) ? System.IO.Path.GetFullPath(parentDir) + "/" : System.IO.Path.GetFullPath($"{exeDir}/{parentDir}") + "/";
- if (TryLoad($"{searchDir}{fileName}", out handle))
- goto Return;
- if (TryLoad($"{searchDir}{fileName}{fileExtension}", out handle))
- goto Return;
- if (TryLoad($"{searchDir}lib{fileName}", out handle))
- goto Return;
- if (TryLoad($"{searchDir}lib{fileName}{fileExtension}", out handle))
- goto Return;
- if (!fileName.StartsWith("lib") || fileName == "lib")
- continue;
- string unprefixed = fileName.Substring(4);
- if (TryLoad($"{searchDir}{unprefixed}", out handle))
- goto Return;
- if (TryLoad($"{searchDir}{unprefixed}{fileExtension}", out handle))
- goto Return;
- }
+ }
-#endif
-#if NET7_0_OR_GREATER
- handle = System.Runtime.InteropServices.NativeLibrary.GetMainProgramHandle();
-#else
- if (IsLinux)
- handle = LoadLibraryLinux(null, 0x101);
- else if (IsOsx)
- handle = LoadLibraryOsx(null, 0x101);
- else if (IsWindows)
- handle = GetModuleHandle(null);
-#endif
- Return:
- LibraryHandle = handle;
+ public override bool Equals(object? obj)
+ {
+ return obj is SimplexCache other && Equals(other);
+ }
+
+ public static bool operator ==(SimplexCache left, SimplexCache right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(SimplexCache left, SimplexCache right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (SimplexCache* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(SimplexCache)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct Hull : IEquatable
+ {
+ public bool Equals(Hull other)
+ {
+ fixed (Hull* __self = &this)
+ {
+ return new Span(__self, sizeof(Hull)).SequenceEqual(new Span(&other, sizeof(Hull)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is Hull other && Equals(other);
+ }
+
+ public static bool operator ==(Hull left, Hull right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(Hull left, Hull right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (Hull* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(Hull)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct RayCastInput : IEquatable
+ {
+ public bool Equals(RayCastInput other)
+ {
+ fixed (RayCastInput* __self = &this)
+ {
+ return new Span(__self, sizeof(RayCastInput)).SequenceEqual(new Span(&other, sizeof(RayCastInput)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is RayCastInput other && Equals(other);
+ }
+
+ public static bool operator ==(RayCastInput left, RayCastInput right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(RayCastInput left, RayCastInput right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (RayCastInput* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(RayCastInput)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct ShapeCastInput : IEquatable
+ {
+ public bool Equals(ShapeCastInput other)
+ {
+ fixed (ShapeCastInput* __self = &this)
+ {
+ return new Span(__self, sizeof(ShapeCastInput)).SequenceEqual(new Span(&other, sizeof(ShapeCastInput)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is ShapeCastInput other && Equals(other);
+ }
+
+ public static bool operator ==(ShapeCastInput left, ShapeCastInput right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(ShapeCastInput left, ShapeCastInput right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (ShapeCastInput* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(ShapeCastInput)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct CastOutput : IEquatable
+ {
+ public bool Equals(CastOutput other)
+ {
+ fixed (CastOutput* __self = &this)
+ {
+ return new Span(__self, sizeof(CastOutput)).SequenceEqual(new Span(&other, sizeof(CastOutput)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is CastOutput other && Equals(other);
+ }
+
+ public static bool operator ==(CastOutput left, CastOutput right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(CastOutput left, CastOutput right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (CastOutput* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(CastOutput)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct MassData : IEquatable
+ {
+ public bool Equals(MassData other)
+ {
+ fixed (MassData* __self = &this)
+ {
+ return new Span(__self, sizeof(MassData)).SequenceEqual(new Span(&other, sizeof(MassData)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is MassData other && Equals(other);
+ }
+
+ public static bool operator ==(MassData left, MassData right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(MassData left, MassData right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (MassData* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(MassData)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct Circle : IEquatable
+ {
+ public bool Equals(Circle other)
+ {
+ fixed (Circle* __self = &this)
+ {
+ return new Span(__self, sizeof(Circle)).SequenceEqual(new Span(&other, sizeof(Circle)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is Circle other && Equals(other);
+ }
+
+ public static bool operator ==(Circle left, Circle right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(Circle left, Circle right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (Circle* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(Circle)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct Capsule : IEquatable
+ {
+ public bool Equals(Capsule other)
+ {
+ fixed (Capsule* __self = &this)
+ {
+ return new Span(__self, sizeof(Capsule)).SequenceEqual(new Span(&other, sizeof(Capsule)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is Capsule other && Equals(other);
+ }
+
+ public static bool operator ==(Capsule left, Capsule right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(Capsule left, Capsule right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (Capsule* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(Capsule)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct Polygon : IEquatable
+ {
+ public bool Equals(Polygon other)
+ {
+ fixed (Polygon* __self = &this)
+ {
+ return new Span(__self, sizeof(Polygon)).SequenceEqual(new Span(&other, sizeof(Polygon)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is Polygon other && Equals(other);
+ }
+
+ public static bool operator ==(Polygon left, Polygon right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(Polygon left, Polygon right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (Polygon* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(Polygon)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct Segment : IEquatable
+ {
+ public bool Equals(Segment other)
+ {
+ fixed (Segment* __self = &this)
+ {
+ return new Span(__self, sizeof(Segment)).SequenceEqual(new Span(&other, sizeof(Segment)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is Segment other && Equals(other);
+ }
+
+ public static bool operator ==(Segment left, Segment right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(Segment left, Segment right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (Segment* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(Segment)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct ChainSegment : IEquatable
+ {
+ public bool Equals(ChainSegment other)
+ {
+ fixed (ChainSegment* __self = &this)
+ {
+ return new Span(__self, sizeof(ChainSegment)).SequenceEqual(new Span(&other, sizeof(ChainSegment)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is ChainSegment other && Equals(other);
+ }
+
+ public static bool operator ==(ChainSegment left, ChainSegment right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(ChainSegment left, ChainSegment right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (ChainSegment* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(ChainSegment)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct SegmentDistanceResult : IEquatable
+ {
+ public bool Equals(SegmentDistanceResult other)
+ {
+ fixed (SegmentDistanceResult* __self = &this)
+ {
+ return new Span(__self, sizeof(SegmentDistanceResult)).SequenceEqual(new Span(&other, sizeof(SegmentDistanceResult)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is SegmentDistanceResult other && Equals(other);
+ }
+
+ public static bool operator ==(SegmentDistanceResult left, SegmentDistanceResult right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(SegmentDistanceResult left, SegmentDistanceResult right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (SegmentDistanceResult* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(SegmentDistanceResult)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct ShapeProxy : IEquatable
+ {
+ public bool Equals(ShapeProxy other)
+ {
+ fixed (ShapeProxy* __self = &this)
+ {
+ return new Span(__self, sizeof(ShapeProxy)).SequenceEqual(new Span(&other, sizeof(ShapeProxy)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is ShapeProxy other && Equals(other);
+ }
+
+ public static bool operator ==(ShapeProxy left, ShapeProxy right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(ShapeProxy left, ShapeProxy right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (ShapeProxy* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(ShapeProxy)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct DistanceInput : IEquatable
+ {
+ public bool Equals(DistanceInput other)
+ {
+ fixed (DistanceInput* __self = &this)
+ {
+ return new Span(__self, sizeof(DistanceInput)).SequenceEqual(new Span(&other, sizeof(DistanceInput)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is DistanceInput other && Equals(other);
+ }
+
+ public static bool operator ==(DistanceInput left, DistanceInput right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(DistanceInput left, DistanceInput right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (DistanceInput* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(DistanceInput)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct DistanceOutput : IEquatable
+ {
+ public bool Equals(DistanceOutput other)
+ {
+ fixed (DistanceOutput* __self = &this)
+ {
+ return new Span(__self, sizeof(DistanceOutput)).SequenceEqual(new Span(&other, sizeof(DistanceOutput)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is DistanceOutput other && Equals(other);
+ }
+
+ public static bool operator ==(DistanceOutput left, DistanceOutput right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(DistanceOutput left, DistanceOutput right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (DistanceOutput* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(DistanceOutput)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct SimplexVertex : IEquatable
+ {
+ public bool Equals(SimplexVertex other)
+ {
+ fixed (SimplexVertex* __self = &this)
+ {
+ return new Span(__self, sizeof(SimplexVertex)).SequenceEqual(new Span(&other, sizeof(SimplexVertex)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is SimplexVertex other && Equals(other);
+ }
+
+ public static bool operator ==(SimplexVertex left, SimplexVertex right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(SimplexVertex left, SimplexVertex right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (SimplexVertex* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(SimplexVertex)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct Simplex : IEquatable
+ {
+ public bool Equals(Simplex other)
+ {
+ fixed (Simplex* __self = &this)
+ {
+ return new Span(__self, sizeof(Simplex)).SequenceEqual(new Span(&other, sizeof(Simplex)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is Simplex other && Equals(other);
+ }
+
+ public static bool operator ==(Simplex left, Simplex right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(Simplex left, Simplex right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (Simplex* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(Simplex)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct ShapeCastPairInput : IEquatable
+ {
+ public bool Equals(ShapeCastPairInput other)
+ {
+ fixed (ShapeCastPairInput* __self = &this)
+ {
+ return new Span(__self, sizeof(ShapeCastPairInput)).SequenceEqual(new Span(&other, sizeof(ShapeCastPairInput)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is ShapeCastPairInput other && Equals(other);
+ }
+
+ public static bool operator ==(ShapeCastPairInput left, ShapeCastPairInput right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(ShapeCastPairInput left, ShapeCastPairInput right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (ShapeCastPairInput* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(ShapeCastPairInput)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct Sweep : IEquatable
+ {
+ public bool Equals(Sweep other)
+ {
+ fixed (Sweep* __self = &this)
+ {
+ return new Span(__self, sizeof(Sweep)).SequenceEqual(new Span(&other, sizeof(Sweep)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is Sweep other && Equals(other);
+ }
+
+ public static bool operator ==(Sweep left, Sweep right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(Sweep left, Sweep right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (Sweep* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(Sweep)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct TOIInput : IEquatable
+ {
+ public bool Equals(TOIInput other)
+ {
+ fixed (TOIInput* __self = &this)
+ {
+ return new Span(__self, sizeof(TOIInput)).SequenceEqual(new Span(&other, sizeof(TOIInput)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is TOIInput other && Equals(other);
+ }
+
+ public static bool operator ==(TOIInput left, TOIInput right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(TOIInput left, TOIInput right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (TOIInput* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(TOIInput)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct TOIOutput : IEquatable
+ {
+ public bool Equals(TOIOutput other)
+ {
+ fixed (TOIOutput* __self = &this)
+ {
+ return new Span(__self, sizeof(TOIOutput)).SequenceEqual(new Span(&other, sizeof(TOIOutput)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is TOIOutput other && Equals(other);
+ }
+
+ public static bool operator ==(TOIOutput left, TOIOutput right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(TOIOutput left, TOIOutput right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (TOIOutput* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(TOIOutput)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct ManifoldPoint : IEquatable
+ {
+ public bool Equals(ManifoldPoint other)
+ {
+ fixed (ManifoldPoint* __self = &this)
+ {
+ return new Span(__self, sizeof(ManifoldPoint)).SequenceEqual(new Span(&other, sizeof(ManifoldPoint)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is ManifoldPoint other && Equals(other);
+ }
+
+ public static bool operator ==(ManifoldPoint left, ManifoldPoint right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(ManifoldPoint left, ManifoldPoint right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (ManifoldPoint* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(ManifoldPoint)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct Manifold : IEquatable
+ {
+ public bool Equals(Manifold other)
+ {
+ fixed (Manifold* __self = &this)
+ {
+ return new Span(__self, sizeof(Manifold)).SequenceEqual(new Span(&other, sizeof(Manifold)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is Manifold other && Equals(other);
+ }
+
+ public static bool operator ==(Manifold left, Manifold right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(Manifold left, Manifold right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (Manifold* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(Manifold)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct DynamicTree : IEquatable
+ {
+ public bool Equals(DynamicTree other)
+ {
+ fixed (DynamicTree* __self = &this)
+ {
+ return new Span(__self, sizeof(DynamicTree)).SequenceEqual(new Span(&other, sizeof(DynamicTree)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is DynamicTree other && Equals(other);
+ }
+
+ public static bool operator ==(DynamicTree left, DynamicTree right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(DynamicTree left, DynamicTree right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (DynamicTree* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(DynamicTree)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct TreeNode : IEquatable
+ {
+ public bool Equals(TreeNode other)
+ {
+ fixed (TreeNode* __self = &this)
+ {
+ return new Span(__self, sizeof(TreeNode)).SequenceEqual(new Span(&other, sizeof(TreeNode)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is TreeNode other && Equals(other);
+ }
+
+ public static bool operator ==(TreeNode left, TreeNode right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(TreeNode left, TreeNode right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (TreeNode* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(TreeNode)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct TreeStats : IEquatable
+ {
+ public bool Equals(TreeStats other)
+ {
+ fixed (TreeStats* __self = &this)
+ {
+ return new Span(__self, sizeof(TreeStats)).SequenceEqual(new Span(&other, sizeof(TreeStats)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is TreeStats other && Equals(other);
+ }
+
+ public static bool operator ==(TreeStats left, TreeStats right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(TreeStats left, TreeStats right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (TreeStats* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(TreeStats)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct WorldId : IEquatable
+ {
+ public bool Equals(WorldId other)
+ {
+ fixed (WorldId* __self = &this)
+ {
+ return new Span(__self, sizeof(WorldId)).SequenceEqual(new Span(&other, sizeof(WorldId)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is WorldId other && Equals(other);
+ }
+
+ public static bool operator ==(WorldId left, WorldId right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(WorldId left, WorldId right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (WorldId* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(WorldId)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct BodyId : IEquatable
+ {
+ public bool Equals(BodyId other)
+ {
+ fixed (BodyId* __self = &this)
+ {
+ return new Span(__self, sizeof(BodyId)).SequenceEqual(new Span(&other, sizeof(BodyId)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is BodyId other && Equals(other);
+ }
+
+ public static bool operator ==(BodyId left, BodyId right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(BodyId left, BodyId right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (BodyId* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(BodyId)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct ShapeId : IEquatable
+ {
+ public bool Equals(ShapeId other)
+ {
+ fixed (ShapeId* __self = &this)
+ {
+ return new Span(__self, sizeof(ShapeId)).SequenceEqual(new Span(&other, sizeof(ShapeId)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is ShapeId other && Equals(other);
+ }
+
+ public static bool operator ==(ShapeId left, ShapeId right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(ShapeId left, ShapeId right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (ShapeId* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(ShapeId)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct ChainId : IEquatable
+ {
+ public bool Equals(ChainId other)
+ {
+ fixed (ChainId* __self = &this)
+ {
+ return new Span(__self, sizeof(ChainId)).SequenceEqual(new Span(&other, sizeof(ChainId)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is ChainId other && Equals(other);
+ }
+
+ public static bool operator ==(ChainId left, ChainId right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(ChainId left, ChainId right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (ChainId* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(ChainId)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct JointId : IEquatable
+ {
+ public bool Equals(JointId other)
+ {
+ fixed (JointId* __self = &this)
+ {
+ return new Span(__self, sizeof(JointId)).SequenceEqual(new Span(&other, sizeof(JointId)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is JointId other && Equals(other);
+ }
+
+ public static bool operator ==(JointId left, JointId right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(JointId left, JointId right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (JointId* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(JointId)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct RayResult : IEquatable
+ {
+ public bool Equals(RayResult other)
+ {
+ fixed (RayResult* __self = &this)
+ {
+ return new Span(__self, sizeof(RayResult)).SequenceEqual(new Span(&other, sizeof(RayResult)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is RayResult other && Equals(other);
+ }
+
+ public static bool operator ==(RayResult left, RayResult right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(RayResult left, RayResult right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (RayResult* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(RayResult)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct WorldDef : IEquatable
+ {
+ public bool Equals(WorldDef other)
+ {
+ fixed (WorldDef* __self = &this)
+ {
+ return new Span(__self, sizeof(WorldDef)).SequenceEqual(new Span(&other, sizeof(WorldDef)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is WorldDef other && Equals(other);
+ }
+
+ public static bool operator ==(WorldDef left, WorldDef right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(WorldDef left, WorldDef right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (WorldDef* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(WorldDef)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct BodyDef : IEquatable
+ {
+ public bool Equals(BodyDef other)
+ {
+ fixed (BodyDef* __self = &this)
+ {
+ return new Span(__self, sizeof(BodyDef)).SequenceEqual(new Span(&other, sizeof(BodyDef)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is BodyDef other && Equals(other);
+ }
+
+ public static bool operator ==(BodyDef left, BodyDef right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(BodyDef left, BodyDef right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (BodyDef* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(BodyDef)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct Filter : IEquatable
+ {
+ public bool Equals(Filter other)
+ {
+ fixed (Filter* __self = &this)
+ {
+ return new Span(__self, sizeof(Filter)).SequenceEqual(new Span(&other, sizeof(Filter)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is Filter other && Equals(other);
+ }
+
+ public static bool operator ==(Filter left, Filter right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(Filter left, Filter right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (Filter* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(Filter)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct QueryFilter : IEquatable
+ {
+ public bool Equals(QueryFilter other)
+ {
+ fixed (QueryFilter* __self = &this)
+ {
+ return new Span(__self, sizeof(QueryFilter)).SequenceEqual(new Span(&other, sizeof(QueryFilter)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is QueryFilter other && Equals(other);
+ }
+
+ public static bool operator ==(QueryFilter left, QueryFilter right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(QueryFilter left, QueryFilter right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (QueryFilter* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(QueryFilter)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct ShapeDef : IEquatable
+ {
+ public bool Equals(ShapeDef other)
+ {
+ fixed (ShapeDef* __self = &this)
+ {
+ return new Span(__self, sizeof(ShapeDef)).SequenceEqual(new Span(&other, sizeof(ShapeDef)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is ShapeDef other && Equals(other);
+ }
+
+ public static bool operator ==(ShapeDef left, ShapeDef right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(ShapeDef left, ShapeDef right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (ShapeDef* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(ShapeDef)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct SurfaceMaterial : IEquatable
+ {
+ public bool Equals(SurfaceMaterial other)
+ {
+ fixed (SurfaceMaterial* __self = &this)
+ {
+ return new Span(__self, sizeof(SurfaceMaterial)).SequenceEqual(new Span(&other, sizeof(SurfaceMaterial)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is SurfaceMaterial other && Equals(other);
+ }
+
+ public static bool operator ==(SurfaceMaterial left, SurfaceMaterial right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(SurfaceMaterial left, SurfaceMaterial right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (SurfaceMaterial* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(SurfaceMaterial)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct ChainDef : IEquatable
+ {
+ public bool Equals(ChainDef other)
+ {
+ fixed (ChainDef* __self = &this)
+ {
+ return new Span(__self, sizeof(ChainDef)).SequenceEqual(new Span(&other, sizeof(ChainDef)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is ChainDef other && Equals(other);
+ }
+
+ public static bool operator ==(ChainDef left, ChainDef right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(ChainDef left, ChainDef right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (ChainDef* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(ChainDef)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct Profile : IEquatable
+ {
+ public bool Equals(Profile other)
+ {
+ fixed (Profile* __self = &this)
+ {
+ return new Span(__self, sizeof(Profile)).SequenceEqual(new Span(&other, sizeof(Profile)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is Profile other && Equals(other);
+ }
+
+ public static bool operator ==(Profile left, Profile right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(Profile left, Profile right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (Profile* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(Profile)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct Counters : IEquatable
+ {
+ public bool Equals(Counters other)
+ {
+ fixed (Counters* __self = &this)
+ {
+ return new Span(__self, sizeof(Counters)).SequenceEqual(new Span(&other, sizeof(Counters)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is Counters other && Equals(other);
+ }
+
+ public static bool operator ==(Counters left, Counters right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(Counters left, Counters right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (Counters* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(Counters)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct DistanceJointDef : IEquatable
+ {
+ public bool Equals(DistanceJointDef other)
+ {
+ fixed (DistanceJointDef* __self = &this)
+ {
+ return new Span(__self, sizeof(DistanceJointDef)).SequenceEqual(new Span(&other, sizeof(DistanceJointDef)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is DistanceJointDef other && Equals(other);
+ }
+
+ public static bool operator ==(DistanceJointDef left, DistanceJointDef right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(DistanceJointDef left, DistanceJointDef right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (DistanceJointDef* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(DistanceJointDef)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct MotorJointDef : IEquatable
+ {
+ public bool Equals(MotorJointDef other)
+ {
+ fixed (MotorJointDef* __self = &this)
+ {
+ return new Span(__self, sizeof(MotorJointDef)).SequenceEqual(new Span(&other, sizeof(MotorJointDef)));
+ }
+ }
+
+ public override bool Equals(object? obj)
+ {
+ return obj is MotorJointDef other && Equals(other);
+ }
+
+ public static bool operator ==(MotorJointDef left, MotorJointDef right)
+ {
+ return left.Equals(right);
+ }
+
+ public static bool operator !=(MotorJointDef left, MotorJointDef right)
+ {
+ return !(left == right);
+ }
+
+ public override int GetHashCode()
+ {
+ fixed (MotorJointDef* __self = &this)
+ {
+ HashCode hash = new();
+ hash.AddBytes(new Span(__self, sizeof(MotorJointDef)));
+ return hash.ToHashCode();
+ }
+ }
+ }
+
+ public partial struct MouseJointDef : IEquatable
+ {
+ public bool Equals(MouseJointDef other)
+ {
+ fixed (MouseJointDef* __self = &this)
+ {
+ return new Span