Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Shinzironine · Jan 10, 2014 at 09:50 AM · physicsserverversionphysxemulation

Serverside PhysX

I want to emulate the game logic server-side. Regretfully I haven't found exact information regarding the version of PhysX used in Unity, but after reading the changelog I believe that it is 2.8.3.

Is it at all possible to emulate Unity behaviour (with great precision) of obects on pure PhysX serverside? If yes, then is version 2.8.3 correct, or may I use any other version? It seemed that it is difficult to find this old version of PhysX.

Comment
Add comment · Show 11
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Benproductions1 · Jan 10, 2014 at 10:52 AM 0
Share

"With great precision", no, not using any 3d real time physics evaluation known to mankind will you get "great precision". Not server side, not client side :)

avatar image Shinzironine · Jan 10, 2014 at 11:00 AM 0
Share

$$anonymous$$aybe not with great precision, but more or less equal (more is better:) on client and on server. I mean that I want my server to have exact copy of the client-side physics.

avatar image Benproductions1 · Jan 10, 2014 at 11:19 AM 0
Share

You should be able to run physx on your server just fine, but it's difficult to emulate Unity's calls to physx without access to Unity's source. You can get a proper answer for Unity's physx version when you email the support $$anonymous$$m.

If you're running Windows you can find the PhysX dll's for all the currently installed versions under: Program Files/NVIDIA Corperation/PhysX/Engine, so getting the correct version isn't a problem ;)

avatar image Shinzironine · Jan 23, 2014 at 10:05 AM 0
Share

Thank you for your answers. I've found out that it is difficult to sync physX between server and Unity, because Unity3d uses slightly modified bersion of the physics engine. It also may be inefficient to move rigidbodies directly. Now I'm looking towards other engines, specifically gpu-accelerated (physX supports only cloth and particles as far as I've found). For example, Bullet engine client-side and server-side seems like a plausible idea.

avatar image Invertex · Jan 23, 2014 at 10:12 AM 0
Share

PhysX supports much more than cloth and particles... It does rigidbody, softbody, fluids, and even dyanamic generation of rigidbodies through fractured meshes.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by jonas-echterhoff · Jan 24, 2014 at 10:29 AM

The version of PhysX used in Unity currently is 2.8.3. Whether you will get good results exactly emulating Unity's PhysX behavior on a server running PhysX, I have some doubts. You will probably be able to approximate it, but it won't be easy, as there are many parameters to tweak, and getting PhysX to be deterministic is difficult to say at least (behavior depends on the underlying FPU model, as well as on initialization order of objects, among other things). But with enough work, you can probably come up with a good enough approximation to use the server as the authoritative source, and synchronize client results to that.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Shinzironine · Jan 24, 2014 at 11:20 AM 0
Share

Thank you, your answer is accurate. Though after some research I've decided to look towards gpu accelerated engines for better performance.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Help improving performance with 40-80 rigid bodies. 1 Answer

Embedding Unity physics on a server. 1 Answer

Can physx do hair physx like in the WWE 2010? 1 Answer

Networking physics with HLAPI 1 Answer

Why rotating the Terrain Collider does not work? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges