Character behaving weird in a Z up environment

Please don't post Bullet support questions here, use the above forums instead.
Banana
Posts: 6
Joined: Wed Jun 01, 2011 1:41 pm

Character behaving weird in a Z up environment

Post by Banana »

I am trying to implement Bullet in a game where not the y axis is up, but the z axis is. I am using a btKinematicCharacterController for my character, however I am not getting desired results.

Problem:
Moving along the x axis works perfectly, however when I try to call setWalkDirection() with a positive Y, the character seems to be moving in the positive Z direction as well as the positive Y.

Possible couse:
Since this only happens in the positive Y direction, I suspect the btKinematicCharacterController does not fully understand the Y axis is not up. I called btKinematicCharacterController() with 2 as the 4th parameter to make it fall along the Z axis. I have set the gravity direction to 0,0,-10 on btDiscreteDynamicsWorld.

Do I need to do anything else to tell bullet the Z axis is up, or is there something else what might couse this problem or does this sound familuar to somebody?
Banana
Posts: 6
Joined: Wed Jun 01, 2011 1:41 pm

Re: Character behaving weird in a Z up environment

Post by Banana »

setWalkDirection(btVector3(a_velocity.x, a_velocity.y, a_velocity.y));


urgh........ never mind...... -.-