Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AxisX = ((currentTouchPos.x - startTouchPos.x) / workZoneInPixX);
- AxisY = ((currentTouchPos.y - startTouchPos.y) / workZoneInPixY);
- float FormatXY(x_or_y)
- Axis = ((currentTouchPos.x_or_y - startTouchPos.x_or_y) / workZoneInPixX_or_Y);
- return Axis;
- AxisX = FormatXY(X)
- AxisX = ((currentTouchPos.x - startTouchPos.x) / workZoneInPixX);
- AxisX = FormatXY(Y)
- AxisY = ((currentTouchPos.y - startTouchPos.y) / workZoneInPixY);
Add Comment
Please, Sign In to add comment