MantisBT - opensim
View Issue Details
0008420opensim[REGION] Physics Enginespublic2018-12-10 05:092018-12-11 09:25
brenner23 
 
normalminorhave not tried
newopen 
0.9.0.1 
 
Latests and befor 8.2.xx
Standalone (1 Region) , Standalone (Multiple Regions) , Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)
BulletSim
Mono / Linux64
5.x
Firestorm, Singularity...
0008420: Physiks Flying Follow Objetcs
I have a Script here it was working on Older version from Opensim
its a Follow Prim Script... ( Physics), bur its alwas rotating but no Follow
*Someone told me i have to change some on true but than its folling bur rotate in all directions and not only on X or Y axis
Here is the Script

default
{
    state_entry()
    {
        vector pos = llGetPos();
        llSetStatus(STATUS_ROTATE_X | STATUS_ROTATE_Y, FALSE);
        llSetStatus(STATUS_PHYSICS, TRUE);
        llSleep(0.1);
        llMoveToTarget(pos,0.1);
        key id = llGetOwner();
        llSensorRepeat("",id,AGENT,20,2*PI,.4);
        llOwnerSay(" i will Follow you ...");
    }
     on_rez(integer bla)
    {
        vector pos = llGetPos();
        llSetStatus(STATUS_ROTATE_X | STATUS_ROTATE_Y, FALSE);
        llSetStatus(STATUS_PHYSICS, TRUE);
        llSleep(0.1);
        llMoveToTarget(pos,0.1);
        key id = llGetOwner();
        llSensorRepeat("",id,AGENT,20,2*PI,.4);
        llOwnerSay(" i will Follow you ...");
    }

    sensor(integer total_number)
    {
        vector pos = llDetectedPos(0);
        vector offset =<-1,1,1.0>;
        pos+=offset;
        llMoveToTarget(pos,.5);
    }
}
*Someone told me i have to change some on true but than its folling bur rotate in all directions and not only on X or Y axis

llSetStatus(STATUS_ROTATE_X | STATUS_ROTATE_Y, FALSE);
No FLy only rotating

llSetStatus(STATUS_ROTATE_X | STATUS_ROTATE_Y, TRUE);
Fly but rotating all direction

No tags attached.
Issue History
2018-12-10 05:09brenner23New Issue
2018-12-11 09:25UbitUmarovNote Added: 0033609

Notes
(0033609)
UbitUmarov   
2018-12-11 09:25   
made a change on master repo
this script will now do something on ubOde