game-physics Questions
1
Please see the below images.
In the first image you can see that there is box collider.
The second image is when I run the code on Android device
Here is the code which is attached to Play Ga...
Reptile asked 8/5, 2013 at 14:1
3
Solved
I'm computing the result by colliding pairs of 2D convex objects (without rotation), using the basic equations on wikipedia. However, when there are dependencies, like two objects hitting another o...
Rosaniline asked 7/5, 2013 at 15:55
2
Solved
I've just began to work with the Libgdx's Box2d Engine but i simply do not understand when the methods of the Contactlistener should be called. There is on the one hand "begin contact" and on the o...
Riddick asked 16/3, 2013 at 18:43
5
Solved
I am trying to make the game Asteroids. My issue I have right now, is if you press the UP Arrow key, it will move the "ship" 10 pixels up. And if you hit the LEFT Arrow key, it will turn the "ship"...
Pompadour asked 3/9, 2010 at 19:24
3
This is more of a question as to request some advice on which pattern/approach I should use. I have done some investigations into this problem - with poor results.
Essentially I have an idea for a...
Lauder asked 25/2, 2013 at 15:24
1
Solved
I am programming some movement for AI for a game based on angle and speed.Its a 2D program based on x,y axis. I currently have a position vector as-well as a velocity vector which accounts fo...
Tortious asked 29/12, 2012 at 23:8
1
Solved
I have a basic raytracer and I want to implement depth of field. Can you please
recommend me resources I can use, books and code?
Thanks
Torrie asked 23/11, 2012 at 16:41
1
Solved
I wish to detect when one (ball) touches another object (target) and I wish to know the impulse of that contact.
I know three ways to detect contacts
gContactAddedCallback
or
int numManifold...
Trow asked 21/10, 2012 at 18:22
1
Solved
I am working on a simple stack for a game where players move numbered pieces around to keep track of how close they are to finishing collecting a winning hand of pieces.
Currently I went with jQ...
Sibilla asked 15/10, 2012 at 19:41
2
Solved
I am new to AndEngine game development (or game development in general) and I am working on a very simple game. The setting is that I have 4 main sprites in the game:
a.) Fighter Plane
b.) Tank
c....
Homocentric asked 21/9, 2012 at 14:50
3
Solved
Here's the code in question:
public void calculate() {
// Center of circle is at (250, 250).
//THIS ALGORITHM IS NOW PROVEN TO BE WORSE THAN I FEARED...
/* What it does:
* Moves object around...
Turne asked 20/8, 2012 at 15:26
4
Solved
I'm attempting to work out simple controls for an application using pygame in Python. I have got the basics working, but I'm hitting a weird wall: I am using the arrow keys to control my character....
Hoisch asked 10/8, 2012 at 23:15
1
I plan to start a game in Android but I am not sure whether I should use SVG's or PNG's for the graphics. I know that SVG's advantage is its, correct me if I'm wrong, scalability. But aside f...
Brunhilde asked 5/6, 2012 at 2:15
6
Solved
This question has one major question, and one minor question. I believe I am right in either question from my research, but not both.
For my physics loop, the first thing I do is apply a gravitati...
Woodcock asked 1/5, 2012 at 5:12
3
Solved
I wrote couple of simple board games since i started on android learning, Please let me know is there any tutorial or links, where i can start with physics library with libgdx, looking for so...
Dasya asked 2/5, 2012 at 19:7
1
I can create rectangle for creating wall for example:
final Rectangle wall = new Rectangle(CAMERA_WIDTH-2, 0, 2, CAMERA_HEIGHT -2);
PhysicsFactory.createBoxBody(this.physicsWorld, wall, BodyType...
Essayist asked 22/4, 2012 at 20:36
3
I'm trying to move a sprite across the screen in a straight line, towards on the location where've I touched the screen, what i did was upon the update() in each loop , it checks to see if the curr...
Coffeehouse asked 16/9, 2011 at 18:11
2
Solved
This is for a small game project with SDL on MinGW/Windows.
I am working on a physics engine, and my idea was to have a Physics::Object, which all physical objects should derive from and it regist...
Skite asked 18/2, 2012 at 6:16
4
Solved
Im building a small space shooter game. I have how ever stubbed on a math problem when it come to the space physics.
Describing this with words is following:
There is a max speed.
So if you give f...
Leveloff asked 15/2, 2012 at 14:20
4
Solved
I have got a ball which bounces of walls. This bounce is simple, i just do this, ( code snippet )
if ( x - moveSpeed < 0 ) // Ball hit left wall
xVel *= -1;
However i also got a rectangle wh...
Alpaca asked 3/1, 2012 at 16:47
1
Solved
While I was going over some older DirectX code, I came by the functions D3DXVec3Transform and D3DXVec3TransformCoord. Upon looking up the descriptions for them, they seemed rather similar but I don...
Nitrate asked 28/12, 2011 at 0:8
2
Solved
I try to found the best method to do this, considering a turn by turn cross-plateform game on mobile (3G bandwidth) with projectile and falling blocks.
I wonder if one device (the current player t...
Pragmatic asked 30/11, 2011 at 10:15
1
Solved
I am quite new to game development and have successfully modelled a 3D terrain, and have a camera that is able to freely move around in the game world, I have however run into a snag that I am unab...
Sesterce asked 15/12, 2011 at 15:9
3
Solved
How do I make a infinite/repeating world that handles rotation, just like in this game:
http://bloodfromastone.co.uk/retaliation.html
I have coded my rotating moving world by having a hierarchy l...
Mateusz asked 11/11, 2011 at 13:30
2
Solved
First of all, sorry for the vague title. I have no other ideas of what could possibly be put there, but you'll see this for yourself as you read on.
I am a very new Java developer for android and ...
Shin asked 10/9, 2011 at 16:58
© 2022 - 2024 — McMap. All rights reserved.