Hi,
i use odejava for all collisonsdetections and i use GeomRay for collisionsdetection of bullets<->Objects. When rays collide with bodygeom’s its works fine, but i dont get collisions between Rays and Geoms [eg: Bullet hits Character work / bullet hits house dont work]
any idea ? thanks for help
initmyworld:
world = new World();
world.setGravity(0f, -9.81f,0);
world.setStepInteractions(10);
world.setStepSize(0.05f);
space = new QuadTreeSpace(
new float[]{0,0,0},
new float[]{200,200,200},
4
);
collision = new JavaCollision(world);
contact =
new Contact(
collision.getContactIntBuffer(),
collision.getContactFloatBuffer());
update my world:
collision.collide(space);
iterateContacts();
collision.applyContacts();
world.step();
iteratecontacts:
for (int i = 0; i < collision.getContactCount(); i++) {
contact.setIndex(i);
// Doing some things / checks...
}