Horde3D

Next-Generation Graphics Engine
It is currently 14.08.2018, 14:24

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 20.12.2009, 22:06 
Offline

Joined: 23.10.2009, 19:35
Posts: 23
I have implemented a vehicle (from Bullet's VehicleDemo) in the GameEngine.
I have run into some trouble: I'm reading the wheel's Bullet transform and sending an event with the opengl transform so that the game entity/node for the wheel will be displayed... it is positioned correctly but the rotation is not quite right, it's 90 degrees wrong in the z-axis and I can't understand why (the wheel model is looking fine rotated in my modeling tool)... must I do something with the rotation when reading out the opengl transform (from the Bullet transform) and creating the float* array for sending for display?
Btw, when I display the wheels as cylinders in GLPhysicsView.cpp (from Bullet's opengl transform, gotten from btTransform) it looks correct.

I hope I made myself clear.... any help on this matter is very welcome. Thanks in advance!


Top
 Profile  
Reply with quote  
PostPosted: 22.12.2009, 22:14 
Offline

Joined: 23.10.2009, 19:35
Posts: 23
I solved it by rotating the wheel so it lies along the z-axis (in my modeling tool).


Top
 Profile  
Reply with quote  
PostPosted: 23.12.2009, 08:58 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1149
Location: Germany
Probably the default transformation for the bounding volume in bullet was not aligned with the one of your vertices. So your solution should be the correct one. The other possibility would be to change the bounding volume orientation, but that would be a more drastic change for others, so I guess changing the vertices is better.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group