[SOLVED] (Ogre + Bullet) Ogre problem or Bullet problem?

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
User avatar
emersonmx
Gnoblar
Posts: 6
Joined: Sat Dec 22, 2012 3:37 am
Location: Parelhas - RN, Brazil

[SOLVED] (Ogre + Bullet) Ogre problem or Bullet problem?

Post by emersonmx »

I'm trying to use Ogre and Bullet together, but the drawing is wrong or the physics are wrong!

In example, I create a square 10x10 and create a collision shape 10x10 for that. Until here,
I guess that OK, but the square don't hit the ground on the window bottom.
Or hit, but the drawing are wrong.

I don't know where and how fix that. Someone can tell what I'm doing wrong?

Thanks in advance.
Attachments
bt_ogre.zip
Look SetupObjects for Scene and Bullet shape setup
(15.04 KiB) Downloaded 14 times
Last edited by emersonmx on Sun Sep 08, 2013 2:46 am, edited 1 time in total.
User avatar
areay
Bugbear
Posts: 819
Joined: Wed May 05, 2010 4:59 am
Location: Auckland, NZ
x 69

Re: [Ogre + Bullet] Ogre problem or Bullet problem?

Post by areay »

Take a screenshot with the BtOgre debug drawer turned on showing your object and its physics shape. I assume that's what you're asking about.
User avatar
emersonmx
Gnoblar
Posts: 6
Joined: Sat Dec 22, 2012 3:37 am
Location: Parelhas - RN, Brazil

Re: [Ogre + Bullet] Ogre problem or Bullet problem?

Post by emersonmx »

A Debug Drawer... hmmm... I will see that. When finished, I'll post the code and a printscreen xD
User avatar
emersonmx
Gnoblar
Posts: 6
Joined: Sat Dec 22, 2012 3:37 am
Location: Parelhas - RN, Brazil

Re: [Ogre + Bullet] Ogre problem or Bullet problem?

Post by emersonmx »

:D
debug_drawer.png
debug_drawer.png (2.59 KiB) Viewed 509 times
Look, the Bullet creates a square expanding the value from the center.
Never would guess that without a DebugDrawer :D
http://www.ogre3d.org/tikiwiki/BulletDe ... letUtils.h

So to solve the problem is only break in the middle! :twisted:

Thanks for the help!
Attachments
bt_ogre.zip
(16.95 KiB) Downloaded 13 times
Post Reply