Bulletphysics QML plugin + source code + Qt3D demos
-
Hi, guys, would like to share Bulletphysics qml extension plugin with you:>
Demo videos:
Bullet Physics QML/Qt3D Demo (SphereShape and BoxShape):
https://www.youtube.com/watch?v=BS6QeKLuPOcMarble Maze Demo (HeightfieldTerrainShape and Generic6DofSpring2Constraint) :
https://www.youtube.com/watch?v=H31yGoCBI_AExcavator Simulation (HeightfieldTerrainShape and Constrains) :
https://www.youtube.com/watch?v=cdAX_U32A0MVehicle Simulation (HeightfieldTerrainShape and Constrains) :
https://www.youtube.com/watch?v=l9fTVQhWSnQSource Code:
https://bitbucket.org/csaga77/bullet-physics-qml-pluginBullet Physics QML Plugin provides Qt QML wrapper classes for bullet physics API which can be used together with Qt3D in physics simulation software.
The plugin is based on Qt 5.10 and Bullet 2.83.
Supported Bullet features
Rigid body dynamic simulation:
- AutoHeightmapImpactModifier
- CollisionObject
- DiscreteDynamicsWorld
- RigidBody
- ContackCallback
- RayTest
- HeightmapModifier
Collision shapes:
- BoxShape
- CapsuleShape
- CompoundShape
- ConeShape
- CylinderShape
- HeightfieldTerrainShape
- SphereShape
- StaticPlaneShape
- TriangleMeshShape
- UniformScalingShape
Constraints:
- ConeTwistConstraint
- FixedConstraint
- GearConstraint
- Generic6DofConstraint
- Generic6DofSpring2Constraint
- Generic6DofSpringConstraint
- Hinge2Constraint
- HingeAccumulatedAngleConstraint
- HingeConstraint
- Point2PointConstraint
- SliderConstraint
- UniversalConstraint
Supported Bullet related Qt3D render features
-
TriangleMesh: Defines a QML triangle mesh object which is used by TriangleMeshShape for physics simulation and TriangleMeshRenderer for 3D visulization.
-
TriangleMeshRenderer: render TriangleMesh.
Dependencies and supported platforms
Qt: 5.10 or above.
Bullet: 2.83
development platforms: Windows 7, osx.
target platforms: Windows 7, osx, iOS, Android.
gl3 and es2License
The Bullet Physics QML Plugin is licensed under the permissive zlib license. -
Hi,
Thanks for sharing !
-
Hi
Thank you for sharing.
Pretty cool :) -
My pleasure, adding more demo videos. I love QML/Qt3D:>
-
Wow! Cool!
-
Awesome project! How hard would it be to port the project to QtQuick 3D?
-
thank for your sharing . but when I compile the project ,the error " bullet development package not found". It seems that the bullet installed in my computer failed.
-
when I compiled the demos, setSpinningFriction was not a member of btRigidBody. but I have installed bulletPhysics 2.8.3 . I'd be sincerely grateful for your help.