Fork of Ryan Bartley's Block.
Updated to Cinder Master. Updated to Visual Studio 2017 Working platforms support Windows. Maybe iOS and OSX (Currently untested). Currently, CUDA classes are not included in the build on Windows, for ease of building. Plan is to include them eventually.
(Note: SoftBodyDemo, Constraints and SphereGravity demos are working but not commented and experimental).
The implicit order of samples is as follows...
- HelloWorld
- This is simply the HelloWorld bullet tutorial running in cinder. This is raw Bullet and shows a lot of what is going on under the hood.
- PhysicsPrimitives
- VisualPhysics
- HeightfieldTerrain
- RayCasting
- Shows the operation of raycasting into the bullet context (the world), selecting an object and the ability to manipulate that object in bullet or in your own program. It also shows the use of a simple constraint.
- TriggerVolume
- Shows the operation of creating a trigger and adding that to the world. Triggers are great for explosions, or knowing when something passes an obstacle, etc. It doesn't cause a physical effect in the world but it will issue a collision to your collision listener. You can use this with logic to "trigger" effects.
- RagDoll
- Constraints (when finished)
- This will be where I represent using constraints with Cinder-Bullet3D.
- The sample will be modeled from the Bullet Constraint demo.
- Still working out how to use Constraints within my system because I don't want to wrap all of them. :)
- SphereGravity (almost finished)
- Contributed by Robert Hodgin. Thanks Robert!
- This is an advanced case, showing many optimizations using Bullet and gl.
- Uses instancing, UniformScaleShape ( to use the same shape with different uniform scales )
- SoftBodyDemo (when finished)
You can find out more about bullet at http://bulletphysics.org/wordpress/