All pastes #917978 Raw Edit

Someone

public text v1 · immutable
#917978 ·published 2008-02-25 20:32 UTC
rendered paste body
//c#  

double x = 0;
double y = 0;
double z = 0;

public void default_event_state_entry()
{
    llSetTimerEvent(0.1); 
}
 
public void default_event_timer() {
    x += 0.1;
    y += 0.1;
    z += 0.15;
    // Make sure we never overflow
    if (x > 1000) x = 0;
    if (y > 1000) y = 0;
    if (z > 1000) z = 0;
    
    Prim.Position.x = System.Math.Sin(x) * 10 + 100;
    Prim.Position.y = System.Math.Cos(y) * 10 + 100;
    Prim.Position.z = System.Math.Cos(z) * 10 + 50;
    
}