Ywa Posted July 18, 2012 Share Posted July 18, 2012 (edited) Edit: BEFORE READING THIS:You might want to skip this and go to post #4 immediately. Hi guys, I'm struggling with some, apparent, physics related issues in a networked multiplayer environment. The local client is a controller, which sends it's position to the server. The server places this position on a body etc. (which works fine). Every 100 ms I send out the server body position to the other clients. The client receives the correct position. However, the cylinder body (0.4 radius, 1.8 height, same as original controller) on the client places the body into the floor for some reason. I've had this issue on the server-side first, and it was related by not calling the Flip command, however, the client already calls this function properly. Both server and client work from the same directory (and media files) and loads of code is shared. The code which loads the floor is shared too, and the position of the floor doesn't differ on the client/server. Does anyone know what is causing this strange behaviour? Thanks in advance. Screenshot of the body which is partly through the floor. Edited July 18, 2012 by Ywa Quote Link to comment Share on other sites More sharing options...
Marleys Ghost Posted July 18, 2012 Share Posted July 18, 2012 Don't bodies have their origins at the centre, the controllers used to a long time ago, but now have it at the "bottom". Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
Ywa Posted July 18, 2012 Author Share Posted July 18, 2012 That would explain it. Still strange the server seems to work fine.. How can I create a cyllinder body at the bottom then? Quote Link to comment Share on other sites More sharing options...
Ywa Posted July 18, 2012 Author Share Posted July 18, 2012 Tried to use a work-around. Simply by adding the halve of the body height to the Y-position. Result is that the body (+ non-parented model without physics) still shake a little bit: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.