-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Physics quite unstable #14
Comments
Also, I did not dig deep enough to find out why these differences surfaces as from the surface level sfloat and float should do similar math, where sfloat simply would have no platform/processor specific differences. My guess maybe there is a bug in sfloat that causes these problems. |
Truly indeed!This project is just a total bull-shit |
Thanks for posting this! Off to another rabbit-hole somewhere else :) Please reply if you can recommend an alternative for device and platform-agnostic (pc, linux, osx, ios, android) fully deterministic physics. Personally I just need basic physics like ray, cube, sphere, cylinder, collision terrain vs each other with sweeping (delta movement) support and resolving the final position. Currently considering bullet physics in a unity plugin as the top option. Evaluated bepuPhysics (C# incompatibilities), and box2d (not 3d). |
I've used this |
I tried playing around for few days with these packages, sadly I can confirm it is far from production ready.
Cylinder/Mesh colliders are very unstable. Also tried the same setup with float version and issues was gone.
![unstable-physics](https://private-user-images.githubusercontent.com/24258017/266822746-1023c09c-50a5-47c5-9ae9-41fbe4a46b23.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMzM3MDMsIm5iZiI6MTcyNDEzMzQwMywicGF0aCI6Ii8yNDI1ODAxNy8yNjY4MjI3NDYtMTAyM2MwOWMtNTBhNS00N2M1LTlhZTktNDFmYmU0YTQ2YjIzLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDA1NTY0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgzOThmZDQxZmVlMmE3ODM0Yjc3N2FhNzIyNjliYjY1MDAyZTM5ZDQ0ZTZhOGNiMTE0MzcwZDNmN2NkODMxOTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ziGoDAxum6ofjaJmL4RAR8UhyYn8JWWRYyYIvg84pw0)
Frictions are quite off, as objects loses the force almost 2x faster than in float version.
sfloat:
![friction-deterministic](https://private-user-images.githubusercontent.com/24258017/266822978-5ca3baf1-eab4-4908-9779-0cd5eaa59326.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMzM3MDMsIm5iZiI6MTcyNDEzMzQwMywicGF0aCI6Ii8yNDI1ODAxNy8yNjY4MjI5NzgtNWNhM2JhZjEtZWFiNC00OTA4LTk3NzktMGNkNWVhYTU5MzI2LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDA1NTY0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAyZTQ0NTAwODZmZDdmZWMzOTUxYWRjY2I4OWZkMTcyNzgxYjQyZDk3YzZjZDRlMmE0NTJiNzFmZTc3Y2U1MTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.XymVwH8Xp92UnAcgwpCdVhKFOSMJjZVnSZb3Q6mfPdw)
float:
![friction-no-deterministic](https://private-user-images.githubusercontent.com/24258017/266822989-491136d2-83f4-41c2-84d1-ba0a1d413d94.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMzM3MDMsIm5iZiI6MTcyNDEzMzQwMywicGF0aCI6Ii8yNDI1ODAxNy8yNjY4MjI5ODktNDkxMTM2ZDItODNmNC00MWMyLTg0ZDEtYmEwYTFkNDEzZDk0LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIwVDA1NTY0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI4MmQ2ZjNiMTAxNGFjNzY1OWE3NGRlMTFhMDA1YTdhM2YzNzFhODk3ZjNiZDlhODViZGExNGU1MDljZjk1MGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OdN0C9K88QZBr-gfgNsh92I0Wz56VP4Ss51OZOyUEbY)
P.S. Yes the scenarios here shown are not exact the same for comparison. But it is quite obvious then u play around in the scene and in float version everything slides completely differently.
In any case, it is cool package modification and nice attempt for deterministic physics. However, if you dont plan using only boxes and sphere likes in example, you wont find this package doing what you want.
The text was updated successfully, but these errors were encountered: