Closed Hevedy closed 10 years ago
I've been working on implementing a planetary gravity system, so I can say that, although there isn't out-of-the-box support for some of this stuff, it's pretty easy to create custom force systems using custom Component sub-classes- for wind or gravity zones, you can use the PhysicsWorld's GetRigidBodies function to find bodies in the affected regions and apply forces to the returned bodies.
That's pretty much a no to all your questions of the individual features. I've seen a kind of a rope implemented with a skinned model and a chain of rigidbodies / constraints, but it's not built-in.
Physics are synced from server to client, but not the other way around. Note that there is no client-side prediction in the built-in protocol, as it would be difficult if not impossible to rewind a whole physics simulation when corrections from server arrive.
Ok. Ty. But in the network physics sync, i say for example 1º type of physics like you say with sync for big box and other objects in the map but other plus type 2º for non sync objects(this is only calculated in clients individual, no sync) for example for all small trash of ground, cans, bottles, papers ... this is a idea for no overload the network packets and physics. Only sync the important or relevant objects.
Ropes and Cloth could be supported if we implemented Bullet's softbody as well as the rigidbody. Its on my todo list for the future.
In the same vein, destructable objects are possible using bullets compound shape.
@Hgdavidy We have the concept of "replicated" and "local" scene nodes. Unimportant objects could be created as local (typically on loading the level/scene) and their physics will not be network-synchronized. The client can also always spawn more local objects for client-side effects.
Because this issue is more a discussion than a clear feature request or bug report, I'm closing it. The forum ( http://urho3d.prophpbb.com ) is better suited for discussions about whether certain features are implemented, or how to implement them.
Hi. I reading the docs of engine and have
And other question, in network all physics are sync ? Don't have 2 class of physics to sync or not ? (big objects and very small objects like cans)
This is one of the best engines, nice work. Thanks.