Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rotation rLin(rotation x, rotation y, float t) {
- float ang = llAngleBetween(x, y);
- if(ang > PI) ang -= TWO_PI;
- return x * llAxisAngle2Rot(llRot2Axis(y/x)*x, ang*t);
- }
- // Released into public domain. By Nexii Malthus.
- default
- {
- state_entry()
- {
- rotation x = llRot2Euler(<0,0,30*DEG_TO_RAD>);
- rotation y = llRot2Euler(<0,0,90*DEG_TO_RAD>);
- rotation z = rLin(x, y, 0.5); // z equivalent to euler rotation of 60 degrees on Z axis
- }
- touch_start(integer total_number)
- {
- llSay(0, "Touched.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment