Tag Info

New answers tagged

2

You should check out this tutorial by Ray Wenderlich. It uses Cocos2d + Box2d to show how to write a game like Tiny Wings. The first part of the tutorial explains how to create dynamic textures: http://www.raywenderlich.com/3888/how-to-create-a-game-like-tiny-wings-part-1 Second part is how to use Box2d for the gameplay: ...


2

Is this right? Sounds good to me. then correct the world state if somebody did something after I received the next packet. The simple approach is to remove the "if" here--always update everything from the server. The important state is the transform and linear and angular velocities for each box2d dynamic rigid body. You would update all these ...


0

use this code. Though you must have got a file named app.java when you downloaded .zip of physics body editor. This code is from that file only which uses .json file from the editor. // 0. Create a loader for the file saved from the editor. BodyEditorLoader loader = new BodyEditorLoader(Gdx.files.internal("data/test.json")); // 1. Create a ...


0

From my experience it's never a good idea to wait on the server to send out the world update packets before the next world update. I'd day that it'd be best if you put a copy of the whole box2d world for each client and act as if each of the other clients have the same keys pressed down, but try and send the packets to the client to update the other client's ...


0

Each body finds the bodies closest to it. It then attempts to steer away from the sum of the neighbors. The closer a neighbor is, the more it adds to the repel force. If each body does this, they will spread out away from each other. This combined with a cohesion algorithm keeps the bodies grouped, but not on top of each other. Both of these are ...


0

I use level director (www.retrofitproductions.com/level-director) and PhysicsEditor by codeandweb. Physics Editor will allow you to apply the physic properties and body shapes to each object and Level Director will allow you to import them and then setup the complex bodies and joints as needed. Once done, Level Director allows you to export the data in ...



Top 50 recent answers are included