removed useless _ folders
This commit is contained in:
3
llLookAt_any_axis/llLookAt_any_axis.sol
Normal file
3
llLookAt_any_axis/llLookAt_any_axis.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="llLookAt_any_axis">
|
||||
<Project name="llLookAt_any_axis" path="llLookAt_any_axis\llLookAt_any_axis.prj" active="true"/>
|
||||
</Solution>
|
||||
@@ -0,0 +1,46 @@
|
||||
// :CATEGORY:Useful Subroutines
|
||||
// :NAME:llLookAt_any_axis
|
||||
// :AUTHOR:LSL Wiki
|
||||
// :CREATED:2010-02-01 16:11:49.660
|
||||
// :EDITED:2013-09-18 15:38:56
|
||||
// :ID:484
|
||||
// :NUM:651
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// llLookAt_any_axis
|
||||
// :CODE:
|
||||
// AXIS_* constants, represent the unit vector 1 unit on the specified axis.
|
||||
|
||||
vector AXIS_UP = <0,0,1>;
|
||||
|
||||
vector AXIS_LEFT = <0,1,0>;
|
||||
|
||||
vector AXIS_FWD = <1,0,0>;
|
||||
|
||||
|
||||
|
||||
// getRotToPointAxisAt()
|
||||
|
||||
// Gets the rotation to point the specified axis at the specified position.
|
||||
|
||||
// @param axis The axis to point. Easiest to just use an AXIS_* constant.
|
||||
|
||||
// @param target The target, in region-local coordinates, to point the axis at.
|
||||
|
||||
// @return The rotation necessary to point axis at target.
|
||||
|
||||
// Created by Ope Rand, modifyed by Christopher Omega
|
||||
|
||||
rotation getRotToPointAxisAt(vector axis, vector target) {
|
||||
|
||||
return llGetRot() * llRotBetween(axis * llGetRot(), target - llGetPos());
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Strength and damping are values used to control how llRotLookAt and llLookAt move, these values are tunable.
|
||||
|
||||
float strength = 1.0;
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<Project name="llLookAt_any_axis" guid="D836D589-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D836D684-6C00-1014-B904-200204C60A89">
|
||||
<Script name="llLookAt_any_axis_1.lsl" guid="D836F7E5-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user