Sceneform-Bullet is an integration between Google Sceneform Framework
and the Bullet Physics engine.
This integration enables you to add Physics simulation for your 3D rendered world either it is AR-related or nor AR related.
Currently the integration allows you to create simple geometric primitives colliders i.e: Box,Cylinder and Spehre.
You can also apply a force to any created body. The API is very simple and straightforward.
The integration depends on the "Bullet" android build so you need to build the Bullet engine yourself for the android platform which is a very simple process .You will find aan android subfolder in the bullet src that contains the "android.mk" that can be used easily with "Android NDK" to build the bullet static library. seen NDK documentation for instructions on how to build a native Library using mk files.
Once you have bullet built for your prefered ABI ,just copy it under the proper subfolder in "bullet_android" directory. For your convenience,a pre-built bullet Lib is provided for the arm64 ABI only to start right away .
You are now ready to build the integration,just open the project in android studio and see it working.
- Click the light-blue circular Button to Throw a random physical body: Sphere,Cylinder or a Cube.
- Tap on any body in the scene to apply an upward force to it.
If you have any concerns ,or willing to participate, i'll be very delighted to help:
[email protected]