removed useless _ folders
This commit is contained in:
3
LinkedPrim Look At/LinkedPrim Look At.sol
Normal file
3
LinkedPrim Look At/LinkedPrim Look At.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="LinkedPrim Look At">
|
||||
<Project name="LinkedPrim Look At" path="LinkedPrim Look At\LinkedPrim Look At.prj" active="true"/>
|
||||
</Solution>
|
||||
@@ -0,0 +1,6 @@
|
||||
<Project name="LinkedPrim Look At" guid="2b45e37f-6edc-4f6f-be16-18905517f2cc">
|
||||
<Object name="Object" guid="bac5795f-6bea-4b20-a839-7ede244d0d8d" active="true">
|
||||
<Script name="Script.lsl" guid="f56003bf-a740-4f10-aa6d-e58a41aa982c">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
36
LinkedPrim Look At/LinkedPrim Look At/Object/Script.lsl
Normal file
36
LinkedPrim Look At/LinkedPrim Look At/Object/Script.lsl
Normal file
@@ -0,0 +1,36 @@
|
||||
// :CATEGORY:Look At
|
||||
// :NAME:LinkedPrim Look At
|
||||
// :AUTHOR:Anonymous
|
||||
// :KEYWORDS:
|
||||
// :CREATED:2014-04-04 22:01:39
|
||||
// :EDITED:2014-04-04
|
||||
// :ID:1032
|
||||
// :NUM:1608
|
||||
// :REV:1
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Lets you point a linked prim at an object
|
||||
// :CODE:
|
||||
// If you want to use the LookAt function on a linked object...
|
||||
// License CC BY-NC-SA 3.0.
|
||||
// Original function by http://digigrids.free.fr/wiki/index.php?title=LlLookAt
|
||||
|
||||
LinkedLookAt( vector Target){
|
||||
rotation rotvec = llRotBetween(<0,1,0>,llVecNorm((Target - llGetPos())));
|
||||
rotation rotbet = rotvec/llGetRootRotation();
|
||||
llSetRot(rotbet);
|
||||
}
|
||||
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
llSensorRepeat("", "", AGENT, 20.0, PI, 1.0);
|
||||
}
|
||||
|
||||
sensor(integer total_number)
|
||||
{
|
||||
vector p = llDetectedPos(0);
|
||||
LinkedLookAt(p);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user