mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 22:00:05 +00:00
32eccdff61
URDF/SDF: add a flag to force concave mesh collisiofor static objects. <collision concave="yes" name="pod_collision"> VR: support teleporting using buttong, allow multiple controllers to be used, fast wireframe rendering, Turn off warnings about deprecated C routine in btScalar.h/b3Scalar.h Add a dummy return to stop a warning Expose defaultContactERP in shared memory api/pybullet. First start to expose IK in shared memory api/pybullet (not working yet)
283 lines
12 KiB
Lua
283 lines
12 KiB
Lua
project ("Test_SharedMemoryPhysicsClient")
|
|
|
|
language "C++"
|
|
kind "ConsoleApp"
|
|
|
|
includedirs {"../../src", "../../examples"}
|
|
links {
|
|
"BulletFileLoader",
|
|
"Bullet3Common",
|
|
"LinearMath"
|
|
}
|
|
defines {"PHYSICS_SHARED_MEMORY"}
|
|
|
|
files {
|
|
"test.c",
|
|
"../../examples/SharedMemory/PhysicsClient.cpp",
|
|
"../../examples/SharedMemory/PhysicsClient.h",
|
|
"../../examples/SharedMemory/PhysicsClientSharedMemory.cpp",
|
|
"../../examples/SharedMemory/PhysicsClientSharedMemory.h",
|
|
"../../examples/SharedMemory/PhysicsClientC_API.cpp",
|
|
"../../examples/SharedMemory/PhysicsClientC_API.h",
|
|
"../../examples/SharedMemory/Win32SharedMemory.cpp",
|
|
"../../examples/SharedMemory/Win32SharedMemory.h",
|
|
"../../examples/SharedMemory/PosixSharedMemory.cpp",
|
|
"../../examples/SharedMemory/PosixSharedMemory.h",
|
|
"../../examples/Utils/b3ResourcePath.cpp",
|
|
"../../examples/Utils/b3ResourcePath.h",
|
|
}
|
|
|
|
project ("Test_PhysicsServerLoopBack")
|
|
|
|
language "C++"
|
|
kind "ConsoleApp"
|
|
|
|
includedirs {"../../src", "../../examples",
|
|
"../../examples/ThirdPartyLibs"}
|
|
defines {"PHYSICS_LOOP_BACK"}
|
|
links {
|
|
"BulletInverseDynamicsUtils",
|
|
"BulletInverseDynamics",
|
|
"BulletFileLoader",
|
|
"BulletWorldImporter",
|
|
"Bullet3Common",
|
|
"BulletDynamics",
|
|
"BulletCollision",
|
|
"BussIK",
|
|
"LinearMath"
|
|
}
|
|
|
|
files {
|
|
"test.c",
|
|
"../../examples/SharedMemory/IKTrajectoryHelper.cpp",
|
|
"../../examples/SharedMemory/IKTrajectoryHelper.h",
|
|
"../../examples/SharedMemory/PhysicsClient.cpp",
|
|
"../../examples/SharedMemory/PhysicsClient.h",
|
|
"../../examples/SharedMemory/PhysicsServer.cpp",
|
|
"../../examples/SharedMemory/PhysicsServer.h",
|
|
"../../examples/SharedMemory/PhysicsServerSharedMemory.cpp",
|
|
"../../examples/SharedMemory/PhysicsServerSharedMemory.h",
|
|
"../../examples/SharedMemory/PhysicsServerCommandProcessor.cpp",
|
|
"../../examples/SharedMemory/PhysicsServerCommandProcessor.h",
|
|
"../../examples/SharedMemory/PhysicsLoopBack.cpp",
|
|
"../../examples/SharedMemory/PhysicsLoopBack.h",
|
|
"../../examples/SharedMemory/PhysicsLoopBackC_API.cpp",
|
|
"../../examples/SharedMemory/PhysicsLoopBackC_API.h",
|
|
"../../examples/SharedMemory/PhysicsClientSharedMemory.cpp",
|
|
"../../examples/SharedMemory/PhysicsClientSharedMemory.h",
|
|
"../../examples/SharedMemory/PhysicsClientC_API.cpp",
|
|
"../../examples/SharedMemory/PhysicsClientC_API.h",
|
|
"../../examples/SharedMemory/Win32SharedMemory.cpp",
|
|
"../../examples/SharedMemory/Win32SharedMemory.h",
|
|
"../../examples/SharedMemory/PosixSharedMemory.cpp",
|
|
"../../examples/SharedMemory/PosixSharedMemory.h",
|
|
"../../examples/SharedMemory/TinyRendererVisualShapeConverter.cpp",
|
|
"../../examples/SharedMemory/TinyRendererVisualShapeConverter.h",
|
|
"../../examples/OpenGLWindow/SimpleCamera.cpp",
|
|
"../../examples/OpenGLWindow/SimpleCamera.h",
|
|
"../../examples/TinyRenderer/geometry.cpp",
|
|
"../../examples/TinyRenderer/model.cpp",
|
|
"../../examples/TinyRenderer/tgaimage.cpp",
|
|
"../../examples/TinyRenderer/our_gl.cpp",
|
|
"../../examples/TinyRenderer/TinyRenderer.cpp",
|
|
"../../examples/Utils/b3ResourcePath.cpp",
|
|
"../../examples/Utils/b3ResourcePath.h",
|
|
"../../examples/ThirdPartyLibs/tinyxml/tinystr.cpp",
|
|
"../../examples/ThirdPartyLibs/tinyxml/tinyxml.cpp",
|
|
"../../examples/ThirdPartyLibs/tinyxml/tinyxmlerror.cpp",
|
|
"../../examples/ThirdPartyLibs/tinyxml/tinyxmlparser.cpp",
|
|
"../../examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.cpp",
|
|
"../../examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.h",
|
|
"../../examples/Importers/ImportColladaDemo/LoadMeshFromCollada.cpp",
|
|
"../../examples/Importers/ImportObjDemo/LoadMeshFromObj.cpp",
|
|
"../../examples/Importers/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.cpp",
|
|
"../../examples/Importers/ImportURDFDemo/BulletUrdfImporter.cpp",
|
|
"../../examples/Importers/ImportURDFDemo/MyMultiBodyCreator.cpp",
|
|
"../../examples/Importers/ImportURDFDemo/URDF2Bullet.cpp",
|
|
"../../examples/Importers/ImportURDFDemo/UrdfParser.cpp",
|
|
"../../examples/Importers/ImportURDFDemo/urdfStringSplit.cpp",
|
|
"../../examples/Importers/ImportMeshUtility/b3ImportMeshUtility.cpp",
|
|
"../../examples/ThirdPartyLibs/stb_image/stb_image.cpp",
|
|
}
|
|
|
|
project ("Test_PhysicsServerDirect")
|
|
|
|
language "C++"
|
|
kind "ConsoleApp"
|
|
|
|
includedirs {"../../src", "../../examples",
|
|
"../../examples/ThirdPartyLibs"}
|
|
defines {"PHYSICS_SERVER_DIRECT"}
|
|
links {
|
|
"BulletInverseDynamicsUtils",
|
|
"BulletInverseDynamics",
|
|
"BulletFileLoader",
|
|
"BulletWorldImporter",
|
|
"Bullet3Common",
|
|
"BulletDynamics",
|
|
"BulletCollision",
|
|
"BussIK",
|
|
"LinearMath"
|
|
}
|
|
|
|
files {
|
|
"test.c",
|
|
"../../examples/SharedMemory/IKTrajectoryHelper.cpp",
|
|
"../../examples/SharedMemory/IKTrajectoryHelper.h",
|
|
"../../examples/SharedMemory/PhysicsClient.cpp",
|
|
"../../examples/SharedMemory/PhysicsClient.h",
|
|
"../../examples/SharedMemory/PhysicsServer.cpp",
|
|
"../../examples/SharedMemory/PhysicsServer.h",
|
|
"../../examples/SharedMemory/PhysicsServerSharedMemory.cpp",
|
|
"../../examples/SharedMemory/PhysicsServerSharedMemory.h",
|
|
"../../examples/SharedMemory/PhysicsDirect.cpp",
|
|
"../../examples/SharedMemory/PhysicsDirect.h",
|
|
"../../examples/SharedMemory/PhysicsDirectC_API.cpp",
|
|
"../../examples/SharedMemory/PhysicsDirectC_API.h",
|
|
"../../examples/SharedMemory/PhysicsServerCommandProcessor.cpp",
|
|
"../../examples/SharedMemory/PhysicsServerCommandProcessor.h",
|
|
"../../examples/SharedMemory/PhysicsClientSharedMemory.cpp",
|
|
"../../examples/SharedMemory/PhysicsClientSharedMemory.h",
|
|
"../../examples/SharedMemory/PhysicsClientC_API.cpp",
|
|
"../../examples/SharedMemory/PhysicsClientC_API.h",
|
|
"../../examples/SharedMemory/Win32SharedMemory.cpp",
|
|
"../../examples/SharedMemory/Win32SharedMemory.h",
|
|
"../../examples/SharedMemory/PosixSharedMemory.cpp",
|
|
"../../examples/SharedMemory/PosixSharedMemory.h",
|
|
"../../examples/SharedMemory/TinyRendererVisualShapeConverter.cpp",
|
|
"../../examples/SharedMemory/TinyRendererVisualShapeConverter.h",
|
|
"../../examples/TinyRenderer/geometry.cpp",
|
|
"../../examples/TinyRenderer/model.cpp",
|
|
"../../examples/TinyRenderer/tgaimage.cpp",
|
|
"../../examples/TinyRenderer/our_gl.cpp",
|
|
"../../examples/TinyRenderer/TinyRenderer.cpp",
|
|
"../../examples/OpenGLWindow/SimpleCamera.cpp",
|
|
"../../examples/OpenGLWindow/SimpleCamera.h",
|
|
"../../examples/Utils/b3ResourcePath.cpp",
|
|
"../../examples/Utils/b3ResourcePath.h",
|
|
"../../examples/ThirdPartyLibs/tinyxml/tinystr.cpp",
|
|
"../../examples/ThirdPartyLibs/tinyxml/tinyxml.cpp",
|
|
"../../examples/ThirdPartyLibs/tinyxml/tinyxmlerror.cpp",
|
|
"../../examples/ThirdPartyLibs/tinyxml/tinyxmlparser.cpp",
|
|
"../../examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.cpp",
|
|
"../../examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.h",
|
|
"../../examples/Importers/ImportColladaDemo/LoadMeshFromCollada.cpp",
|
|
"../../examples/Importers/ImportObjDemo/LoadMeshFromObj.cpp",
|
|
"../../examples/Importers/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.cpp",
|
|
"../../examples/Importers/ImportURDFDemo/BulletUrdfImporter.cpp",
|
|
"../../examples/Importers/ImportURDFDemo/MyMultiBodyCreator.cpp",
|
|
"../../examples/Importers/ImportURDFDemo/URDF2Bullet.cpp",
|
|
"../../examples/Importers/ImportURDFDemo/UrdfParser.cpp",
|
|
"../../examples/Importers/ImportURDFDemo/urdfStringSplit.cpp",
|
|
"../../examples/Importers/ImportMeshUtility/b3ImportMeshUtility.cpp",
|
|
"../../examples/ThirdPartyLibs/stb_image/stb_image.cpp",
|
|
}
|
|
|
|
|
|
project ("Test_PhysicsServerInProcessExampleBrowser")
|
|
|
|
language "C++"
|
|
kind "ConsoleApp"
|
|
|
|
includedirs {"../../src", "../../examples",
|
|
"../../examples/ThirdPartyLibs"}
|
|
defines {"PHYSICS_IN_PROCESS_EXAMPLE_BROWSER"}
|
|
-- links {
|
|
-- "BulletExampleBrowserLib",
|
|
-- "BulletFileLoader",
|
|
-- "BulletWorldImporter",
|
|
-- "Bullet3Common",
|
|
-- "BulletDynamics",
|
|
-- "BulletCollision",
|
|
-- "LinearMath"
|
|
-- }
|
|
hasCL = findOpenCL("clew")
|
|
|
|
links{"BulletExampleBrowserLib","gwen", "OpenGL_Window","BulletFileLoader","BulletWorldImporter","BulletSoftBody", "BulletInverseDynamicsUtils", "BulletInverseDynamics", "BulletDynamics","BulletCollision","LinearMath","BussIK","Bullet3Common"}
|
|
initOpenGL()
|
|
initGlew()
|
|
|
|
includedirs {
|
|
".",
|
|
"../../src",
|
|
"../ThirdPartyLibs",
|
|
}
|
|
|
|
|
|
if os.is("MacOSX") then
|
|
links{"Cocoa.framework"}
|
|
end
|
|
|
|
if (hasCL) then
|
|
links {
|
|
"Bullet3OpenCL_clew",
|
|
"Bullet3Dynamics",
|
|
"Bullet3Collision",
|
|
"Bullet3Geometry",
|
|
"Bullet3Common",
|
|
}
|
|
end
|
|
|
|
files {
|
|
"test.c",
|
|
"../../examples/SharedMemory/IKTrajectoryHelper.cpp",
|
|
"../../examples/SharedMemory/IKTrajectoryHelper.h",
|
|
"../../examples/ExampleBrowser/InProcessExampleBrowser.cpp",
|
|
"../../examples/SharedMemory/InProcessMemory.cpp",
|
|
"../../examples/SharedMemory/PhysicsClient.cpp",
|
|
"../../examples/SharedMemory/PhysicsClient.h",
|
|
"../../examples/SharedMemory/PhysicsServer.cpp",
|
|
"../../examples/SharedMemory/PhysicsServer.h",
|
|
"../../examples/SharedMemory/PhysicsServerExample.cpp",
|
|
"../../examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp",
|
|
"../../examples/SharedMemory/PhysicsServerSharedMemory.cpp",
|
|
"../../examples/SharedMemory/PhysicsServerSharedMemory.h",
|
|
"../../examples/SharedMemory/PhysicsDirect.cpp",
|
|
"../../examples/SharedMemory/PhysicsDirect.h",
|
|
"../../examples/SharedMemory/PhysicsDirectC_API.cpp",
|
|
"../../examples/SharedMemory/PhysicsDirectC_API.h",
|
|
"../../examples/SharedMemory/PhysicsServerCommandProcessor.cpp",
|
|
"../../examples/SharedMemory/PhysicsServerCommandProcessor.h",
|
|
"../../examples/SharedMemory/PhysicsClientSharedMemory.cpp",
|
|
"../../examples/SharedMemory/PhysicsClientSharedMemory.h",
|
|
"../../examples/SharedMemory/PhysicsClientC_API.cpp",
|
|
"../../examples/SharedMemory/PhysicsClientC_API.h",
|
|
"../../examples/SharedMemory/Win32SharedMemory.cpp",
|
|
"../../examples/SharedMemory/Win32SharedMemory.h",
|
|
"../../examples/SharedMemory/PosixSharedMemory.cpp",
|
|
"../../examples/SharedMemory/PosixSharedMemory.h",
|
|
"../../examples/SharedMemory/TinyRendererVisualShapeConverter.cpp",
|
|
"../../examples/SharedMemory/TinyRendererVisualShapeConverter.h",
|
|
"../../examples/TinyRenderer/geometry.cpp",
|
|
"../../examples/TinyRenderer/model.cpp",
|
|
"../../examples/TinyRenderer/tgaimage.cpp",
|
|
"../../examples/TinyRenderer/our_gl.cpp",
|
|
"../../examples/TinyRenderer/TinyRenderer.cpp",
|
|
"../../examples/Utils/b3ResourcePath.cpp",
|
|
"../../examples/Utils/b3ResourcePath.h",
|
|
"../../examples/ThirdPartyLibs/tinyxml/tinystr.cpp",
|
|
"../../examples/ThirdPartyLibs/tinyxml/tinyxml.cpp",
|
|
"../../examples/ThirdPartyLibs/tinyxml/tinyxmlerror.cpp",
|
|
"../../examples/ThirdPartyLibs/tinyxml/tinyxmlparser.cpp",
|
|
"../../examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.cpp",
|
|
"../../examples/ThirdPartyLibs/Wavefront/tiny_obj_loader.h",
|
|
"../../examples/Importers/ImportColladaDemo/LoadMeshFromCollada.cpp",
|
|
"../../examples/Importers/ImportObjDemo/LoadMeshFromObj.cpp",
|
|
"../../examples/Importers/ImportObjDemo/Wavefront2GLInstanceGraphicsShape.cpp",
|
|
"../../examples/Importers/ImportURDFDemo/BulletUrdfImporter.cpp",
|
|
"../../examples/Importers/ImportURDFDemo/MyMultiBodyCreator.cpp",
|
|
"../../examples/Importers/ImportURDFDemo/URDF2Bullet.cpp",
|
|
"../../examples/Importers/ImportURDFDemo/UrdfParser.cpp",
|
|
"../../examples/Importers/ImportURDFDemo/urdfStringSplit.cpp",
|
|
"../../examples/MultiThreading/b3PosixThreadSupport.cpp",
|
|
"../../examples/MultiThreading/b3Win32ThreadSupport.cpp",
|
|
"../../examples/MultiThreading/b3ThreadSupportInterface.cpp",
|
|
"../../examples/Importers/ImportMeshUtility/b3ImportMeshUtility.cpp",
|
|
"../../examples/ThirdPartyLibs/stb_image/stb_image.cpp",
|
|
}
|
|
if os.is("Linux") then
|
|
initX11()
|
|
end
|
|
|
|
|