Newbie question - Advice on collision shapes
-
- Posts: 16
- Joined: Fri Dec 04, 2009 7:14 pm
Re: Newbie question - Advice on collision shapes
**Deleted post. Not relevant anymore**
Last edited by smuffer on Tue Dec 15, 2009 6:41 pm, edited 1 time in total.
-
- Posts: 16
- Joined: Fri Dec 04, 2009 7:14 pm
Re: Newbie question - Advice on collision shapes
Hiya people! Ignore my last post because I got a debug drawer working! I didnt use the btIdebugdrawer in the end but instead used code from
http://www.programmingmind.com/bullet-p ... ng-directx
Anyway now, as always, I have a new problem! As I described a while ago collision with my track was realy screwy. The car couldnt fall through the center of the track and there were wierd collision points everywhere, well now I can see it.
The first 2 pictures show me creating a static object using btBvHTriangleMeshShape on an enemy(the debug drawing is the purple one). The second 2 pictures show my track being created in the same way, again the purple shows the debug drawing.




As you can see something has gone horribly wrong when making the collision shape for my track.
Any Ideas as to how this is happening? Could it be the artists doing something wrong when making the track? Why does the enemy work ok?
My greatest thanks to anyone who can tell me whats happening.
http://www.programmingmind.com/bullet-p ... ng-directx
Anyway now, as always, I have a new problem! As I described a while ago collision with my track was realy screwy. The car couldnt fall through the center of the track and there were wierd collision points everywhere, well now I can see it.
The first 2 pictures show me creating a static object using btBvHTriangleMeshShape on an enemy(the debug drawing is the purple one). The second 2 pictures show my track being created in the same way, again the purple shows the debug drawing.




As you can see something has gone horribly wrong when making the collision shape for my track.
Any Ideas as to how this is happening? Could it be the artists doing something wrong when making the track? Why does the enemy work ok?
My greatest thanks to anyone who can tell me whats happening.
-
- Posts: 16
- Joined: Fri Dec 04, 2009 7:14 pm
Re: Newbie question - Advice on collision shapes
Hi guys sorry if im 'bumping' this thread. Maybe I should start this in a new thread seeing as the relevance has kind of shifted.
So I had a crazy idea and was wondering if someone could shed light as to whether this might be a worthwhile solution to my problem with the collision on my track.
Could it be that the track is a loop...as in an object with a hole through it and when building the collision shape from the model its getting confused and going screwy. What if the track was designed so that the end was not connected to the yet to be designated 'start line' but instead just placed right next to it. Wouldn't it then build the collision shape just like the previous enemy objects I posted previously?
If anyone could say if this is a solution worth persuing or indeed any other solution I would be much appreciative.
So I had a crazy idea and was wondering if someone could shed light as to whether this might be a worthwhile solution to my problem with the collision on my track.
Could it be that the track is a loop...as in an object with a hole through it and when building the collision shape from the model its getting confused and going screwy. What if the track was designed so that the end was not connected to the yet to be designated 'start line' but instead just placed right next to it. Wouldn't it then build the collision shape just like the previous enemy objects I posted previously?
If anyone could say if this is a solution worth persuing or indeed any other solution I would be much appreciative.