From 05b71a521d85d6fa5440512b9a78dc0e95b63304 Mon Sep 17 00:00:00 2001 From: erwincoumans Date: Wed, 4 Oct 2017 12:21:52 -0700 Subject: [PATCH] update unity3d/examples/NewBehaviourScript.cs to load a plane and cube, synchronize the world transform added debug rendering from CjLib (with DrawLine from my fork here: https://github.com/erwincoumans/unity-cj-lib) --- .../pybullet/unity3d/autogen/NativeMethods.cs | 538 +++++++++--------- .../unity3d/examples/NewBehaviourScript.cs | 84 ++- .../examples/NewBehaviourScript.cs.meta | 12 - 3 files changed, 350 insertions(+), 284 deletions(-) delete mode 100644 examples/pybullet/unity3d/examples/NewBehaviourScript.cs.meta diff --git a/examples/pybullet/unity3d/autogen/NativeMethods.cs b/examples/pybullet/unity3d/autogen/NativeMethods.cs index 60511833b..ec5e1543f 100644 --- a/examples/pybullet/unity3d/autogen/NativeMethods.cs +++ b/examples/pybullet/unity3d/autogen/NativeMethods.cs @@ -1194,68 +1194,70 @@ public struct b3SharedMemoryStatusHandle__ { } public partial class NativeMethods { - + + const string dllName = "pybullet_vs2010_x64_release.dll"; + /// Return Type: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///key: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ConnectSharedMemory")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ConnectSharedMemory")] public static extern System.IntPtr b3ConnectSharedMemory(int key) ; /// Return Type: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///key: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ConnectSharedMemory2")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ConnectSharedMemory2")] public static extern System.IntPtr b3ConnectSharedMemory2(int key) ; /// Return Type: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ConnectPhysicsDirect")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ConnectPhysicsDirect")] public static extern System.IntPtr b3ConnectPhysicsDirect() ; /// Return Type: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///argc: int ///argv: char** - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateInProcessPhysicsServerAndConnect")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateInProcessPhysicsServerAndConnect")] public static extern System.IntPtr b3CreateInProcessPhysicsServerAndConnect(int argc, ref System.IntPtr argv) ; /// Return Type: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///argc: int ///argv: char** - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateInProcessPhysicsServerAndConnectSharedMemory")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateInProcessPhysicsServerAndConnectSharedMemory")] public static extern System.IntPtr b3CreateInProcessPhysicsServerAndConnectSharedMemory(int argc, ref System.IntPtr argv) ; /// Return Type: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///argc: int ///argv: char** - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateInProcessPhysicsServerAndConnectMainThread")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateInProcessPhysicsServerAndConnectMainThread")] public static extern System.IntPtr b3CreateInProcessPhysicsServerAndConnectMainThread(int argc, ref System.IntPtr argv) ; /// Return Type: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///argc: int ///argv: char** - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateInProcessPhysicsServerAndConnectMainThreadSharedMemory")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateInProcessPhysicsServerAndConnectMainThreadSharedMemory")] public static extern System.IntPtr b3CreateInProcessPhysicsServerAndConnectMainThreadSharedMemory(int argc, ref System.IntPtr argv) ; /// Return Type: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///guiHelperPtr: void* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateInProcessPhysicsServerFromExistingExampleBrowserAndConnect")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateInProcessPhysicsServerFromExistingExampleBrowserAndConnect")] public static extern System.IntPtr b3CreateInProcessPhysicsServerFromExistingExampleBrowserAndConnect(System.IntPtr guiHelperPtr) ; /// Return Type: void ///clientHandle: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InProcessRenderSceneInternal")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InProcessRenderSceneInternal")] public static extern void b3InProcessRenderSceneInternal(IntPtr clientHandle) ; /// Return Type: void ///clientHandle: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///debugDrawMode: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InProcessDebugDrawInternal")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InProcessDebugDrawInternal")] public static extern void b3InProcessDebugDrawInternal(IntPtr clientHandle, int debugDrawMode) ; @@ -1263,7 +1265,7 @@ public static extern void b3InProcessDebugDrawInternal(IntPtr clientHandle, int ///clientHandle: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///x: float ///y: float - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InProcessMouseMoveCallback")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InProcessMouseMoveCallback")] public static extern int b3InProcessMouseMoveCallback(IntPtr clientHandle, float x, float y) ; @@ -1273,77 +1275,77 @@ public static extern int b3InProcessMouseMoveCallback(IntPtr clientHandle, floa ///state: int ///x: float ///y: float - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InProcessMouseButtonCallback")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InProcessMouseButtonCallback")] public static extern int b3InProcessMouseButtonCallback(IntPtr clientHandle, int button, int state, float x, float y) ; /// Return Type: void ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3DisconnectSharedMemory")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3DisconnectSharedMemory")] public static extern void b3DisconnectSharedMemory(IntPtr physClient) ; /// Return Type: int ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CanSubmitCommand")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CanSubmitCommand")] public static extern int b3CanSubmitCommand(IntPtr physClient) ; /// Return Type: b3SharedMemoryStatusHandle->b3SharedMemoryStatusHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SubmitClientCommandAndWaitStatus")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SubmitClientCommandAndWaitStatus")] public static extern System.IntPtr b3SubmitClientCommandAndWaitStatus(IntPtr physClient, IntPtr commandHandle) ; /// Return Type: int ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SubmitClientCommand")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SubmitClientCommand")] public static extern int b3SubmitClientCommand(IntPtr physClient, IntPtr commandHandle) ; /// Return Type: b3SharedMemoryStatusHandle->b3SharedMemoryStatusHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ProcessServerStatus")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ProcessServerStatus")] public static extern System.IntPtr b3ProcessServerStatus(IntPtr physClient) ; /// Return Type: int ///statusHandle: b3SharedMemoryStatusHandle->b3SharedMemoryStatusHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetStatusType")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetStatusType")] public static extern int b3GetStatusType(IntPtr statusHandle) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateCustomCommand")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateCustomCommand")] public static extern System.IntPtr b3CreateCustomCommand(IntPtr physClient) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///pluginPath: char* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CustomCommandLoadPlugin")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CustomCommandLoadPlugin")] public static extern void b3CustomCommandLoadPlugin(IntPtr commandHandle, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string pluginPath) ; /// Return Type: int ///statusHandle: b3SharedMemoryStatusHandle->b3SharedMemoryStatusHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetStatusPluginUniqueId")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetStatusPluginUniqueId")] public static extern int b3GetStatusPluginUniqueId(IntPtr statusHandle) ; /// Return Type: int ///statusHandle: b3SharedMemoryStatusHandle->b3SharedMemoryStatusHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetStatusPluginCommandResult")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetStatusPluginCommandResult")] public static extern int b3GetStatusPluginCommandResult(IntPtr statusHandle) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///pluginUniqueId: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CustomCommandUnloadPlugin")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CustomCommandUnloadPlugin")] public static extern void b3CustomCommandUnloadPlugin(IntPtr commandHandle, int pluginUniqueId) ; @@ -1351,21 +1353,21 @@ public static extern void b3CustomCommandUnloadPlugin(IntPtr commandHandle, int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///pluginUniqueId: int ///textArguments: char* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CustomCommandExecutePluginCommand")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CustomCommandExecutePluginCommand")] public static extern void b3CustomCommandExecutePluginCommand(IntPtr commandHandle, int pluginUniqueId, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string textArguments) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///intVal: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CustomCommandExecuteAddIntArgument")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CustomCommandExecuteAddIntArgument")] public static extern void b3CustomCommandExecuteAddIntArgument(IntPtr commandHandle, int intVal) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///floatVal: float - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CustomCommandExecuteAddFloatArgument")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CustomCommandExecuteAddFloatArgument")] public static extern void b3CustomCommandExecuteAddFloatArgument(IntPtr commandHandle, float floatVal) ; @@ -1373,13 +1375,13 @@ public static extern void b3CustomCommandExecuteAddFloatArgument(IntPtr command ///statusHandle: b3SharedMemoryStatusHandle->b3SharedMemoryStatusHandle__* ///bodyIndicesOut: int* ///bodyIndicesCapacity: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetStatusBodyIndices")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetStatusBodyIndices")] public static extern int b3GetStatusBodyIndices(IntPtr statusHandle, ref int bodyIndicesOut, int bodyIndicesCapacity) ; /// Return Type: int ///statusHandle: b3SharedMemoryStatusHandle->b3SharedMemoryStatusHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetStatusBodyIndex")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetStatusBodyIndex")] public static extern int b3GetStatusBodyIndex(IntPtr statusHandle) ; @@ -1392,14 +1394,14 @@ public static extern int b3GetStatusBodyIndex(IntPtr statusHandle) ; ///actualStateQ: double** ///actualStateQdot: double** ///jointReactionForces: double** - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetStatusActualState")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetStatusActualState")] public static extern int b3GetStatusActualState(IntPtr statusHandle, ref int bodyUniqueId, ref int numDegreeOfFreedomQ, ref int numDegreeOfFreedomU, ref System.IntPtr rootLocalInertialFrame, ref System.IntPtr actualStateQ, ref System.IntPtr actualStateQdot, ref System.IntPtr jointReactionForces) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///bodyUniqueId: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestCollisionInfoCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestCollisionInfoCommandInit")] public static extern System.IntPtr b3RequestCollisionInfoCommandInit(IntPtr physClient, int bodyUniqueId) ; @@ -1408,33 +1410,33 @@ public static extern System.IntPtr b3RequestCollisionInfoCommandInit(IntPtr phy ///linkIndex: int ///aabbMin: double* ///aabbMax: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetStatusAABB")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetStatusAABB")] public static extern int b3GetStatusAABB(IntPtr statusHandle, int linkIndex, ref double aabbMin, ref double aabbMax) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitSyncBodyInfoCommand")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitSyncBodyInfoCommand")] public static extern System.IntPtr b3InitSyncBodyInfoCommand(IntPtr physClient) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///bodyUniqueId: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitRemoveBodyCommand")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitRemoveBodyCommand")] public static extern System.IntPtr b3InitRemoveBodyCommand(IntPtr physClient, int bodyUniqueId) ; /// Return Type: int ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetNumBodies")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetNumBodies")] public static extern int b3GetNumBodies(IntPtr physClient) ; /// Return Type: int ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///serialIndex: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetBodyUniqueId")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetBodyUniqueId")] public static extern int b3GetBodyUniqueId(IntPtr physClient, int serialIndex) ; @@ -1442,14 +1444,14 @@ public static extern int b3GetBodyUniqueId(IntPtr physClient, int serialIndex) ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///bodyUniqueId: int ///info: b3BodyInfo* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetBodyInfo")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetBodyInfo")] public static extern int b3GetBodyInfo(IntPtr physClient, int bodyUniqueId, ref b3BodyInfo info) ; /// Return Type: int ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///bodyId: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetNumJoints")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetNumJoints")] public static extern int b3GetNumJoints(IntPtr physClient, int bodyId) ; @@ -1458,7 +1460,7 @@ public static extern int b3GetNumJoints(IntPtr physClient, int bodyId) ; ///bodyIndex: int ///jointIndex: int ///info: b3JointInfo* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetJointInfo")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetJointInfo")] public static extern int b3GetJointInfo(IntPtr physClient, int bodyIndex, int jointIndex, ref b3JointInfo info) ; @@ -1466,20 +1468,20 @@ public static extern int b3GetJointInfo(IntPtr physClient, int bodyIndex, int j ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///bodyUniqueId: int ///linkIndex: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetDynamicsInfoCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetDynamicsInfoCommandInit")] public static extern System.IntPtr b3GetDynamicsInfoCommandInit(IntPtr physClient, int bodyUniqueId, int linkIndex) ; /// Return Type: int ///statusHandle: b3SharedMemoryStatusHandle->b3SharedMemoryStatusHandle__* ///info: b3DynamicsInfo* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetDynamicsInfo")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetDynamicsInfo")] public static extern int b3GetDynamicsInfo(IntPtr statusHandle, ref b3DynamicsInfo info) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitChangeDynamicsInfo")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitChangeDynamicsInfo")] public static extern System.IntPtr b3InitChangeDynamicsInfo(IntPtr physClient) ; @@ -1488,7 +1490,7 @@ public static extern System.IntPtr b3InitChangeDynamicsInfo(IntPtr physClient) ///bodyUniqueId: int ///linkIndex: int ///mass: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ChangeDynamicsInfoSetMass")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ChangeDynamicsInfoSetMass")] public static extern int b3ChangeDynamicsInfoSetMass(IntPtr commandHandle, int bodyUniqueId, int linkIndex, double mass) ; @@ -1497,7 +1499,7 @@ public static extern int b3ChangeDynamicsInfoSetMass(IntPtr commandHandle, int ///bodyUniqueId: int ///linkIndex: int ///lateralFriction: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ChangeDynamicsInfoSetLateralFriction")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ChangeDynamicsInfoSetLateralFriction")] public static extern int b3ChangeDynamicsInfoSetLateralFriction(IntPtr commandHandle, int bodyUniqueId, int linkIndex, double lateralFriction) ; @@ -1506,7 +1508,7 @@ public static extern int b3ChangeDynamicsInfoSetLateralFriction(IntPtr commandH ///bodyUniqueId: int ///linkIndex: int ///friction: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ChangeDynamicsInfoSetSpinningFriction")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ChangeDynamicsInfoSetSpinningFriction")] public static extern int b3ChangeDynamicsInfoSetSpinningFriction(IntPtr commandHandle, int bodyUniqueId, int linkIndex, double friction) ; @@ -1515,7 +1517,7 @@ public static extern int b3ChangeDynamicsInfoSetSpinningFriction(IntPtr command ///bodyUniqueId: int ///linkIndex: int ///friction: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ChangeDynamicsInfoSetRollingFriction")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ChangeDynamicsInfoSetRollingFriction")] public static extern int b3ChangeDynamicsInfoSetRollingFriction(IntPtr commandHandle, int bodyUniqueId, int linkIndex, double friction) ; @@ -1524,7 +1526,7 @@ public static extern int b3ChangeDynamicsInfoSetRollingFriction(IntPtr commandH ///bodyUniqueId: int ///linkIndex: int ///restitution: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ChangeDynamicsInfoSetRestitution")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ChangeDynamicsInfoSetRestitution")] public static extern int b3ChangeDynamicsInfoSetRestitution(IntPtr commandHandle, int bodyUniqueId, int linkIndex, double restitution) ; @@ -1532,7 +1534,7 @@ public static extern int b3ChangeDynamicsInfoSetRestitution(IntPtr commandHandl ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///bodyUniqueId: int ///linearDamping: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ChangeDynamicsInfoSetLinearDamping")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ChangeDynamicsInfoSetLinearDamping")] public static extern int b3ChangeDynamicsInfoSetLinearDamping(IntPtr commandHandle, int bodyUniqueId, double linearDamping) ; @@ -1540,7 +1542,7 @@ public static extern int b3ChangeDynamicsInfoSetLinearDamping(IntPtr commandHan ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///bodyUniqueId: int ///angularDamping: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ChangeDynamicsInfoSetAngularDamping")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ChangeDynamicsInfoSetAngularDamping")] public static extern int b3ChangeDynamicsInfoSetAngularDamping(IntPtr commandHandle, int bodyUniqueId, double angularDamping) ; @@ -1550,7 +1552,7 @@ public static extern int b3ChangeDynamicsInfoSetAngularDamping(IntPtr commandHa ///linkIndex: int ///contactStiffness: double ///contactDamping: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ChangeDynamicsInfoSetContactStiffnessAndDamping")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ChangeDynamicsInfoSetContactStiffnessAndDamping")] public static extern int b3ChangeDynamicsInfoSetContactStiffnessAndDamping(IntPtr commandHandle, int bodyUniqueId, int linkIndex, double contactStiffness, double contactDamping) ; @@ -1559,7 +1561,7 @@ public static extern int b3ChangeDynamicsInfoSetContactStiffnessAndDamping(IntP ///bodyUniqueId: int ///linkIndex: int ///frictionAnchor: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ChangeDynamicsInfoSetFrictionAnchor")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ChangeDynamicsInfoSetFrictionAnchor")] public static extern int b3ChangeDynamicsInfoSetFrictionAnchor(IntPtr commandHandle, int bodyUniqueId, int linkIndex, int frictionAnchor) ; @@ -1570,82 +1572,82 @@ public static extern int b3ChangeDynamicsInfoSetFrictionAnchor(IntPtr commandHa ///childBodyIndex: int ///childJointIndex: int ///info: b3JointInfo* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitCreateUserConstraintCommand")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitCreateUserConstraintCommand")] public static extern System.IntPtr b3InitCreateUserConstraintCommand(IntPtr physClient, int parentBodyIndex, int parentJointIndex, int childBodyIndex, int childJointIndex, ref b3JointInfo info) ; /// Return Type: int ///statusHandle: b3SharedMemoryStatusHandle->b3SharedMemoryStatusHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetStatusUserConstraintUniqueId")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetStatusUserConstraintUniqueId")] public static extern int b3GetStatusUserConstraintUniqueId(IntPtr statusHandle) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///userConstraintUniqueId: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitChangeUserConstraintCommand")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitChangeUserConstraintCommand")] public static extern System.IntPtr b3InitChangeUserConstraintCommand(IntPtr physClient, int userConstraintUniqueId) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///jointChildPivot: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitChangeUserConstraintSetPivotInB")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitChangeUserConstraintSetPivotInB")] public static extern int b3InitChangeUserConstraintSetPivotInB(IntPtr commandHandle, ref double jointChildPivot) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///jointChildFrameOrn: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitChangeUserConstraintSetFrameInB")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitChangeUserConstraintSetFrameInB")] public static extern int b3InitChangeUserConstraintSetFrameInB(IntPtr commandHandle, ref double jointChildFrameOrn) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///maxAppliedForce: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitChangeUserConstraintSetMaxForce")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitChangeUserConstraintSetMaxForce")] public static extern int b3InitChangeUserConstraintSetMaxForce(IntPtr commandHandle, double maxAppliedForce) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///gearRatio: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitChangeUserConstraintSetGearRatio")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitChangeUserConstraintSetGearRatio")] public static extern int b3InitChangeUserConstraintSetGearRatio(IntPtr commandHandle, double gearRatio) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///gearAuxLink: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitChangeUserConstraintSetGearAuxLink")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitChangeUserConstraintSetGearAuxLink")] public static extern int b3InitChangeUserConstraintSetGearAuxLink(IntPtr commandHandle, int gearAuxLink) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///relativePositionTarget: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitChangeUserConstraintSetRelativePositionTarget")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitChangeUserConstraintSetRelativePositionTarget")] public static extern int b3InitChangeUserConstraintSetRelativePositionTarget(IntPtr commandHandle, double relativePositionTarget) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///erp: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitChangeUserConstraintSetERP")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitChangeUserConstraintSetERP")] public static extern int b3InitChangeUserConstraintSetERP(IntPtr commandHandle, double erp) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///userConstraintUniqueId: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitRemoveUserConstraintCommand")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitRemoveUserConstraintCommand")] public static extern System.IntPtr b3InitRemoveUserConstraintCommand(IntPtr physClient, int userConstraintUniqueId) ; /// Return Type: int ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetNumUserConstraints")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetNumUserConstraints")] public static extern int b3GetNumUserConstraints(IntPtr physClient) ; @@ -1653,34 +1655,34 @@ public static extern int b3GetNumUserConstraints(IntPtr physClient) ; ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///constraintUniqueId: int ///info: b3UserConstraint* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetUserConstraintInfo")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetUserConstraintInfo")] public static extern int b3GetUserConstraintInfo(IntPtr physClient, int constraintUniqueId, ref b3UserConstraint info) ; /// Return Type: int ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///serialIndex: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetUserConstraintId")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetUserConstraintId")] public static extern int b3GetUserConstraintId(IntPtr physClient, int serialIndex) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///debugMode: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitRequestDebugLinesCommand")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitRequestDebugLinesCommand")] public static extern System.IntPtr b3InitRequestDebugLinesCommand(IntPtr physClient, int debugMode) ; /// Return Type: void ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///lines: b3DebugLines* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetDebugLines")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetDebugLines")] public static extern void b3GetDebugLines(IntPtr physClient, ref b3DebugLines lines) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitConfigureOpenGLVisualizer")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitConfigureOpenGLVisualizer")] public static extern System.IntPtr b3InitConfigureOpenGLVisualizer(IntPtr physClient) ; @@ -1688,7 +1690,7 @@ public static extern System.IntPtr b3InitConfigureOpenGLVisualizer(IntPtr physC ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///flag: int ///enabled: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ConfigureOpenGLVisualizerSetVisualizationFlags")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ConfigureOpenGLVisualizerSetVisualizationFlags")] public static extern void b3ConfigureOpenGLVisualizerSetVisualizationFlags(IntPtr commandHandle, int flag, int enabled) ; @@ -1698,20 +1700,20 @@ public static extern void b3ConfigureOpenGLVisualizerSetVisualizationFlags(IntP ///cameraPitch: float ///cameraYaw: float ///cameraTargetPosition: float* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ConfigureOpenGLVisualizerSetViewMatrix")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ConfigureOpenGLVisualizerSetViewMatrix")] public static extern void b3ConfigureOpenGLVisualizerSetViewMatrix(IntPtr commandHandle, float cameraDistance, float cameraPitch, float cameraYaw, ref float cameraTargetPosition) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitRequestOpenGLVisualizerCameraCommand")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitRequestOpenGLVisualizerCameraCommand")] public static extern System.IntPtr b3InitRequestOpenGLVisualizerCameraCommand(IntPtr physClient) ; /// Return Type: int ///statusHandle: b3SharedMemoryStatusHandle->b3SharedMemoryStatusHandle__* ///camera: b3OpenGLVisualizerCameraInfo* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetStatusOpenGLVisualizerCamera")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetStatusOpenGLVisualizerCamera")] public static extern int b3GetStatusOpenGLVisualizerCamera(IntPtr statusHandle, ref b3OpenGLVisualizerCameraInfo camera) ; @@ -1722,7 +1724,7 @@ public static extern int b3GetStatusOpenGLVisualizerCamera(IntPtr statusHandle, ///colorRGB: double* ///lineWidth: double ///lifeTime: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitUserDebugDrawAddLine3D")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitUserDebugDrawAddLine3D")] public static extern System.IntPtr b3InitUserDebugDrawAddLine3D(IntPtr physClient, ref double fromXYZ, ref double toXYZ, ref double colorRGB, double lineWidth, double lifeTime) ; @@ -1733,21 +1735,21 @@ public static extern System.IntPtr b3InitUserDebugDrawAddLine3D(IntPtr physClie ///colorRGB: double* ///textSize: double ///lifeTime: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitUserDebugDrawAddText3D")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitUserDebugDrawAddText3D")] public static extern System.IntPtr b3InitUserDebugDrawAddText3D(IntPtr physClient, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string txt, ref double positionXYZ, ref double colorRGB, double textSize, double lifeTime) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///optionFlags: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3UserDebugTextSetOptionFlags")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3UserDebugTextSetOptionFlags")] public static extern void b3UserDebugTextSetOptionFlags(IntPtr commandHandle, int optionFlags) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///orientation: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3UserDebugTextSetOrientation")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3UserDebugTextSetOrientation")] public static extern void b3UserDebugTextSetOrientation(IntPtr commandHandle, ref double orientation) ; @@ -1755,7 +1757,7 @@ public static extern void b3UserDebugTextSetOrientation(IntPtr commandHandle, r ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///objectUniqueId: int ///linkIndex: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3UserDebugItemSetParentObject")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3UserDebugItemSetParentObject")] public static extern void b3UserDebugItemSetParentObject(IntPtr commandHandle, int objectUniqueId, int linkIndex) ; @@ -1765,40 +1767,40 @@ public static extern void b3UserDebugItemSetParentObject(IntPtr commandHandle, ///rangeMin: double ///rangeMax: double ///startValue: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitUserDebugAddParameter")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitUserDebugAddParameter")] public static extern System.IntPtr b3InitUserDebugAddParameter(IntPtr physClient, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string txt, double rangeMin, double rangeMax, double startValue) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///debugItemUniqueId: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitUserDebugReadParameter")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitUserDebugReadParameter")] public static extern System.IntPtr b3InitUserDebugReadParameter(IntPtr physClient, int debugItemUniqueId) ; /// Return Type: int ///statusHandle: b3SharedMemoryStatusHandle->b3SharedMemoryStatusHandle__* ///paramValue: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetStatusDebugParameterValue")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetStatusDebugParameterValue")] public static extern int b3GetStatusDebugParameterValue(IntPtr statusHandle, ref double paramValue) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///debugItemUniqueId: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitUserDebugDrawRemove")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitUserDebugDrawRemove")] public static extern System.IntPtr b3InitUserDebugDrawRemove(IntPtr physClient, int debugItemUniqueId) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitUserDebugDrawRemoveAll")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitUserDebugDrawRemoveAll")] public static extern System.IntPtr b3InitUserDebugDrawRemoveAll(IntPtr physClient) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitDebugDrawingCommand")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitDebugDrawingCommand")] public static extern System.IntPtr b3InitDebugDrawingCommand(IntPtr physClient) ; @@ -1807,7 +1809,7 @@ public static extern System.IntPtr b3InitDebugDrawingCommand(IntPtr physClient) ///objectUniqueId: int ///linkIndex: int ///objectColorRGB: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SetDebugObjectColor")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SetDebugObjectColor")] public static extern void b3SetDebugObjectColor(IntPtr commandHandle, int objectUniqueId, int linkIndex, ref double objectColorRGB) ; @@ -1815,19 +1817,19 @@ public static extern void b3SetDebugObjectColor(IntPtr commandHandle, int objec ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///objectUniqueId: int ///linkIndex: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RemoveDebugObjectColor")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RemoveDebugObjectColor")] public static extern void b3RemoveDebugObjectColor(IntPtr commandHandle, int objectUniqueId, int linkIndex) ; /// Return Type: int ///statusHandle: b3SharedMemoryStatusHandle->b3SharedMemoryStatusHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetDebugItemUniqueId")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetDebugItemUniqueId")] public static extern int b3GetDebugItemUniqueId(IntPtr statusHandle) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitRequestCameraImage")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitRequestCameraImage")] public static extern System.IntPtr b3InitRequestCameraImage(IntPtr physClient) ; @@ -1835,7 +1837,7 @@ public static extern System.IntPtr b3InitRequestCameraImage(IntPtr physClient) ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///viewMatrix: float* ///projectionMatrix: float* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestCameraImageSetCameraMatrices")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestCameraImageSetCameraMatrices")] public static extern void b3RequestCameraImageSetCameraMatrices(IntPtr commandHandle, ref float viewMatrix, ref float projectionMatrix) ; @@ -1843,70 +1845,70 @@ public static extern void b3RequestCameraImageSetCameraMatrices(IntPtr commandH ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///width: int ///height: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestCameraImageSetPixelResolution")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestCameraImageSetPixelResolution")] public static extern void b3RequestCameraImageSetPixelResolution(IntPtr commandHandle, int width, int height) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///lightDirection: float* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestCameraImageSetLightDirection")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestCameraImageSetLightDirection")] public static extern void b3RequestCameraImageSetLightDirection(IntPtr commandHandle, ref float lightDirection) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///lightColor: float* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestCameraImageSetLightColor")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestCameraImageSetLightColor")] public static extern void b3RequestCameraImageSetLightColor(IntPtr commandHandle, ref float lightColor) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///lightDistance: float - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestCameraImageSetLightDistance")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestCameraImageSetLightDistance")] public static extern void b3RequestCameraImageSetLightDistance(IntPtr commandHandle, float lightDistance) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///lightAmbientCoeff: float - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestCameraImageSetLightAmbientCoeff")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestCameraImageSetLightAmbientCoeff")] public static extern void b3RequestCameraImageSetLightAmbientCoeff(IntPtr commandHandle, float lightAmbientCoeff) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///lightDiffuseCoeff: float - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestCameraImageSetLightDiffuseCoeff")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestCameraImageSetLightDiffuseCoeff")] public static extern void b3RequestCameraImageSetLightDiffuseCoeff(IntPtr commandHandle, float lightDiffuseCoeff) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///lightSpecularCoeff: float - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestCameraImageSetLightSpecularCoeff")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestCameraImageSetLightSpecularCoeff")] public static extern void b3RequestCameraImageSetLightSpecularCoeff(IntPtr commandHandle, float lightSpecularCoeff) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///hasShadow: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestCameraImageSetShadow")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestCameraImageSetShadow")] public static extern void b3RequestCameraImageSetShadow(IntPtr commandHandle, int hasShadow) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///renderer: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestCameraImageSelectRenderer")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestCameraImageSelectRenderer")] public static extern void b3RequestCameraImageSelectRenderer(IntPtr commandHandle, int renderer) ; /// Return Type: void ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///imageData: b3CameraImageData* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetCameraImageData")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetCameraImageData")] public static extern void b3GetCameraImageData(IntPtr physClient, ref b3CameraImageData imageData) ; @@ -1915,7 +1917,7 @@ public static extern void b3GetCameraImageData(IntPtr physClient, ref b3CameraI ///cameraTargetPosition: float* ///cameraUp: float* ///viewMatrix: float* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ComputeViewMatrixFromPositions")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ComputeViewMatrixFromPositions")] public static extern void b3ComputeViewMatrixFromPositions(ref float cameraPosition, ref float cameraTargetPosition, ref float cameraUp, ref float viewMatrix) ; @@ -1927,7 +1929,7 @@ public static extern void b3ComputeViewMatrixFromPositions(ref float cameraPosi ///roll: float ///upAxis: int ///viewMatrix: float* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ComputeViewMatrixFromYawPitchRoll")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ComputeViewMatrixFromYawPitchRoll")] public static extern void b3ComputeViewMatrixFromYawPitchRoll(ref float cameraTargetPosition, float distance, float yaw, float pitch, float roll, int upAxis, ref float viewMatrix) ; @@ -1936,7 +1938,7 @@ public static extern void b3ComputeViewMatrixFromYawPitchRoll(ref float cameraT ///cameraPosition: float* ///cameraTargetPosition: float* ///cameraUp: float* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ComputePositionFromViewMatrix")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ComputePositionFromViewMatrix")] public static extern void b3ComputePositionFromViewMatrix(ref float viewMatrix, ref float cameraPosition, ref float cameraTargetPosition, ref float cameraUp) ; @@ -1948,7 +1950,7 @@ public static extern void b3ComputePositionFromViewMatrix(ref float viewMatrix, ///nearVal: float ///farVal: float ///projectionMatrix: float* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ComputeProjectionMatrix")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ComputeProjectionMatrix")] public static extern void b3ComputeProjectionMatrix(float left, float right, float bottom, float top, float nearVal, float farVal, ref float projectionMatrix) ; @@ -1958,7 +1960,7 @@ public static extern void b3ComputeProjectionMatrix(float left, float right, fl ///nearVal: float ///farVal: float ///projectionMatrix: float* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ComputeProjectionMatrixFOV")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ComputeProjectionMatrixFOV")] public static extern void b3ComputeProjectionMatrixFOV(float fov, float aspect, float nearVal, float farVal, ref float projectionMatrix) ; @@ -1967,7 +1969,7 @@ public static extern void b3ComputeProjectionMatrixFOV(float fov, float aspect, ///cameraPosition: float* ///cameraTargetPosition: float* ///cameraUp: float* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestCameraImageSetViewMatrix")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestCameraImageSetViewMatrix")] public static extern void b3RequestCameraImageSetViewMatrix(IntPtr commandHandle, ref float cameraPosition, ref float cameraTargetPosition, ref float cameraUp) ; @@ -1979,7 +1981,7 @@ public static extern void b3RequestCameraImageSetViewMatrix(IntPtr commandHandl ///pitch: float ///roll: float ///upAxis: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestCameraImageSetViewMatrix2")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestCameraImageSetViewMatrix2")] public static extern void b3RequestCameraImageSetViewMatrix2(IntPtr commandHandle, ref float cameraTargetPosition, float distance, float yaw, float pitch, float roll, int upAxis) ; @@ -1991,7 +1993,7 @@ public static extern void b3RequestCameraImageSetViewMatrix2(IntPtr commandHand ///top: float ///nearVal: float ///farVal: float - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestCameraImageSetProjectionMatrix")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestCameraImageSetProjectionMatrix")] public static extern void b3RequestCameraImageSetProjectionMatrix(IntPtr commandHandle, float left, float right, float bottom, float top, float nearVal, float farVal) ; @@ -2001,96 +2003,96 @@ public static extern void b3RequestCameraImageSetProjectionMatrix(IntPtr comman ///aspect: float ///nearVal: float ///farVal: float - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestCameraImageSetFOVProjectionMatrix")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestCameraImageSetFOVProjectionMatrix")] public static extern void b3RequestCameraImageSetFOVProjectionMatrix(IntPtr commandHandle, float fov, float aspect, float nearVal, float farVal) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitRequestContactPointInformation")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitRequestContactPointInformation")] public static extern System.IntPtr b3InitRequestContactPointInformation(IntPtr physClient) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///bodyUniqueIdA: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SetContactFilterBodyA")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SetContactFilterBodyA")] public static extern void b3SetContactFilterBodyA(IntPtr commandHandle, int bodyUniqueIdA) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///bodyUniqueIdB: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SetContactFilterBodyB")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SetContactFilterBodyB")] public static extern void b3SetContactFilterBodyB(IntPtr commandHandle, int bodyUniqueIdB) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///linkIndexA: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SetContactFilterLinkA")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SetContactFilterLinkA")] public static extern void b3SetContactFilterLinkA(IntPtr commandHandle, int linkIndexA) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///linkIndexB: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SetContactFilterLinkB")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SetContactFilterLinkB")] public static extern void b3SetContactFilterLinkB(IntPtr commandHandle, int linkIndexB) ; /// Return Type: void ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///contactPointData: b3ContactInformation* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetContactPointInformation")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetContactPointInformation")] public static extern void b3GetContactPointInformation(IntPtr physClient, ref b3ContactInformation contactPointData) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitClosestDistanceQuery")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitClosestDistanceQuery")] public static extern System.IntPtr b3InitClosestDistanceQuery(IntPtr physClient) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///bodyUniqueIdA: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SetClosestDistanceFilterBodyA")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SetClosestDistanceFilterBodyA")] public static extern void b3SetClosestDistanceFilterBodyA(IntPtr commandHandle, int bodyUniqueIdA) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///linkIndexA: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SetClosestDistanceFilterLinkA")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SetClosestDistanceFilterLinkA")] public static extern void b3SetClosestDistanceFilterLinkA(IntPtr commandHandle, int linkIndexA) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///bodyUniqueIdB: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SetClosestDistanceFilterBodyB")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SetClosestDistanceFilterBodyB")] public static extern void b3SetClosestDistanceFilterBodyB(IntPtr commandHandle, int bodyUniqueIdB) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///linkIndexB: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SetClosestDistanceFilterLinkB")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SetClosestDistanceFilterLinkB")] public static extern void b3SetClosestDistanceFilterLinkB(IntPtr commandHandle, int linkIndexB) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///distance: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SetClosestDistanceThreshold")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SetClosestDistanceThreshold")] public static extern void b3SetClosestDistanceThreshold(IntPtr commandHandle, double distance) ; /// Return Type: void ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///contactPointInfo: b3ContactInformation* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetClosestPointInformation")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetClosestPointInformation")] public static extern void b3GetClosestPointInformation(IntPtr physClient, ref b3ContactInformation contactPointInfo) ; @@ -2098,41 +2100,41 @@ public static extern void b3GetClosestPointInformation(IntPtr physClient, ref b ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///aabbMin: double* ///aabbMax: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitAABBOverlapQuery")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitAABBOverlapQuery")] public static extern System.IntPtr b3InitAABBOverlapQuery(IntPtr physClient, ref double aabbMin, ref double aabbMax) ; /// Return Type: void ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///data: b3AABBOverlapData* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetAABBOverlapResults")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetAABBOverlapResults")] public static extern void b3GetAABBOverlapResults(IntPtr physClient, ref b3AABBOverlapData data) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///bodyUniqueIdA: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitRequestVisualShapeInformation")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitRequestVisualShapeInformation")] public static extern System.IntPtr b3InitRequestVisualShapeInformation(IntPtr physClient, int bodyUniqueIdA) ; /// Return Type: void ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///visualShapeInfo: b3VisualShapeInformation* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetVisualShapeInformation")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetVisualShapeInformation")] public static extern void b3GetVisualShapeInformation(IntPtr physClient, ref b3VisualShapeInformation visualShapeInfo) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///filename: char* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitLoadTexture")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitLoadTexture")] public static extern System.IntPtr b3InitLoadTexture(IntPtr physClient, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string filename) ; /// Return Type: int ///statusHandle: b3SharedMemoryStatusHandle->b3SharedMemoryStatusHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetStatusTextureUniqueId")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetStatusTextureUniqueId")] public static extern int b3GetStatusTextureUniqueId(IntPtr statusHandle) ; @@ -2142,7 +2144,7 @@ public static extern int b3GetStatusTextureUniqueId(IntPtr statusHandle) ; ///width: int ///height: int ///rgbPixels: char* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateChangeTextureCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateChangeTextureCommandInit")] public static extern System.IntPtr b3CreateChangeTextureCommandInit(IntPtr physClient, int textureUniqueId, int width, int height, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string rgbPixels) ; @@ -2152,27 +2154,27 @@ public static extern System.IntPtr b3CreateChangeTextureCommandInit(IntPtr phys ///jointIndex: int ///shapeIndex: int ///textureUniqueId: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitUpdateVisualShape")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitUpdateVisualShape")] public static extern System.IntPtr b3InitUpdateVisualShape(IntPtr physClient, int bodyUniqueId, int jointIndex, int shapeIndex, int textureUniqueId) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///rgbaColor: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3UpdateVisualShapeRGBAColor")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3UpdateVisualShapeRGBAColor")] public static extern void b3UpdateVisualShapeRGBAColor(IntPtr commandHandle, ref double rgbaColor) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///specularColor: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3UpdateVisualShapeSpecularColor")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3UpdateVisualShapeSpecularColor")] public static extern void b3UpdateVisualShapeSpecularColor(IntPtr commandHandle, ref double specularColor) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitPhysicsParamCommand")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitPhysicsParamCommand")] public static extern System.IntPtr b3InitPhysicsParamCommand(IntPtr physClient) ; @@ -2181,131 +2183,131 @@ public static extern System.IntPtr b3InitPhysicsParamCommand(IntPtr physClient) ///gravx: double ///gravy: double ///gravz: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3PhysicsParamSetGravity")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3PhysicsParamSetGravity")] public static extern int b3PhysicsParamSetGravity(IntPtr commandHandle, double gravx, double gravy, double gravz) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///timeStep: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3PhysicsParamSetTimeStep")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3PhysicsParamSetTimeStep")] public static extern int b3PhysicsParamSetTimeStep(IntPtr commandHandle, double timeStep) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///defaultContactERP: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3PhysicsParamSetDefaultContactERP")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3PhysicsParamSetDefaultContactERP")] public static extern int b3PhysicsParamSetDefaultContactERP(IntPtr commandHandle, double defaultContactERP) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///defaultNonContactERP: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3PhysicsParamSetDefaultNonContactERP")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3PhysicsParamSetDefaultNonContactERP")] public static extern int b3PhysicsParamSetDefaultNonContactERP(IntPtr commandHandle, double defaultNonContactERP) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///frictionERP: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3PhysicsParamSetDefaultFrictionERP")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3PhysicsParamSetDefaultFrictionERP")] public static extern int b3PhysicsParamSetDefaultFrictionERP(IntPtr commandHandle, double frictionERP) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///numSubSteps: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3PhysicsParamSetNumSubSteps")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3PhysicsParamSetNumSubSteps")] public static extern int b3PhysicsParamSetNumSubSteps(IntPtr commandHandle, int numSubSteps) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///enableRealTimeSimulation: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3PhysicsParamSetRealTimeSimulation")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3PhysicsParamSetRealTimeSimulation")] public static extern int b3PhysicsParamSetRealTimeSimulation(IntPtr commandHandle, int enableRealTimeSimulation) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///numSolverIterations: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3PhysicsParamSetNumSolverIterations")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3PhysicsParamSetNumSolverIterations")] public static extern int b3PhysicsParamSetNumSolverIterations(IntPtr commandHandle, int numSolverIterations) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///filterMode: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3PhysicsParamSetCollisionFilterMode")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3PhysicsParamSetCollisionFilterMode")] public static extern int b3PhysicsParamSetCollisionFilterMode(IntPtr commandHandle, int filterMode) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///useSplitImpulse: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3PhysicsParamSetUseSplitImpulse")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3PhysicsParamSetUseSplitImpulse")] public static extern int b3PhysicsParamSetUseSplitImpulse(IntPtr commandHandle, int useSplitImpulse) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///splitImpulsePenetrationThreshold: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3PhysicsParamSetSplitImpulsePenetrationThreshold")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3PhysicsParamSetSplitImpulsePenetrationThreshold")] public static extern int b3PhysicsParamSetSplitImpulsePenetrationThreshold(IntPtr commandHandle, double splitImpulsePenetrationThreshold) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///contactBreakingThreshold: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3PhysicsParamSetContactBreakingThreshold")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3PhysicsParamSetContactBreakingThreshold")] public static extern int b3PhysicsParamSetContactBreakingThreshold(IntPtr commandHandle, double contactBreakingThreshold) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///maxNumCmdPer1ms: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3PhysicsParamSetMaxNumCommandsPer1ms")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3PhysicsParamSetMaxNumCommandsPer1ms")] public static extern int b3PhysicsParamSetMaxNumCommandsPer1ms(IntPtr commandHandle, int maxNumCmdPer1ms) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///enableFileCaching: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3PhysicsParamSetEnableFileCaching")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3PhysicsParamSetEnableFileCaching")] public static extern int b3PhysicsParamSetEnableFileCaching(IntPtr commandHandle, int enableFileCaching) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///restitutionVelocityThreshold: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3PhysicsParamSetRestitutionVelocityThreshold")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3PhysicsParamSetRestitutionVelocityThreshold")] public static extern int b3PhysicsParamSetRestitutionVelocityThreshold(IntPtr commandHandle, double restitutionVelocityThreshold) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///flags: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3PhysicsParamSetInternalSimFlags")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3PhysicsParamSetInternalSimFlags")] public static extern int b3PhysicsParamSetInternalSimFlags(IntPtr commandHandle, int flags) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitStepSimulationCommand")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitStepSimulationCommand")] public static extern System.IntPtr b3InitStepSimulationCommand(IntPtr physClient) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InitResetSimulationCommand")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InitResetSimulationCommand")] public static extern System.IntPtr b3InitResetSimulationCommand(IntPtr physClient) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///urdfFileName: char* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3LoadUrdfCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3LoadUrdfCommandInit")] public static extern System.IntPtr b3LoadUrdfCommandInit(IntPtr physClient, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string urdfFileName) ; @@ -2314,7 +2316,7 @@ public static extern System.IntPtr b3LoadUrdfCommandInit(IntPtr physClient, [Sy ///startPosX: double ///startPosY: double ///startPosZ: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3LoadUrdfCommandSetStartPosition")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3LoadUrdfCommandSetStartPosition")] public static extern int b3LoadUrdfCommandSetStartPosition(IntPtr commandHandle, double startPosX, double startPosY, double startPosZ) ; @@ -2324,63 +2326,63 @@ public static extern int b3LoadUrdfCommandSetStartPosition(IntPtr commandHandle ///startOrnY: double ///startOrnZ: double ///startOrnW: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3LoadUrdfCommandSetStartOrientation")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3LoadUrdfCommandSetStartOrientation")] public static extern int b3LoadUrdfCommandSetStartOrientation(IntPtr commandHandle, double startOrnX, double startOrnY, double startOrnZ, double startOrnW) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///useMultiBody: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3LoadUrdfCommandSetUseMultiBody")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3LoadUrdfCommandSetUseMultiBody")] public static extern int b3LoadUrdfCommandSetUseMultiBody(IntPtr commandHandle, int useMultiBody) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///useFixedBase: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3LoadUrdfCommandSetUseFixedBase")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3LoadUrdfCommandSetUseFixedBase")] public static extern int b3LoadUrdfCommandSetUseFixedBase(IntPtr commandHandle, int useFixedBase) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///flags: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3LoadUrdfCommandSetFlags")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3LoadUrdfCommandSetFlags")] public static extern int b3LoadUrdfCommandSetFlags(IntPtr commandHandle, int flags) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///globalScaling: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3LoadUrdfCommandSetGlobalScaling")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3LoadUrdfCommandSetGlobalScaling")] public static extern int b3LoadUrdfCommandSetGlobalScaling(IntPtr commandHandle, double globalScaling) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///fileName: char* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3LoadBulletCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3LoadBulletCommandInit")] public static extern System.IntPtr b3LoadBulletCommandInit(IntPtr physClient, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string fileName) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///fileName: char* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SaveBulletCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SaveBulletCommandInit")] public static extern System.IntPtr b3SaveBulletCommandInit(IntPtr physClient, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string fileName) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///fileName: char* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3LoadMJCFCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3LoadMJCFCommandInit")] public static extern System.IntPtr b3LoadMJCFCommandInit(IntPtr physClient, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string fileName) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///flags: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3LoadMJCFCommandSetFlags")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3LoadMJCFCommandSetFlags")] public static extern void b3LoadMJCFCommandSetFlags(IntPtr commandHandle, int flags) ; @@ -2390,7 +2392,7 @@ public static extern void b3LoadMJCFCommandSetFlags(IntPtr commandHandle, int f ///jointPositionsQ: double* ///jointVelocitiesQdot: double* ///jointAccelerations: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CalculateInverseDynamicsCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CalculateInverseDynamicsCommandInit")] public static extern System.IntPtr b3CalculateInverseDynamicsCommandInit(IntPtr physClient, int bodyIndex, ref double jointPositionsQ, ref double jointVelocitiesQdot, ref double jointAccelerations) ; @@ -2399,7 +2401,7 @@ public static extern System.IntPtr b3CalculateInverseDynamicsCommandInit(IntPtr ///bodyUniqueId: int* ///dofCount: int* ///jointForces: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetStatusInverseDynamicsJointForces")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetStatusInverseDynamicsJointForces")] public static extern int b3GetStatusInverseDynamicsJointForces(IntPtr statusHandle, ref int bodyUniqueId, ref int dofCount, ref double jointForces) ; @@ -2411,7 +2413,7 @@ public static extern int b3GetStatusInverseDynamicsJointForces(IntPtr statusHan ///jointPositionsQ: double* ///jointVelocitiesQdot: double* ///jointAccelerations: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CalculateJacobianCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CalculateJacobianCommandInit")] public static extern System.IntPtr b3CalculateJacobianCommandInit(IntPtr physClient, int bodyIndex, int linkIndex, ref double localPosition, ref double jointPositionsQ, ref double jointVelocitiesQdot, ref double jointAccelerations) ; @@ -2420,14 +2422,14 @@ public static extern System.IntPtr b3CalculateJacobianCommandInit(IntPtr physCl ///dofCount: int* ///linearJacobian: double* ///angularJacobian: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetStatusJacobian")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetStatusJacobian")] public static extern int b3GetStatusJacobian(IntPtr statusHandle, ref int dofCount, ref double linearJacobian, ref double angularJacobian) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///bodyIndex: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CalculateInverseKinematicsCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CalculateInverseKinematicsCommandInit")] public static extern System.IntPtr b3CalculateInverseKinematicsCommandInit(IntPtr physClient, int bodyIndex) ; @@ -2435,7 +2437,7 @@ public static extern System.IntPtr b3CalculateInverseKinematicsCommandInit(IntP ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///endEffectorLinkIndex: int ///targetPosition: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CalculateInverseKinematicsAddTargetPurePosition")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CalculateInverseKinematicsAddTargetPurePosition")] public static extern void b3CalculateInverseKinematicsAddTargetPurePosition(IntPtr commandHandle, int endEffectorLinkIndex, ref double targetPosition) ; @@ -2444,7 +2446,7 @@ public static extern void b3CalculateInverseKinematicsAddTargetPurePosition(Int ///endEffectorLinkIndex: int ///targetPosition: double* ///targetOrientation: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CalculateInverseKinematicsAddTargetPositionWithOrientation")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CalculateInverseKinematicsAddTargetPositionWithOrientation")] public static extern void b3CalculateInverseKinematicsAddTargetPositionWithOrientation(IntPtr commandHandle, int endEffectorLinkIndex, ref double targetPosition, ref double targetOrientation) ; @@ -2457,7 +2459,7 @@ public static extern void b3CalculateInverseKinematicsAddTargetPositionWithOrie ///upperLimit: double* ///jointRange: double* ///restPose: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CalculateInverseKinematicsPosWithNullSpaceVel")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CalculateInverseKinematicsPosWithNullSpaceVel")] public static extern void b3CalculateInverseKinematicsPosWithNullSpaceVel(IntPtr commandHandle, int numDof, int endEffectorLinkIndex, ref double targetPosition, ref double lowerLimit, ref double upperLimit, ref double jointRange, ref double restPose) ; @@ -2471,7 +2473,7 @@ public static extern void b3CalculateInverseKinematicsPosWithNullSpaceVel(IntPt ///upperLimit: double* ///jointRange: double* ///restPose: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CalculateInverseKinematicsPosOrnWithNullSpaceVel")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CalculateInverseKinematicsPosOrnWithNullSpaceVel")] public static extern void b3CalculateInverseKinematicsPosOrnWithNullSpaceVel(IntPtr commandHandle, int numDof, int endEffectorLinkIndex, ref double targetPosition, ref double targetOrientation, ref double lowerLimit, ref double upperLimit, ref double jointRange, ref double restPose) ; @@ -2479,7 +2481,7 @@ public static extern void b3CalculateInverseKinematicsPosOrnWithNullSpaceVel(In ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///numDof: int ///jointDampingCoeff: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CalculateInverseKinematicsSetJointDamping")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CalculateInverseKinematicsSetJointDamping")] public static extern void b3CalculateInverseKinematicsSetJointDamping(IntPtr commandHandle, int numDof, ref double jointDampingCoeff) ; @@ -2488,42 +2490,42 @@ public static extern void b3CalculateInverseKinematicsSetJointDamping(IntPtr co ///bodyUniqueId: int* ///dofCount: int* ///jointPositions: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetStatusInverseKinematicsJointPositions")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetStatusInverseKinematicsJointPositions")] public static extern int b3GetStatusInverseKinematicsJointPositions(IntPtr statusHandle, ref int bodyUniqueId, ref int dofCount, ref double jointPositions) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///sdfFileName: char* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3LoadSdfCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3LoadSdfCommandInit")] public static extern System.IntPtr b3LoadSdfCommandInit(IntPtr physClient, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string sdfFileName) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///useMultiBody: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3LoadSdfCommandSetUseMultiBody")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3LoadSdfCommandSetUseMultiBody")] public static extern int b3LoadSdfCommandSetUseMultiBody(IntPtr commandHandle, int useMultiBody) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///globalScaling: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3LoadSdfCommandSetUseGlobalScaling")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3LoadSdfCommandSetUseGlobalScaling")] public static extern int b3LoadSdfCommandSetUseGlobalScaling(IntPtr commandHandle, double globalScaling) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///sdfFileName: char* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SaveWorldCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SaveWorldCommandInit")] public static extern System.IntPtr b3SaveWorldCommandInit(IntPtr physClient, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string sdfFileName) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///controlMode: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3JointControlCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3JointControlCommandInit")] public static extern System.IntPtr b3JointControlCommandInit(IntPtr physClient, int controlMode) ; @@ -2531,7 +2533,7 @@ public static extern System.IntPtr b3JointControlCommandInit(IntPtr physClient, ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///bodyUniqueId: int ///controlMode: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3JointControlCommandInit2")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3JointControlCommandInit2")] public static extern System.IntPtr b3JointControlCommandInit2(IntPtr physClient, int bodyUniqueId, int controlMode) ; @@ -2539,7 +2541,7 @@ public static extern System.IntPtr b3JointControlCommandInit2(IntPtr physClient ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///qIndex: int ///value: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3JointControlSetDesiredPosition")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3JointControlSetDesiredPosition")] public static extern int b3JointControlSetDesiredPosition(IntPtr commandHandle, int qIndex, double value) ; @@ -2547,7 +2549,7 @@ public static extern int b3JointControlSetDesiredPosition(IntPtr commandHandle, ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///dofIndex: int ///value: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3JointControlSetKp")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3JointControlSetKp")] public static extern int b3JointControlSetKp(IntPtr commandHandle, int dofIndex, double value) ; @@ -2555,7 +2557,7 @@ public static extern int b3JointControlSetKp(IntPtr commandHandle, int dofIndex ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///dofIndex: int ///value: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3JointControlSetKd")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3JointControlSetKd")] public static extern int b3JointControlSetKd(IntPtr commandHandle, int dofIndex, double value) ; @@ -2563,7 +2565,7 @@ public static extern int b3JointControlSetKd(IntPtr commandHandle, int dofIndex ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///dofIndex: int ///value: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3JointControlSetDesiredVelocity")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3JointControlSetDesiredVelocity")] public static extern int b3JointControlSetDesiredVelocity(IntPtr commandHandle, int dofIndex, double value) ; @@ -2571,7 +2573,7 @@ public static extern int b3JointControlSetDesiredVelocity(IntPtr commandHandle, ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///dofIndex: int ///value: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3JointControlSetMaximumForce")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3JointControlSetMaximumForce")] public static extern int b3JointControlSetMaximumForce(IntPtr commandHandle, int dofIndex, double value) ; @@ -2579,27 +2581,27 @@ public static extern int b3JointControlSetMaximumForce(IntPtr commandHandle, in ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///dofIndex: int ///value: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3JointControlSetDesiredForceTorque")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3JointControlSetDesiredForceTorque")] public static extern int b3JointControlSetDesiredForceTorque(IntPtr commandHandle, int dofIndex, double value) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateCollisionShapeCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateCollisionShapeCommandInit")] public static extern System.IntPtr b3CreateCollisionShapeCommandInit(IntPtr physClient) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///radius: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateCollisionShapeAddSphere")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateCollisionShapeAddSphere")] public static extern int b3CreateCollisionShapeAddSphere(IntPtr commandHandle, double radius) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///halfExtents: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateCollisionShapeAddBox")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateCollisionShapeAddBox")] public static extern int b3CreateCollisionShapeAddBox(IntPtr commandHandle, ref double halfExtents) ; @@ -2607,7 +2609,7 @@ public static extern int b3CreateCollisionShapeAddBox(IntPtr commandHandle, ref ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///radius: double ///height: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateCollisionShapeAddCapsule")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateCollisionShapeAddCapsule")] public static extern int b3CreateCollisionShapeAddCapsule(IntPtr commandHandle, double radius, double height) ; @@ -2615,7 +2617,7 @@ public static extern int b3CreateCollisionShapeAddCapsule(IntPtr commandHandle, ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///radius: double ///height: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateCollisionShapeAddCylinder")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateCollisionShapeAddCylinder")] public static extern int b3CreateCollisionShapeAddCylinder(IntPtr commandHandle, double radius, double height) ; @@ -2623,7 +2625,7 @@ public static extern int b3CreateCollisionShapeAddCylinder(IntPtr commandHandle ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///planeNormal: double* ///planeConstant: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateCollisionShapeAddPlane")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateCollisionShapeAddPlane")] public static extern int b3CreateCollisionShapeAddPlane(IntPtr commandHandle, ref double planeNormal, double planeConstant) ; @@ -2631,7 +2633,7 @@ public static extern int b3CreateCollisionShapeAddPlane(IntPtr commandHandle, r ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///fileName: char* ///meshScale: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateCollisionShapeAddMesh")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateCollisionShapeAddMesh")] public static extern int b3CreateCollisionShapeAddMesh(IntPtr commandHandle, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string fileName, ref double meshScale) ; @@ -2639,7 +2641,7 @@ public static extern int b3CreateCollisionShapeAddMesh(IntPtr commandHandle, [S ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///shapeIndex: int ///flags: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateCollisionSetFlag")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateCollisionSetFlag")] public static extern void b3CreateCollisionSetFlag(IntPtr commandHandle, int shapeIndex, int flags) ; @@ -2648,31 +2650,31 @@ public static extern void b3CreateCollisionSetFlag(IntPtr commandHandle, int sh ///shapeIndex: int ///childPosition: double* ///childOrientation: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateCollisionShapeSetChildTransform")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateCollisionShapeSetChildTransform")] public static extern void b3CreateCollisionShapeSetChildTransform(IntPtr commandHandle, int shapeIndex, ref double childPosition, ref double childOrientation) ; /// Return Type: int ///statusHandle: b3SharedMemoryStatusHandle->b3SharedMemoryStatusHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetStatusCollisionShapeUniqueId")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetStatusCollisionShapeUniqueId")] public static extern int b3GetStatusCollisionShapeUniqueId(IntPtr statusHandle) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateVisualShapeCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateVisualShapeCommandInit")] public static extern System.IntPtr b3CreateVisualShapeCommandInit(IntPtr physClient) ; /// Return Type: int ///statusHandle: b3SharedMemoryStatusHandle->b3SharedMemoryStatusHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetStatusVisualShapeUniqueId")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetStatusVisualShapeUniqueId")] public static extern int b3GetStatusVisualShapeUniqueId(IntPtr statusHandle) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateMultiBodyCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateMultiBodyCommandInit")] public static extern System.IntPtr b3CreateMultiBodyCommandInit(IntPtr physClient) ; @@ -2685,7 +2687,7 @@ public static extern System.IntPtr b3CreateMultiBodyCommandInit(IntPtr physClie ///baseOrientation: double* ///baseInertialFramePosition: double* ///baseInertialFrameOrientation: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateMultiBodyBase")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateMultiBodyBase")] public static extern int b3CreateMultiBodyBase(IntPtr commandHandle, double mass, int collisionShapeUnique, int visualShapeUniqueId, ref double basePosition, ref double baseOrientation, ref double baseInertialFramePosition, ref double baseInertialFrameOrientation) ; @@ -2701,19 +2703,19 @@ public static extern int b3CreateMultiBodyBase(IntPtr commandHandle, double mas ///linkParentIndex: int ///linkJointType: int ///linkJointAxis: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateMultiBodyLink")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateMultiBodyLink")] public static extern int b3CreateMultiBodyLink(IntPtr commandHandle, double linkMass, double linkCollisionShapeIndex, double linkVisualShapeIndex, ref double linkPosition, ref double linkOrientation, ref double linkInertialFramePosition, ref double linkInertialFrameOrientation, int linkParentIndex, int linkJointType, ref double linkJointAxis) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateMultiBodyUseMaximalCoordinates")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateMultiBodyUseMaximalCoordinates")] public static extern void b3CreateMultiBodyUseMaximalCoordinates(IntPtr commandHandle) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateBoxShapeCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateBoxShapeCommandInit")] public static extern System.IntPtr b3CreateBoxShapeCommandInit(IntPtr physClient) ; @@ -2722,7 +2724,7 @@ public static extern System.IntPtr b3CreateBoxShapeCommandInit(IntPtr physClien ///startPosX: double ///startPosY: double ///startPosZ: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateBoxCommandSetStartPosition")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateBoxCommandSetStartPosition")] public static extern int b3CreateBoxCommandSetStartPosition(IntPtr commandHandle, double startPosX, double startPosY, double startPosZ) ; @@ -2732,7 +2734,7 @@ public static extern int b3CreateBoxCommandSetStartPosition(IntPtr commandHandl ///startOrnY: double ///startOrnZ: double ///startOrnW: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateBoxCommandSetStartOrientation")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateBoxCommandSetStartOrientation")] public static extern int b3CreateBoxCommandSetStartOrientation(IntPtr commandHandle, double startOrnX, double startOrnY, double startOrnZ, double startOrnW) ; @@ -2741,21 +2743,21 @@ public static extern int b3CreateBoxCommandSetStartOrientation(IntPtr commandHa ///halfExtentsX: double ///halfExtentsY: double ///halfExtentsZ: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateBoxCommandSetHalfExtents")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateBoxCommandSetHalfExtents")] public static extern int b3CreateBoxCommandSetHalfExtents(IntPtr commandHandle, double halfExtentsX, double halfExtentsY, double halfExtentsZ) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///mass: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateBoxCommandSetMass")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateBoxCommandSetMass")] public static extern int b3CreateBoxCommandSetMass(IntPtr commandHandle, double mass) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///collisionShapeType: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateBoxCommandSetCollisionShapeType")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateBoxCommandSetCollisionShapeType")] public static extern int b3CreateBoxCommandSetCollisionShapeType(IntPtr commandHandle, int collisionShapeType) ; @@ -2765,14 +2767,14 @@ public static extern int b3CreateBoxCommandSetCollisionShapeType(IntPtr command ///green: double ///blue: double ///alpha: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateBoxCommandSetColorRGBA")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateBoxCommandSetColorRGBA")] public static extern int b3CreateBoxCommandSetColorRGBA(IntPtr commandHandle, double red, double green, double blue, double alpha) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///bodyIndex: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreatePoseCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreatePoseCommandInit")] public static extern System.IntPtr b3CreatePoseCommandInit(IntPtr physClient, int bodyIndex) ; @@ -2781,7 +2783,7 @@ public static extern System.IntPtr b3CreatePoseCommandInit(IntPtr physClient, i ///startPosX: double ///startPosY: double ///startPosZ: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreatePoseCommandSetBasePosition")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreatePoseCommandSetBasePosition")] public static extern int b3CreatePoseCommandSetBasePosition(IntPtr commandHandle, double startPosX, double startPosY, double startPosZ) ; @@ -2791,21 +2793,21 @@ public static extern int b3CreatePoseCommandSetBasePosition(IntPtr commandHandl ///startOrnY: double ///startOrnZ: double ///startOrnW: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreatePoseCommandSetBaseOrientation")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreatePoseCommandSetBaseOrientation")] public static extern int b3CreatePoseCommandSetBaseOrientation(IntPtr commandHandle, double startOrnX, double startOrnY, double startOrnZ, double startOrnW) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///linVel: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreatePoseCommandSetBaseLinearVelocity")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreatePoseCommandSetBaseLinearVelocity")] public static extern int b3CreatePoseCommandSetBaseLinearVelocity(IntPtr commandHandle, ref double linVel) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///angVel: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreatePoseCommandSetBaseAngularVelocity")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreatePoseCommandSetBaseAngularVelocity")] public static extern int b3CreatePoseCommandSetBaseAngularVelocity(IntPtr commandHandle, ref double angVel) ; @@ -2813,7 +2815,7 @@ public static extern int b3CreatePoseCommandSetBaseAngularVelocity(IntPtr comma ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///numJointPositions: int ///jointPositions: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreatePoseCommandSetJointPositions")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreatePoseCommandSetJointPositions")] public static extern int b3CreatePoseCommandSetJointPositions(IntPtr commandHandle, int numJointPositions, ref double jointPositions) ; @@ -2822,7 +2824,7 @@ public static extern int b3CreatePoseCommandSetJointPositions(IntPtr commandHan ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///jointIndex: int ///jointPosition: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreatePoseCommandSetJointPosition")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreatePoseCommandSetJointPosition")] public static extern int b3CreatePoseCommandSetJointPosition(IntPtr physClient, IntPtr commandHandle, int jointIndex, double jointPosition) ; @@ -2831,7 +2833,7 @@ public static extern int b3CreatePoseCommandSetJointPosition(IntPtr physClient, ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///numJointVelocities: int ///jointVelocities: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreatePoseCommandSetJointVelocities")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreatePoseCommandSetJointVelocities")] public static extern int b3CreatePoseCommandSetJointVelocities(IntPtr physClient, IntPtr commandHandle, int numJointVelocities, ref double jointVelocities) ; @@ -2840,14 +2842,14 @@ public static extern int b3CreatePoseCommandSetJointVelocities(IntPtr physClien ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///jointIndex: int ///jointVelocity: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreatePoseCommandSetJointVelocity")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreatePoseCommandSetJointVelocity")] public static extern int b3CreatePoseCommandSetJointVelocity(IntPtr physClient, IntPtr commandHandle, int jointIndex, double jointVelocity) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///bodyUniqueId: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateSensorCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateSensorCommandInit")] public static extern System.IntPtr b3CreateSensorCommandInit(IntPtr physClient, int bodyUniqueId) ; @@ -2855,7 +2857,7 @@ public static extern System.IntPtr b3CreateSensorCommandInit(IntPtr physClient, ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///jointIndex: int ///enable: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateSensorEnable6DofJointForceTorqueSensor")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateSensorEnable6DofJointForceTorqueSensor")] public static extern int b3CreateSensorEnable6DofJointForceTorqueSensor(IntPtr commandHandle, int jointIndex, int enable) ; @@ -2863,28 +2865,28 @@ public static extern int b3CreateSensorEnable6DofJointForceTorqueSensor(IntPtr ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///linkIndex: int ///enable: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateSensorEnableIMUForLink")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateSensorEnableIMUForLink")] public static extern int b3CreateSensorEnableIMUForLink(IntPtr commandHandle, int linkIndex, int enable) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///bodyUniqueId: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestActualStateCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestActualStateCommandInit")] public static extern System.IntPtr b3RequestActualStateCommandInit(IntPtr physClient, int bodyUniqueId) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///computeLinkVelocity: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestActualStateCommandComputeLinkVelocity")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestActualStateCommandComputeLinkVelocity")] public static extern int b3RequestActualStateCommandComputeLinkVelocity(IntPtr commandHandle, int computeLinkVelocity) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///computeForwardKinematics: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestActualStateCommandComputeForwardKinematics")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestActualStateCommandComputeForwardKinematics")] public static extern int b3RequestActualStateCommandComputeForwardKinematics(IntPtr commandHandle, int computeForwardKinematics) ; @@ -2893,7 +2895,7 @@ public static extern int b3RequestActualStateCommandComputeForwardKinematics(In ///statusHandle: b3SharedMemoryStatusHandle->b3SharedMemoryStatusHandle__* ///jointIndex: int ///state: b3JointSensorState* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetJointState")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetJointState")] public static extern int b3GetJointState(IntPtr physClient, IntPtr statusHandle, int jointIndex, ref b3JointSensorState state) ; @@ -2902,7 +2904,7 @@ public static extern int b3GetJointState(IntPtr physClient, IntPtr statusHandle ///statusHandle: b3SharedMemoryStatusHandle->b3SharedMemoryStatusHandle__* ///linkIndex: int ///state: b3LinkState* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetLinkState")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetLinkState")] public static extern int b3GetLinkState(IntPtr physClient, IntPtr statusHandle, int linkIndex, ref b3LinkState state) ; @@ -2914,7 +2916,7 @@ public static extern int b3GetLinkState(IntPtr physClient, IntPtr statusHandle, ///rayToWorldX: double ///rayToWorldY: double ///rayToWorldZ: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3PickBody")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3PickBody")] public static extern System.IntPtr b3PickBody(IntPtr physClient, double rayFromWorldX, double rayFromWorldY, double rayFromWorldZ, double rayToWorldX, double rayToWorldY, double rayToWorldZ) ; @@ -2926,13 +2928,13 @@ public static extern System.IntPtr b3PickBody(IntPtr physClient, double rayFrom ///rayToWorldX: double ///rayToWorldY: double ///rayToWorldZ: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3MovePickedBody")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3MovePickedBody")] public static extern System.IntPtr b3MovePickedBody(IntPtr physClient, double rayFromWorldX, double rayFromWorldY, double rayFromWorldZ, double rayToWorldX, double rayToWorldY, double rayToWorldZ) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RemovePickingConstraint")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RemovePickingConstraint")] public static extern System.IntPtr b3RemovePickingConstraint(IntPtr physClient) ; @@ -2944,13 +2946,13 @@ public static extern System.IntPtr b3RemovePickingConstraint(IntPtr physClient) ///rayToWorldX: double ///rayToWorldY: double ///rayToWorldZ: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateRaycastCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateRaycastCommandInit")] public static extern System.IntPtr b3CreateRaycastCommandInit(IntPtr physClient, double rayFromWorldX, double rayFromWorldY, double rayFromWorldZ, double rayToWorldX, double rayToWorldY, double rayToWorldZ) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3CreateRaycastBatchCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3CreateRaycastBatchCommandInit")] public static extern System.IntPtr b3CreateRaycastBatchCommandInit(IntPtr physClient) ; @@ -2958,20 +2960,20 @@ public static extern System.IntPtr b3CreateRaycastBatchCommandInit(IntPtr physC ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///rayFromWorld: double* ///rayToWorld: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RaycastBatchAddRay")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RaycastBatchAddRay")] public static extern void b3RaycastBatchAddRay(IntPtr commandHandle, ref double rayFromWorld, ref double rayToWorld) ; /// Return Type: void ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///raycastInfo: b3RaycastInformation* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetRaycastInformation")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetRaycastInformation")] public static extern void b3GetRaycastInformation(IntPtr physClient, ref b3RaycastInformation raycastInfo) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ApplyExternalForceCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ApplyExternalForceCommandInit")] public static extern System.IntPtr b3ApplyExternalForceCommandInit(IntPtr physClient) ; @@ -2982,7 +2984,7 @@ public static extern System.IntPtr b3ApplyExternalForceCommandInit(IntPtr physC ///force: double* ///position: double* ///flag: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ApplyExternalForce")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ApplyExternalForce")] public static extern void b3ApplyExternalForce(IntPtr commandHandle, int bodyUniqueId, int linkId, ref double force, ref double position, int flag) ; @@ -2992,120 +2994,120 @@ public static extern void b3ApplyExternalForce(IntPtr commandHandle, int bodyUn ///linkId: int ///torque: double* ///flag: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ApplyExternalTorque")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ApplyExternalTorque")] public static extern void b3ApplyExternalTorque(IntPtr commandHandle, int bodyUniqueId, int linkId, ref double torque, int flag) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3LoadBunnyCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3LoadBunnyCommandInit")] public static extern System.IntPtr b3LoadBunnyCommandInit(IntPtr physClient) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///scale: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3LoadBunnySetScale")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3LoadBunnySetScale")] public static extern int b3LoadBunnySetScale(IntPtr commandHandle, double scale) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///mass: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3LoadBunnySetMass")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3LoadBunnySetMass")] public static extern int b3LoadBunnySetMass(IntPtr commandHandle, double mass) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///collisionMargin: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3LoadBunnySetCollisionMargin")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3LoadBunnySetCollisionMargin")] public static extern int b3LoadBunnySetCollisionMargin(IntPtr commandHandle, double collisionMargin) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestVREventsCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestVREventsCommandInit")] public static extern System.IntPtr b3RequestVREventsCommandInit(IntPtr physClient) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///deviceTypeFilter: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3VREventsSetDeviceTypeFilter")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3VREventsSetDeviceTypeFilter")] public static extern void b3VREventsSetDeviceTypeFilter(IntPtr commandHandle, int deviceTypeFilter) ; /// Return Type: void ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///vrEventsData: b3VREventsData* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetVREventsData")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetVREventsData")] public static extern void b3GetVREventsData(IntPtr physClient, ref b3VREventsData vrEventsData) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SetVRCameraStateCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SetVRCameraStateCommandInit")] public static extern System.IntPtr b3SetVRCameraStateCommandInit(IntPtr physClient) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///rootPos: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SetVRCameraRootPosition")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SetVRCameraRootPosition")] public static extern int b3SetVRCameraRootPosition(IntPtr commandHandle, ref double rootPos) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///rootOrn: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SetVRCameraRootOrientation")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SetVRCameraRootOrientation")] public static extern int b3SetVRCameraRootOrientation(IntPtr commandHandle, ref double rootOrn) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///objectUniqueId: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SetVRCameraTrackingObject")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SetVRCameraTrackingObject")] public static extern int b3SetVRCameraTrackingObject(IntPtr commandHandle, int objectUniqueId) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///flag: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SetVRCameraTrackingObjectFlag")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SetVRCameraTrackingObjectFlag")] public static extern int b3SetVRCameraTrackingObjectFlag(IntPtr commandHandle, int flag) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestKeyboardEventsCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestKeyboardEventsCommandInit")] public static extern System.IntPtr b3RequestKeyboardEventsCommandInit(IntPtr physClient) ; /// Return Type: void ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///keyboardEventsData: b3KeyboardEventsData* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetKeyboardEventsData")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetKeyboardEventsData")] public static extern void b3GetKeyboardEventsData(IntPtr physClient, ref b3KeyboardEventsData keyboardEventsData) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3RequestMouseEventsCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3RequestMouseEventsCommandInit")] public static extern System.IntPtr b3RequestMouseEventsCommandInit(IntPtr physClient) ; /// Return Type: void ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///mouseEventsData: b3MouseEventsData* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetMouseEventsData")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetMouseEventsData")] public static extern void b3GetMouseEventsData(IntPtr physClient, ref b3MouseEventsData mouseEventsData) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3StateLoggingCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3StateLoggingCommandInit")] public static extern System.IntPtr b3StateLoggingCommandInit(IntPtr physClient) ; @@ -3113,110 +3115,110 @@ public static extern System.IntPtr b3StateLoggingCommandInit(IntPtr physClient) ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///loggingType: int ///fileName: char* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3StateLoggingStart")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3StateLoggingStart")] public static extern int b3StateLoggingStart(IntPtr commandHandle, int loggingType, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string fileName) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///objectUniqueId: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3StateLoggingAddLoggingObjectUniqueId")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3StateLoggingAddLoggingObjectUniqueId")] public static extern int b3StateLoggingAddLoggingObjectUniqueId(IntPtr commandHandle, int objectUniqueId) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///maxLogDof: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3StateLoggingSetMaxLogDof")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3StateLoggingSetMaxLogDof")] public static extern int b3StateLoggingSetMaxLogDof(IntPtr commandHandle, int maxLogDof) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///linkIndexA: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3StateLoggingSetLinkIndexA")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3StateLoggingSetLinkIndexA")] public static extern int b3StateLoggingSetLinkIndexA(IntPtr commandHandle, int linkIndexA) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///linkIndexB: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3StateLoggingSetLinkIndexB")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3StateLoggingSetLinkIndexB")] public static extern int b3StateLoggingSetLinkIndexB(IntPtr commandHandle, int linkIndexB) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///bodyAUniqueId: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3StateLoggingSetBodyAUniqueId")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3StateLoggingSetBodyAUniqueId")] public static extern int b3StateLoggingSetBodyAUniqueId(IntPtr commandHandle, int bodyAUniqueId) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///bodyBUniqueId: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3StateLoggingSetBodyBUniqueId")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3StateLoggingSetBodyBUniqueId")] public static extern int b3StateLoggingSetBodyBUniqueId(IntPtr commandHandle, int bodyBUniqueId) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///deviceTypeFilter: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3StateLoggingSetDeviceTypeFilter")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3StateLoggingSetDeviceTypeFilter")] public static extern int b3StateLoggingSetDeviceTypeFilter(IntPtr commandHandle, int deviceTypeFilter) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///logFlags: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3StateLoggingSetLogFlags")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3StateLoggingSetLogFlags")] public static extern int b3StateLoggingSetLogFlags(IntPtr commandHandle, int logFlags) ; /// Return Type: int ///statusHandle: b3SharedMemoryStatusHandle->b3SharedMemoryStatusHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetStatusLoggingUniqueId")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetStatusLoggingUniqueId")] public static extern int b3GetStatusLoggingUniqueId(IntPtr statusHandle) ; /// Return Type: int ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///loggingUid: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3StateLoggingStop")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3StateLoggingStop")] public static extern int b3StateLoggingStop(IntPtr commandHandle, int loggingUid) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///name: char* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3ProfileTimingCommandInit")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3ProfileTimingCommandInit")] public static extern System.IntPtr b3ProfileTimingCommandInit(IntPtr physClient, [System.Runtime.InteropServices.InAttribute()] [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string name) ; /// Return Type: void ///commandHandle: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///duration: int - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SetProfileTimingDuractionInMicroSeconds")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SetProfileTimingDuractionInMicroSeconds")] public static extern void b3SetProfileTimingDuractionInMicroSeconds(IntPtr commandHandle, int duration) ; /// Return Type: void ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///timeOutInSeconds: double - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SetTimeOut")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SetTimeOut")] public static extern void b3SetTimeOut(IntPtr physClient, double timeOutInSeconds) ; /// Return Type: double ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3GetTimeOut")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3GetTimeOut")] public static extern double b3GetTimeOut(IntPtr physClient) ; /// Return Type: b3SharedMemoryCommandHandle->b3SharedMemoryCommandHandle__* ///physClient: b3PhysicsClientHandle->b3PhysicsClientHandle__* ///path: char* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3SetAdditionalSearchPath")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3SetAdditionalSearchPath")] public static extern System.IntPtr b3SetAdditionalSearchPath(IntPtr physClient, System.IntPtr path) ; @@ -3227,7 +3229,7 @@ public static extern System.IntPtr b3SetAdditionalSearchPath(IntPtr physClient, ///ornB: double* ///outPos: double* ///outOrn: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3MultiplyTransforms")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3MultiplyTransforms")] public static extern void b3MultiplyTransforms(ref double posA, ref double ornA, ref double posB, ref double ornB, ref double outPos, ref double outOrn) ; @@ -3236,7 +3238,7 @@ public static extern void b3MultiplyTransforms(ref double posA, ref double ornA ///orn: double* ///outPos: double* ///outOrn: double* - [System.Runtime.InteropServices.DllImportAttribute("pybullet_vs2010_x64_release.dll", EntryPoint="b3InvertTransform")] + [System.Runtime.InteropServices.DllImportAttribute(dllName, EntryPoint="b3InvertTransform")] public static extern void b3InvertTransform(ref double pos, ref double orn, ref double outPos, ref double outOrn) ; } diff --git a/examples/pybullet/unity3d/examples/NewBehaviourScript.cs b/examples/pybullet/unity3d/examples/NewBehaviourScript.cs index 6007203da..44d64348c 100644 --- a/examples/pybullet/unity3d/examples/NewBehaviourScript.cs +++ b/examples/pybullet/unity3d/examples/NewBehaviourScript.cs @@ -14,25 +14,52 @@ public class NewBehaviourScript : MonoBehaviour { Text text; IntPtr sharedAPI; IntPtr pybullet; + int m_cubeUid; // Use this for initialization void Start () { text = GetComponent(); + pybullet = NativeMethods.b3ConnectSharedMemory(NativeConstants.SHARED_MEMORY_KEY); + if (NativeMethods.b3CanSubmitCommand(pybullet)==0) + { + pybullet = NativeMethods.b3ConnectPhysicsDirect(); + } + - pybullet = NativeMethods.b3ConnectPhysicsDirect();// NativeMethods.b3ConnectSharedMemory(NativeConstants.SHARED_MEMORY_KEY); + IntPtr cmd = NativeMethods.b3InitResetSimulationCommand(pybullet); IntPtr status = NativeMethods.b3SubmitClientCommandAndWaitStatus(pybullet, cmd); + + { + IntPtr command = NativeMethods.b3InitPhysicsParamCommand(pybullet); + NativeMethods.b3PhysicsParamSetGravity(command, 0, -10, 0); + IntPtr statusHandle = NativeMethods.b3SubmitClientCommandAndWaitStatus(pybullet, command); + } + int numBodies = NativeMethods.b3GetNumBodies(pybullet); - cmd = NativeMethods.b3LoadUrdfCommandInit(pybullet, "plane.urdf"); + { + cmd = NativeMethods.b3LoadUrdfCommandInit(pybullet, "plane.urdf"); + Quaternion qq = Quaternion.Euler(-90, 0, 0); + NativeMethods.b3LoadUrdfCommandSetStartOrientation(cmd, qq.x, qq.y, qq.z, qq.w); + status = NativeMethods.b3SubmitClientCommandAndWaitStatus(pybullet, cmd); + } + + + cmd = NativeMethods.b3LoadUrdfCommandInit(pybullet, "cube.urdf"); + NativeMethods.b3LoadUrdfCommandSetStartPosition(cmd, 0, 20, 0); + Quaternion q = Quaternion.Euler(35, 0, 0); + NativeMethods.b3LoadUrdfCommandSetStartOrientation(cmd, q.x, q.y, q.z, q.w); status = NativeMethods.b3SubmitClientCommandAndWaitStatus(pybullet, cmd); + m_cubeUid = NativeMethods.b3GetStatusBodyIndex(status); + EnumSharedMemoryServerStatus statusType = (EnumSharedMemoryServerStatus)NativeMethods.b3GetStatusType(status); if (statusType == (EnumSharedMemoryServerStatus)EnumSharedMemoryServerStatus.CMD_URDF_LOADING_COMPLETED) { numBodies = NativeMethods.b3GetNumBodies(pybullet); text.text = numBodies.ToString(); - cmd = NativeMethods.b3InitRequestVisualShapeInformation(pybullet, 0); + cmd = NativeMethods.b3InitRequestVisualShapeInformation(pybullet, m_cubeUid); status = NativeMethods.b3SubmitClientCommandAndWaitStatus(pybullet, cmd); statusType = (EnumSharedMemoryServerStatus) NativeMethods.b3GetStatusType(status); @@ -72,7 +99,11 @@ public class NewBehaviourScript : MonoBehaviour { } } - + public struct MyPos + { + public double x, y, z; + public double qx, qy, qz, qw; + } // Update is called once per frame void Update () { if (pybullet != IntPtr.Zero) @@ -80,6 +111,51 @@ public class NewBehaviourScript : MonoBehaviour { IntPtr cmd = NativeMethods.b3InitStepSimulationCommand(pybullet); IntPtr status = NativeMethods.b3SubmitClientCommandAndWaitStatus(pybullet, cmd); } + if (m_cubeUid>=0) + { + IntPtr cmd_handle = + NativeMethods.b3RequestActualStateCommandInit(pybullet, m_cubeUid); + IntPtr status_handle = NativeMethods.b3SubmitClientCommandAndWaitStatus(pybullet, cmd_handle); + + EnumSharedMemoryServerStatus status_type = (EnumSharedMemoryServerStatus)NativeMethods.b3GetStatusType(status_handle); + + if (status_type == EnumSharedMemoryServerStatus.CMD_ACTUAL_STATE_UPDATE_COMPLETED) + { + IntPtr p = IntPtr.Zero; + int objUid = 0; + int numDofQ = 0; + int numDofU = 0; + IntPtr inertialFrame = IntPtr.Zero; + IntPtr actualStateQ = IntPtr.Zero; + IntPtr actualStateQdot = IntPtr.Zero; + IntPtr joint_reaction_forces = IntPtr.Zero; + + NativeMethods.b3GetStatusActualState( + status_handle, ref objUid, ref numDofQ , ref numDofU, + ref inertialFrame, ref actualStateQ, + ref actualStateQdot , ref joint_reaction_forces); + //Debug.Log("objUid=" + objUid.ToString()); + //Debug.Log("numDofQ=" + numDofQ.ToString()); + //Debug.Log("numDofU=" + numDofU.ToString()); + + MyPos mpos = (MyPos)Marshal.PtrToStructure(actualStateQ, typeof(MyPos)); + //Debug.Log("pos=(" + mpos.x.ToString()+","+ mpos.y.ToString()+ "," + mpos.z.ToString()+")"); + //Debug.Log("orn=(" + mpos.qx.ToString() + "," + mpos.qy.ToString() + "," + mpos.qz.ToString() + mpos.qw.ToString() + ")"); + Vector3 pos = new Vector3((float)mpos.x, (float)mpos.y, (float)mpos.z); + Quaternion orn = new Quaternion((float)mpos.qx, (float)mpos.qy, (float)mpos.qz, (float)mpos.qw); + Vector3 dimensions = new Vector3(1, 1, 1); + CjLib.DebugUtil.DrawBox(pos, orn, dimensions, Color.black); + } + + + } + + { + CjLib.DebugUtil.DrawLine(new Vector3(-1, 0, 0), new Vector3(1, 0, 0), Color.red); + CjLib.DebugUtil.DrawLine(new Vector3(0, -1, 0), new Vector3(0, 1, 0), Color.green); + CjLib.DebugUtil.DrawLine(new Vector3(0, 0, -1), new Vector3(0, 0, 1), Color.blue); + } + } void OnDestroy() diff --git a/examples/pybullet/unity3d/examples/NewBehaviourScript.cs.meta b/examples/pybullet/unity3d/examples/NewBehaviourScript.cs.meta deleted file mode 100644 index 6e595b031..000000000 --- a/examples/pybullet/unity3d/examples/NewBehaviourScript.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 6197b3a0389e92c47b7d8698e5f61f06 -timeCreated: 1505961790 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: