z value of location is always 10 lower after bullet retuns

inferno
Posts: 5
Joined: Wed Nov 27, 2013 1:53 am

z value of location is always 10 lower after bullet retuns

Post by inferno »

I've noticed that if I give a location value of any type to bullet the value it returns is always 10 lower than it should be. It does with raytesting and regular rigidbody physics objects. I don't know what's up with this, but I've just gone ahead and made sure to compensate for it in my code and it "seems" to work fine. I'm just worried it'll cause problems in the future.

Is this something common that I just messed up or is it something wrong with my code? It's pretty odd, and I don't know why it does this.
papaonn
Posts: 41
Joined: Wed Nov 20, 2013 4:14 pm

Re: z value of location is always 10 lower after bullet retu

Post by papaonn »

Hi,

Is this because of the gravity?
inferno
Posts: 5
Joined: Wed Nov 27, 2013 1:53 am

Re: z value of location is always 10 lower after bullet retu

Post by inferno »

papaonn wrote:Hi,

Is this because of the gravity?
No, I mean like If I place a box it will fall down to the ground and then hit the ground about 10 units lower than where the visual mesh is at. It's like the whole collision world is 10 units lower than the actual visual representation even though I give them the same coordinates.

edit -

I think I found the problem. It wasn't in my code but in some of the Jbullet stuff. Should be solved.