Difference between revisions of "User:Draconis Neurocam"
Jump to navigation
Jump to search
m (Removed Twitter anything and replaced with Mastodon.) |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
I take this as an extension of real life, and not something separate. | I take this as an extension of real life, and not something separate. | ||
---- | ---- | ||
[ | [https://mastodon.social/@Neurocam @Neurocam@mastodon.social] | ||
< | <source lang="lsl2"> | ||
//Written by Nomad Padar one of the most genius people I have ever known | //Written by Nomad Padar one of the most genius people I have ever known | ||
vector int2vec(integer n) { | vector int2vec(integer n) { | ||
Line 45: | Line 45: | ||
} | } | ||
</ | </source> | ||
< | <source lang="lsl2"> | ||
SetLinkPosLocal2Root(integer linknum,vector offset) | SetLinkPosLocal2Root(integer linknum,vector offset) | ||
{ | { | ||
llSetLinkPrimitiveParamsFast(linknum, [PRIM_POSITION, (llList2Vector(llGetLinkPrimitiveParams(linknum, [PRIM_POS_LOCAL]),0))+offset]); | |||
} | } | ||
</ | </source> | ||
< | <source lang="lsl2"> | ||
<value,maxvalue - value,0> / maxvalue | <value,maxvalue - value,0> / maxvalue | ||
</ | |||
<1.0-health,health*health,0.0> | |||
</source> | |||
<source lang="lsl2"> | |||
llGetPos() + <1,0,0>*llGetRot() | |||
</source> | |||
<source lang="lsl2"> | |||
list ray(vector s, vector e) | |||
{ | |||
return llCastRay(s,e, | |||
[ | |||
RC_REJECT_TYPES, | |||
0 | |||
//RC_REJECT_AGENTS | |||
//|RC_REJECT_PHYSICAL | |||
//|RC_REJECT_NONPHYSICAL | |||
//|RC_REJECT_LAND | |||
, | |||
RC_DATA_FLAGS, | |||
0 | |||
//RC_GET_NORMAL | |||
//|RC_GET_ROOT_KEY | |||
//|RC_GET_LINK_NUM | |||
, | |||
RC_MAX_HITS, 1, | |||
RC_DETECT_PHANTOM,FALSE | |||
]); | |||
} | |||
</source> | |||
<source lang="lsl2"> | |||
//forwards loop through n | |||
(i=(i+1)%n) | |||
//backwards loop through n | |||
(i=(n+i-1)%n) | |||
</source> | |||
{{skills | {{skills | ||
|Architect=* | |Architect=* | ||
Line 66: | Line 102: | ||
|Terraformer= | |Terraformer= | ||
|}} | |}} | ||
{{ISO 639-3/cat-speaking|eng}} | {{ISO 639-3/cat-speaking|eng}} |
Latest revision as of 03:30, 3 February 2023
Salutations, I am Draconis Neurocam.
My goal is to make things better to the best of my ability.
This place is something I dreamed would exist as a child, and now since it does, I love being a part of it.
What most people never actually realize is how powerful what we have at our fingertips is.
I take this as an extension of real life, and not something separate.
//Written by Nomad Padar one of the most genius people I have ever known
vector int2vec(integer n) {
//0zyx ZZZZ ZZZZ ZZZZ YYYY YYYY XXXX XXXX
return <n&0xFF, (n>>8)&0xFF, ((n>>16)&0xFF)> + <((n&0x10000000)!=0)*.5,((n&0x20000000)!=0)*.5,((n&0x40000000)!=0)*.5>;
}
integer vec2int(vector v) {
integer x = (integer)(v.x);
integer y = (integer)(v.y);
integer z = (integer)(v.z);
integer out;
//Rounds to 0, .5, or 1.0
float delta = v.x-x;
if((delta>.25) && (delta<.75)) out += 0x10000000;
else if(delta>.75) out += 0x1;
delta = v.y-y;
if((delta>.25) && (delta<.75)) out += 0x20000000;
else if(delta>.75) out += 0x100;
delta = v.z-z;
if((delta>.25) && (delta<.75)) out += 0x40000000;
else if(delta>.75) out += 0x10000;
out += x+(y<<8)+(z<<16);
return out;
}
default
{
touch_start(integer total_number)
{
integer param = vec2int(llGetPos());
llSay(0, (string)param);
llSay(0, (string)int2vec(param));
}
}
SetLinkPosLocal2Root(integer linknum,vector offset)
{
llSetLinkPrimitiveParamsFast(linknum, [PRIM_POSITION, (llList2Vector(llGetLinkPrimitiveParams(linknum, [PRIM_POS_LOCAL]),0))+offset]);
}
<value,maxvalue - value,0> / maxvalue
<1.0-health,health*health,0.0>
llGetPos() + <1,0,0>*llGetRot()
list ray(vector s, vector e)
{
return llCastRay(s,e,
[
RC_REJECT_TYPES,
0
//RC_REJECT_AGENTS
//|RC_REJECT_PHYSICAL
//|RC_REJECT_NONPHYSICAL
//|RC_REJECT_LAND
,
RC_DATA_FLAGS,
0
//RC_GET_NORMAL
//|RC_GET_ROOT_KEY
//|RC_GET_LINK_NUM
,
RC_MAX_HITS, 1,
RC_DETECT_PHANTOM,FALSE
]);
}
//forwards loop through n
(i=(i+1)%n)
//backwards loop through n
(i=(n+i-1)%n)