593 reputation
38
bio website
location Sweden
age 28
visits member for 2 years, 6 months
seen Jul 7 at 11:33

I'm a physicist who wants to create games. My main area of interest is physics based (Box2d) android games.


Feb
27
awarded  Yearling
Oct
17
answered coloring box2d body in LibGDX
Oct
1
awarded  Popular Question
Sep
26
answered libgdx fixture is giving unresponsive error
Sep
26
answered When input listener set in resize(), input doubles
Jul
11
awarded  Enlightened
Jul
11
awarded  Nice Answer
Feb
27
awarded  Yearling
Dec
4
comment Precise Touch Screen Dragging Issue: Trouble Aligning with the Finger due to Different Screen Resolution
camera_1.project(touchPoint) is the opposite to camera_1.unproject(touchPoint), so doing camera_1.project(touchPoint) after camera_1.unproject(touchPoint) (or vice versa) leaves touchPoint unchanged
Dec
4
comment Precise Touch Screen Dragging Issue: Trouble Aligning with the Finger due to Different Screen Resolution
you use it whenever you want to translate a window coordinate to a world coordinate. First you set up the camera in onCreate(). Then in the touchDown or touchDragged method you have something like: touchDragged(int x, int y, int pointer){ Vector3 touchPoint=new Vector3(x,y, 0); camera_1.unproject(touchPoint); } Since you are passing a reference to the touchPoint vector the transformed values are stored in the same vector. So you can just read the transformed coordinates with touchPoint.x, touchPoint.y.
Dec
4
answered Precise Touch Screen Dragging Issue: Trouble Aligning with the Finger due to Different Screen Resolution
Nov
26
answered How to move a sprite automatically using a physicsHandler in Andengine?
Nov
26
answered How to Make Objects Fall Faster in a Physics Simulation
Nov
8
awarded  Critic
Sep
13
answered LibGDX - Check if currently on Android/Desktop
Apr
21
answered Camera Coordinate To Screen Coordinate
Mar
5
answered Waiting specific time to increase sound libgdx
Mar
4
comment Errors happen when using World.destroyBody( Body body )
Do you do any contact filtering? When do you call deleteUnusedObjects? Are you sure youre not storing and using any references to destroyed bodies somewhere?
Mar
4
answered Box2D + Love2D (Lua) - Assertion fail with polygon meshes
Mar
3
answered Creating lots of sprites dynamically in libgdx