Advice on ogreODE physic & boundingBox node

deathunt

28-02-2007 22:36:12

On the first picture:
-mesh
-bounding box.

On the second:
mesh
geom/physic of ogreODE in purple
2 bounding box in white.


It is normal ?
I mean, did I accidently made 2 node 1 for physic and 1 for mesh entity ?

http://sunensb.uqac.ca/~rpgcommun/tmp/oo1.jpg
http://sunensb.uqac.ca/~rpgcommun/tmp/oo2.jpg

rewb0rn

01-03-2007 09:37:52

well if you let show the bounding box of the mesh and the bounding box of the ogreode geomtry i guess its normal, because entity and geometry are not supposed to be exactly the same. if you dont have any problems with this, i would ignore it. 2 different objects (mesh - geometry) = 2 different bounding boxes

but im not sure, just guessing

deathunt

01-03-2007 15:59:14

Would it be better to have one node with one entity and geometry ?


--------node
------- /----\
-------/------\
geometry---entity



nodeChilds(geometry,entity)

rewb0rn

02-03-2007 13:42:50

depends if your collision does not fit to the models shape then yes (e.g. this is case in the walking character tutorial) else its not necessary. but as mentioned before, as long as you dont have any problems with this beneath that the bounding boxes arent exactly the same i would ignore it.