removed useless _ folders

This commit is contained in:
Fred Beckhusen
2015-08-09 16:54:31 -05:00
parent fde850293c
commit 948a44dfba
5204 changed files with 2425579 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
<Solution name="Car_Script_Rear_Wheel">
<Project name="Car_Script_Rear_Wheel" path="Car_Script_Rear_Wheel\Car_Script_Rear_Wheel.prj" active="true"/>
</Solution>

View File

@@ -0,0 +1,6 @@
<Project name="Car_Script_Rear_Wheel" guid="D6F4CF3E-6C00-1014-B904-200204C60A89">
<Object name="Object" guid="D6F4D02E-6C00-1014-B904-200204C60A89">
<Script name="Car_Script_Rear_Wheel_1.lsl" guid="D6F4EA2C-6C00-1014-B904-200204C60A89">
</Script>
</Object>
</Project>

View File

@@ -0,0 +1,80 @@
// :CATEGORY:Vehicles
// :NAME:Car_Script_Rear_Wheel
// :AUTHOR:Anonymous
// :CREATED:2010-01-10 05:20:56.000
// :EDITED:2013-09-18 15:38:50
// :ID:156
// :NUM:224
// :REV:1.0
// :WORLD:Second Life
// :DESCRIPTION:
// Car Script (Rear Wheel).lsl
// :CODE:
rotation Inverse(rotation r)
{
r.x = -r.x;
r.y = -r.y;
r.z = -r.z;
return r;
}
rotation GetParentRot()
{
return Inverse(llGetLocalRot())*llGetRot();
}
SetLocalRot(rotation x)
{
llSetRot(x*Inverse(GetParentRot()));
}
default
{
state_entry()
{
}
link_message(integer sender_num, integer num, string str, key id)
{
if(str == "WHEEL_DRIVING")
{
state driving;
}
}
}
state driving
{
state_entry()
{
SetLocalRot(llEuler2Rot(<-1 * PI_BY_TWO,0,0> ));
llSetTimerEvent(0.5);
}
timer()
{
vector vel = llGetVel();
float speed = llVecMag(vel);
llSetTextureAnim(ANIM_ON|LOOP|SMOOTH|ROTATE,ALL_SIDES,0,0,0,0,speed);
}
link_message(integer sender_num, integer num, string str, key id)
{
if(str == "WHEEL_DEFAULT")
{
state default;
}
}
state_exit()
{
SetLocalRot(llEuler2Rot(<-1 * PI_BY_TWO,0,0> ));
llSetTextureAnim(0,ALL_SIDES,0,0,0,0,0);
}
}
// END //