![]() |
CUGL 2.5
Cornell University Game Library
|
Classes | |
| class | GameStateEvent |
| class | LWDeserializer |
| class | LWSerializer |
| class | NetEvent |
| class | NetEventController |
| class | NetPhysicsController |
| class | NetWorld |
| class | ObstacleFactory |
| class | PhysObstEvent |
| class | PhysSyncEvent |
Typedefs | |
| typedef std::function< void(const std::shared_ptr< physics2::Obstacle > &obs, const std::shared_ptr< scene2::SceneNode > &node)> | ObstacleLink |
| typedef std::pair< std::shared_ptr< physics2::Obstacle >, std::shared_ptr< scene2::SceneNode > > | ObstacleScene |
The classes to implement networked physics.
This namespace represents an extension of our 2-d physics engine to support networking. This package provides automatic synchronization of physics objects across devices.
| typedef std::function<void(const std::shared_ptr<physics2::Obstacle>& obs, const std::shared_ptr<scene2::SceneNode>& node)> cugl::physics2::net::ObstacleLink |
Function for linking an obstacle to a specific scene node.
This function should be provided by the user to support animations in reaction to changes in the physics simulation.
| obs | The obstacle in the simulation |
| node | The scene graph node representing the obstacle |
| typedef std::pair<std::shared_ptr<physics2::Obstacle>, std::shared_ptr<scene2::SceneNode> > cugl::physics2::net::ObstacleScene |
Group the obstacle/scene pair into a type for easier reading