LlAngleBetween
Looking for the current API? Open the llAngleBetween reference →
Return value notes
Examples
default
{
touch_start(integer num_detected)
{
rotation currentRootRotation = llGetRootRotation();
float angle = llAngleBetween(ZERO_ROTATION, currentRootRotation);
// PUBLIC_CHANNEL has the integer value 0
llSay(PUBLIC_CHANNEL,
"llAngleBetween(ZERO_ROTATION, " + (string)currentRootRotation + ") = " + (string)angle);
}
}See also: functions
Shared wiki helpers
The original page also injects shared parameter notes, caveats or issue information through these helpers. Their conditional MediaWiki logic is not reproduced here; inspect the preserved helper source for additional material.
Original shared helper source (conditional wiki logic is not evaluated)
{{Issues|SVC-2424|type=bug|[[llAngleBetween]]() is sometimes inaccurate}}Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.