Search found 7 matches

by ill
Sat Mar 19, 2011 6:27 pm
Forum: General Bullet Physics Support and Feedback
Topic: Triangle mesh question
Replies: 0
Views: 1782

Triangle mesh question

So in our game I use vertex arrays to render the level, and also use the same data structure to pass to the btBvhTriangleMesh object. I use the btTriangleIndexVertexArray to initialize it right now. One thing about rendering with vertex arrays is that I have to have multiple sets of vertex positions...
by ill
Tue Mar 15, 2011 7:33 am
Forum: General Bullet Physics Support and Feedback
Topic: btVector3 and others not initialized to (0,0,0) by default?!
Replies: 5
Views: 4275

btVector3 and others not initialized to (0,0,0) by default?!

Is there a reason why the default constructor for things like btVector3 doesn't initialize it to (0,0,0). I've written vector classes before and my implementations always had the constructor look something like this: Vector3(float x = 0.0f, float y = 0.0f, float z = 0.0f) so it would by default init...
by ill
Mon Mar 07, 2011 11:13 pm
Forum: General Bullet Physics Support and Feedback
Topic: btEquals question?
Replies: 2
Views: 2264

Re: btEquals question?

Yeah that looks about right.

I really wish the documentation in bullet physics was better. It's pretty much nonexistant in the API docs.
by ill
Mon Mar 07, 2011 7:37 pm
Forum: General Bullet Physics Support and Feedback
Topic: btEquals question?
Replies: 2
Views: 2264

btEquals question?

I'm pretty confused about the btEquals function. This is the code from btScalar.h. SIMD_FORCE_INLINE bool btEqual(btScalar a, btScalar eps) { return (((a) <= eps) && !((a) < -eps)); } I can't find any documentation on this function. All I know is it's called btEquals. I first thought it comp...
by ill
Wed Feb 16, 2011 7:02 am
Forum: General Bullet Physics Support and Feedback
Topic: ConvexSweepTest problems with overpenetration?
Replies: 0
Views: 1749

ConvexSweepTest problems with overpenetration?

Is it normal for the ConvexSweepTest function to return distances that overpenetrate a little bit? If so what are some smart ways to deal with it? I'm writing some platform character movement code using a kinematic body. Basically think Soldat(If you've played that game) or better yet Booster Troope...
by ill
Mon Feb 07, 2011 4:12 am
Forum: General Bullet Physics Support and Feedback
Topic: How to make crouching. Change collision shape on the fly?
Replies: 6
Views: 10117

How to make crouching. Change collision shape on the fly?

I'm using a capsule as a collision shape for my game character. I thought it would be pretty straight forward to just on the fly switch between two capsules which are different heights. I can't seem to find a function that allows to set a collision shape on the fly and can't find anything on Google....
by ill
Sat Jan 29, 2011 4:54 am
Forum: General Bullet Physics Support and Feedback
Topic: Tips on character movement
Replies: 1
Views: 3479

Tips on character movement

I've looked at tutorials on doing character movement with bullet and have seen many different techniques. Basically this always seems like a problem for people new to bullet. I successfully created a static triangle mesh world that is synchronized with the drawn polygons. I also added random boxes t...