OgreBullet basics

mrmclovin

20-06-2008 00:27:09

Hello. Im kinda new to ogrebullet and physics in general. I choose to just dive into OgreBullet and hope that I could learn something. My first task is to implement simple collision detection and sync the shape with entity when translating (no dynamics).

I think Im not oriented with the concept of physics enough, so I need a start. I've read through the demo code but some pieces are still missing. Could someone please describe the basic setup for collision detection in chronological order?

I've started like this:
1. Create a CollisionsWorld
2. Create a OgreBullet::Collsions::Object
3. Made the Object as a boxshape
4. Added Object to CollisionsWorld

I've succeeded to debugdraw the shape(box) into ogre. But how to i detect collision? How to i translate the shape?

Thanks in advanced! /Simon

mrmclovin

21-06-2008 18:12:52

Okey when looked closer in the code I saw that OgreBullet provides scenenodes automatically, so I've solved the translation of entity/shapes. However, collision detection remains? Can someone just help/hint where i should start to make up basic collision detection?