Bullet in own opengl framework (iOS) -


we made opengl game ipad , wrote need except collision detection. have renderer, shaders etc.

my question is: how integrate bullet? wrote bullet collision code in class physicsmanager. our game set in cave , first person perspective.

what did is:

-set dynamicsworld.
-read in cave model , store vertices/indices in indexed mesh , add mesh triangleindexvertexarray. generating trimesh shape , rigid body it.
-for player take sphere dynamic rigidbody.
-then stepsimulation.

now how can integrate our existing framework (no bulletcode except in physicsmanager). when/where call (hence creating phisycsmanager object in main file).

btw: followed pretty tutorial/the instructions written in hello world "demo". trimesh solved same way did in benchmarkdemo.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -