removed useless _ folders
This commit is contained in:
3
Football/Football.sol
Normal file
3
Football/Football.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="Football">
|
||||
<Project name="Football" path="Football\Football.prj" active="true"/>
|
||||
</Solution>
|
||||
6
Football/Football/Football.prj
Normal file
6
Football/Football/Football.prj
Normal file
@@ -0,0 +1,6 @@
|
||||
<Project name="Football" guid="D7EFD58D-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D7EFD665-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Football_1.lsl" guid="D7F01048-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
71
Football/Football/Object/Football_1.lsl
Normal file
71
Football/Football/Object/Football_1.lsl
Normal file
@@ -0,0 +1,71 @@
|
||||
// :CATEGORY:FootBall
|
||||
// :NAME:Football
|
||||
// :AUTHOR:Niklas Waller
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:38:53
|
||||
// :ID:331
|
||||
// :NUM:444
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Here's a small script for a football. The ball can be kicked by just walking against it. Touching it causes the ball to bounce up in the air a couple of feet. You can also talk to it by saying "kick" which causes the ball to move with a certain vector strength and direction. "High kick" makes the ball going forward up in the air.
|
||||
// :CODE:
|
||||
|
||||
|
||||
default {
|
||||
|
||||
state_entry () {
|
||||
|
||||
llListen (0, "", "","");
|
||||
|
||||
// Make sure that Physical is turned on
|
||||
|
||||
llSetStatus (1, TRUE);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
collision_start (integer total_number) {
|
||||
|
||||
// Get the vector that points from the kicker to the ball
|
||||
|
||||
vector diff = llGetPos() - llDetectedPos(0);
|
||||
|
||||
|
||||
|
||||
// Force the z coordinate up
|
||||
|
||||
diff.z = .1;
|
||||
|
||||
|
||||
|
||||
// Scale the vector to a fixed length
|
||||
|
||||
vector kick_vector = llVecNorm(diff)*5;
|
||||
|
||||
|
||||
|
||||
// Apply the kick vector to the ball
|
||||
|
||||
llApplyImpulse(kick_vector, FALSE);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
listen (integer channel, string name, key id, string message) {
|
||||
|
||||
if (message == "kick") {
|
||||
|
||||
// Get the vector that points from the kicker to the ball
|
||||
|
||||
vector diff = llGetPos() - llDetectedPos(0);
|
||||
|
||||
|
||||
|
||||
// Force the z coordinate up
|
||||
|
||||
diff.z = .1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user