I'm making these throwing knives that rotate using PRIM_OMEGA as they soar through the air and I'm wanting them to stick to what they hit. So by doing that, I thought i'd change the physics of them as well as the rotation when they collide. My code is as followed:
default
{
state_entry()
{
llSetPrimitiveParams([PRIM_OMEGA, <0,0,2>, 10, 1]);
}
collision(integer num_detected)
{
llSetPrimitiveParams([PRIM_OMEGA, <0,0,0>, 10, 1, PRIM_PHYSICS, FALSE]);
llSetTimerEvent(10);
}
}
However, when it hits an object, it just bounces off them and it doesn't stop spinning. How do I fix this?