rab2033 Posted September 1, 2015 Share Posted September 1, 2015 hi all! In LSLEditor it is working but in the game notwhy?the code: default { touch_start(integer total_number) { rotation rot = llGetLocalRot(); if(rot.z == 0 ) { rot.z = -0.707107; rot.s = -0.707107; } else { rot.z = 0; rot.s = 1; } llSetLocalRot(rot); llSetTimerEvent(5.0); } timer() { rotation rot = llGetLocalRot(); if(rot.z == 0 ) { rot.z = -0.707107; rot.s = -0.707107; } else { rot.z = 0; rot.s = 1; } llSetLocalRot(rot); llSetTimerEvent(0); } } --||- Link to comment Share on other sites More sharing options...
Profaitchikenz Haiku Posted September 1, 2015 Share Posted September 1, 2015 It works fine when I try it. Are you sure you aren't missing what is happening becuase you're putting it in a cube with equal X and Y dimensions and missing the actual change? It's an interesting method which I haven't seen before. The main drawback I can see is that it can only work for an object which is aligned along the normal (rotation = 0,0,0) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now