small objects and too early collisions

Post Reply
Otz
Posts: 8
Joined: Wed Jun 27, 2012 9:13 am

small objects and too early collisions

Post by Otz »

hey there,

I have a problem of the collisions of 2 small objects. the sizes are 0.05 and 0.01 units and the collision is too early, i think. the objects don't collide each other. it seems like they are magnetic or something.
is it possible that the collision is not perfect for small objects?

I tried to scale the world of a factor of 1000 and it works. but I wanna use the original size of the objects. I don't trust in scaling.

I hope you can held me. Maybe their is a parameter of the collision precision or something?

Thanks,
Oliver
Otz
Posts: 8
Joined: Wed Jun 27, 2012 9:13 am

Re: small objects and too early collisions

Post by Otz »

maybe I can answer the question by myself now :)

I found a function of the collision shape to set the collision margin with setMargin(double). Regularly, it's on 0.04 (4 cm).

Correct me, if I am wrong!
Post Reply