Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Float:X, Float:Y, Float:Z, Float:RZ;
- forward Update();
- public Update()
- {
- GetObjectPos(MOVEBASE, X, Y, Z);
- Y = Origin_X + (len * floatsin(angle, degrees));
- Z = Origin_Y + (len * floatcos(angle, degrees));
- SetObjectPos(MOVEBASE, X, Y, Z);
- aAcc = (-0.005) * floatsin(angle, degrees);
- aVel += aAcc;
- angle += aVel;
- aVel *= damping;
- //printf("%f, %f", aAcc, aVel);
- RZ += 1.0;
- SetObjectRot(MOVEBASE, -angle, 0.0, 0.0);
- EDIT_OBJECT_RotateZ(MOVEBASE, RZ); //This is for rotate bob, function from UOE by Stylock
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement