Jump to content
  • Advertisement
Sign in to follow this  

[PhysX] Syncing PhysX/Novodex scenes over network

This topic is 3994 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a rough version of my network code working. Every so often I spam position and orientation data to the client. The client applies this information with setGlobalPosition and setGlobalOrientationQuat. Unfortunately, my prototype immediately crashes somewhere deep in the PhysX dll. If I comment out both of the set lines, the program runs fine (Albeit with no network synchronization) The PhysX docs say: "One should exercise restraint in making use of these (the setGlobal* ) methods." ... "When briefly moving dynamic actors, one should not: - Move actors into other actors, thus causing interpenetration (an invalid physical state) - Move an actor that is connected by a joint to another away from the other (thus causing joint error) - When moving jointed actors the joints' cached transform information is destroyed and recreated next frame; thus this call is expensive for jointed actors. " With my current solution, this cannot be guaranteed. Does anyone know if there's another way to manually correct object positions in PhysX? Kinematic actors look like they would work, but they don't look like what I need. Am I wrong on that? Also I know for client side prediction, rewinding time is important - is there a simple way to concisely store PhysX object state so I can rewind to them and apply them later? Thanks!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!