I'm creating a bow and arrow. I have a script that always has the arrow rotating so that the z axis is always facing in the velocity direction. The script works to set the rotation of the arrow but the script will not change the rotation if the arrow is physical. I'm not sure what I am doing wrong. Any help is appreciated. Thanks! My script: default
{
state_entry()
{
llSetTimerEvent(1);
llCollisionFilter("Target", NULL_KEY, TRUE);
}
collision_start(integer total
You maybe want to give this method below a shot.
Make the arrow a vehicle type airplane:
llSetVehicleType(VEHICLE_TYPE_AIRPLANE);
Adjust the reference frame if needed, to make the Z axis pointing in the direction of velocity.
llSetVehicleRotationParam(VEHICLE_REFERENCE_FRAME, llEuler2Rot(<0.0,270.0,0.0> * DEG_TO_RAD));
Disable the linear and angular friction:
llSetVehicleVectorParam(VEHICLE_LINEAR_FRICTION_TIMESCALE, <10000.0, 10000.0, 10000.0>);llSetVehicleVectorParam(VEHICLE_AN