okay, going to materials...
so i have bullet
Code:
you = ent_create(bullet_mdl,my.x,0);
you.scale_x=.5; you.scale_y=.25; you.scale_z=.25;
vec_set(you.pan,my.pan);
you.skill99 = newton_addentity(you, 1, NEWTON_SPHERE, Bulletforceandtorque);
NewtonBodySetMaterialGroupID(you.skill99,bullet_nmat);
and box
Code:
action box_weapon_test()
{
c_setminmax(me);
my.skill99 = newton_addentity(me, 15, NEWTON_BOX, onforceandtorque);
NewtonBodySetMaterialGroupID(my.skill99,box_nmat);
}
and collision
Code:
NewtonMaterialSetCollisionCallback(nworld, bullet_nmat, box_nmat, 0, collided_ground, collided_ground2, collided_ground3);
NewtonMaterialSetDefaultCollidable(nworld, bullet_nmat, box_nmat, 1);
collided_ground - just beeps 1,2 and 3 times
so, bullet collides with box and nothing changes and beeps...