milkplus
  • Member for 9 years, 4 months
  • Last seen more than 7 years ago
Can i add friction in air?
3 votes

Unlike surface friction between solids, air friction (drag) depends on the speed of the object, squared. An easy way to model friction and drag F(friction) = -k; F(drag) = speed * speed * -k; Both ...

View answer
Which version of OpenGL for Android?
2 votes

ES 2.0 does have a steeper learning curve and you don't really need it to get started or learn alot of useful things about opengl programming. Even with ES 2.0, you'll probably build a fixed function ...

View answer
Simulating a sine wave/oscillating pattern for enemies
Accepted answer
2 votes

Here is the solution I would try Vector2 dir = target - position; // direction dir.Normalize(); Vector2 perp( -dir.y, dir.x ); // perpendicular float waveAmp = 0.05f; // adjust if needed float ...

View answer
How to move Objects smoothly like swimming arround
2 votes

You might want to take a look at some buoyancy examples for box2d. http://personal.boristhebrave.com/project/b2buoyancycontroller/demo some info: b2BuoyancyController http://personal.boristhebrave....

View answer
How to adjust position relative to resolutions?
1 votes

Instead of scaling like @Gustavo suggests, you could also just anchor your screen objects to the edges. That's how UI designers often work. A negative screen coodinate is taken to be anchored to the ...

View answer
How can I efficiently create/store/implement animations as I add to my game?
1 votes

Have your artist create template animations using generic parts that can be swapped out. If possible with libgdx, find each generic part (eg, with an instance name), and set visible=false for the ...

View answer
Tiny Wings - Placing items
1 votes

@bummzack is correct; use trigonometry. also worth noting is the 2d perpendicular vector to a segment is (-segment.y, segment.x) or (segment.y, -segment.x) notice the dot product with the segment ...

View answer
Best Way To Develop Robust Cross-Platform Application?
0 votes

Cocos2d-x lets you stick with C++ and Visual Studio for development but gets you running on Windows, Mac, iPhone, iPad, and Android with little fuss. MS tablet is trickier since you'll probably use C#...

View answer
Collision and Graphics integration
0 votes

Your idea for a draw-position and drawing relative to that is the correct one. When using collision and physics, you often want a proxy shape that is much simpler than your graphics shape. For ...

View answer