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.
z value of location is always 10 lower after bullet retuns
-
- Posts: 5
- Joined: Wed Nov 27, 2013 1:53 am
-
- Posts: 41
- Joined: Wed Nov 20, 2013 4:14 pm
Re: z value of location is always 10 lower after bullet retu
Hi,
Is this because of the gravity?
Is this because of the gravity?
-
- Posts: 5
- Joined: Wed Nov 27, 2013 1:53 am
Re: z value of location is always 10 lower after bullet retu
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.papaonn wrote:Hi,
Is this because of the gravity?
edit -
I think I found the problem. It wasn't in my code but in some of the Jbullet stuff. Should be solved.