Rotate+On+Touch

code //This script will cause the object to rotate on touch

default {   touch_start(integer num_detected) {       //  Rotations in SL are represented by Radians and Quaternions // rather then degrees and Eulers. Because of this, LSL offers // several conversion operations to make it a bit easier. // The easiest way to convert a degree rotation to a radian // rotation is to use llEuler2Rot, and multiply the degrees // by DEG_TO_RAD. llSetRot(llEuler2Rot(<22.5 * DEG_TO_RAD, 0, 0>) * llGetRot); } }

code