during my webplayer development i've discovered a strange behaviour.
On every plattform and browser everythings fine (except some fps and control differences), but on safari on mac, somethings absolutely different.
It's all about rotation. As you can see here (www.cubety.com), the game is about rotating the cube so you can solve the puzzle. If your moving distance is to small, the rotation revert back, if you are far enough, the rotation goes well.
After every rotation, the values will get set to absolutely values, because lerp not ends perfectly as we know.
But on safari, the more often you rotate, the more the cube drifts apart. Between the rows and lines a gap will become greater (as you can see here: pic ). Any ideas why this does happen?
That is a really cool game you got there. Keep working on it!
Answer by KruegerT
Jun 15, 2012 at 12:23 PM
Hi, the problem was the floating point precision. On some devices it seem to have an bigger impact than on others.
So I used Mathf.Round() (or Ceil or whatever you need) to get the values I need after every calculation!
Thanks for your help :)
Answer by Starwalker
Jun 07, 2012 at 10:28 PM
I don't know if this is a 100% solution but building the game on a Mac machine + clean browser cache solved the web player problem on Mac Safari.
But again now and then , the Safari does act weirdly. (Also make sure you re-install the web player plugin just to make sure the old one is overwritten.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
6 People are following this question.
Mac/Safari Mouse Input Bug?
3D Object Doesn't Show Up In Safari Web Player
Web player with Mac OSx not open a new window
Webplayer issues on a MAC - Player keeps moving
peope with mac help!