Why is the detected position seem to be the opposite side of the prim?
example:
make 2 prims a small and large and conect the large one last and try this script in the main one
default
{
state_entry()
{
}
touch_start(integer total_number)
{
vector spot =(llGetPos() -llDetectedTouchPos(0));
// llSay(0,(string)spot);
llSetLinkPrimitiveParams(2,[ PRIM_POSITION,spot ] );
}
}
what do i need to do to make that ball go to the spot you touched?
Ha well just flipped it 180 on its z axis made it flat and now it seems to work seems you need to ad a get rot in there and do some complicated rotation multiplication anyone
have the formula on that?
;