A process of adjusting game objects position after collision.
-1
votes
0answers
29 views
making breakout controls
I am trying to create breakout game like this below.
http://www.2dplay.com/break-out/break-out-play.htm
I like how when balls bounces on paddle you have control over where it is goings. i need help ...
0
votes
1answer
39 views
Differences between Overlap and Intersection testing?
I have heard of techniques such as overlap testing and intersection testing for collision detection and collision resolution.
I looked up on the two techniques, but I don't see what differences they ...
-5
votes
2answers
83 views
Should I negate a variable or use absolute value?
this is how i was chaning ball postion
if(...) //if ball goes to left of screen
dx = -dx
if(...) //if ball goes right of screen
dx = -dx;
i found some people using math.abs to move ball ...
4
votes
1answer
153 views
Help me please to choose proper path-finding algorithm
I am new to game development and just want to ask for advice. I need to know which path-finding algoritm will be suitable for my scenario:
Units - any shape. But in most cases rectangles of ...
-1
votes
0answers
22 views
AS3: Handle collision with ground. Velocity's and hitTestObject() [closed]
I'm working on a sidescroller game but i'm having issues with my screen region and collisions.
I will just stick to 1 problem because once this is fixed i can probably also fix my screen so it scrolls ...
0
votes
0answers
46 views
asteroid collison
I have Asteroids stored in an 'enemyStore' arraylist. Now I want to set up collisions between these asteroids (20ish of them). I want to make it some what real so that if asteroid bump into each other ...
3
votes
0answers
61 views
Simple movement restrictions to semi-realistically model human movement in top down 2D game?
I am writing a sports simulation game in which the simulated players will interact physically with each other (i.e. tackle, push, bump...) as well as do individual actions such as changing direction ...
1
vote
2answers
126 views
Resolving 2D Collision with Rectangles
For about a week I've been trying to grasp the basics of collision, but I've been driven to the point of wanting to just give up on everything when it comes to collision. I just don't understand it. ...
0
votes
1answer
66 views
collision between two objects
to test collision i am using intersect function.
if(this.getBounds_ball().intersects(this.getBounds_rect()))
{
but the problem is i dont know how to test where the ball is collision from.
i was ...
0
votes
2answers
52 views
collision test between ball and rect [closed]
need help with collision between ball and rect. i dont know how to test if ball hit the rec from top, bottom, right or left.
x = ball x
y = ball y
radius = ball width and height
rx = rect x
ry = rect ...
-1
votes
1answer
113 views
Pixel perfect collisions for platforms
i'm trying to do a pixel perfect collision but i don't know how to handle collisions when there is a jump . Here i have one image of a sample map:
But maybe I've done a bad supposing all pixel like ...
-1
votes
2answers
96 views
Tile Based Collision Checking In Java?
I have my map stored in 2 arrays:
Tiles : Tile names
TileTypes : SOLID or BASIC
I want to be able to walk through BASIC Tiles (Like ground tiles).
But not the SOLID Tiles (Like wall tiles).
I ...
3
votes
1answer
73 views
Collision Response: game character vs. density function
Introduction
I am working on my own "novelty" game-engine project, where the world is represented by a continuous density function. It has only one interface, a function that returns the density at a ...
2
votes
1answer
102 views
Collision Resolution: How to avoid Interpenetration/Tunneling Caused by Prior Collision Handling? [duplicate]
My game processes world collisions followed by entity collisions. The problem here is that entities can break through walls the next frame when world checks are run again as a result of the prior ...
2
votes
1answer
174 views
Get intersected volume of two planes in 3D
I'm working on AABB - AABB collision response and I'm having trouble figuring one part out. My situation is as follows (see image).
I have a player AABB (blue) and an object which collides (brown). ...
1
vote
1answer
188 views
How to detect screen boundary using AndEngine GLES1?
I am using the AnalogOnScreenControl to move my sprite around the screen. I would like to restrict the sprite so it can not move outside the screen boundaries.
I have tried putting a line at the ...
1
vote
1answer
258 views
2D tile-based collisions: using different methods by tile?
I'm trying to write a collision handling method that handles each of the 9 potentially colliding tiles (the player's and the 8 around him) differently according to a "CollisionType" value attached to ...
0
votes
1answer
76 views
Collision in PyGame for spinning rectangular object.touching circles
I'm creating a variation of Pong. One of the differences is that I use a rectangular structure as the object which is being bounced around, and I use circles as paddles. So far, all the collision ...
2
votes
1answer
248 views
How to calculate collision normal between two AxisAlignedBox's?
I'm writing a physics simulation in Ogre3D and I'm trying to figure out how to calculate the collision normal between two Ogre::AxisAlignedBox's.
I am checking for collisions using the "intersects" ...
12
votes
3answers
578 views
Resolving a collision with forces
In my 2D physics engine, I can detect AABB vs AABB collisions, and resolve them by finding the shortest penetration vector and adding it to the AABB's position.
Doing this "pushes" the first AABB ...
1
vote
1answer
112 views
Slide effect in voxel collisions
I'm making a voxel engine, and I'm trying to figure out the right way to make efficient collisions with a slide response (making the player slide against the wall).
Currently my collisions are pretty ...
5
votes
2answers
185 views
Calculating impulse propagation through a rigid body after a collision
I'm working on a game. I need to work out what the impulse is at different points on a body as a result of a collision.
For example, in the following diagram, if there is a collision that results in ...
1
vote
2answers
137 views
Find the Contact Normal of Rectangle Collision
It seems a lot of people have asked similar questions on this site, and every time it seems like a whole bunch of answers that don't work are given.
Basically, I have two rectangles (AABBs) that ...
2
votes
2answers
86 views
Meaning of offset in pygame Mask.overlap methods
I have a situation in which two rectangles collide, and I have to detect how much did they collide so so I can redraw the objects in a way that they are only touching each others edges.
It's a ...
1
vote
1answer
83 views
Confusing with an articles wording on Clamping a Vector2
I have been reading an article on Collision Detection and how to resolve it.
http://www.wildbunny.co.uk/blog/2011/04/20/collision-detection-for-dummies/
In the section describing an AABB vs Circle, ...
0
votes
0answers
133 views
Separating axis theorem implementation flaky minimum translation vector based on triangle orientation
I've implemented some collision detection using separating axis theorem. Works fine for axis-aligned rectangles and two out of four possible right triangle orientations. For some reason when the ...
3
votes
2answers
298 views
XNA 4.0 / C# Collision Response
Okay, this is really starting to annoy me.
First of all, detecting collisions is nice and easy. I have a list of tiles,
and a player. The player and each tile have their own rectangles. (The tiles ...
0
votes
2answers
134 views
Why does this collision detection & resolution code only work for one side?
I am having a bit of trouble with my collision detection. It only works correctly for the right side, meaning, if I enter the tile from any other side, it brings me to the right side.
Here is my ...
2
votes
1answer
132 views
How to handle collision resolution in a top-down car game?
I have a top-down car game which takes place in an arena. The game is very very light on physics, so I'm not actually using a physics engine. The cars' movement is mostly managed by a struct I called ...
4
votes
2answers
135 views
Why is my collision resolution failing on the corners?
I'm tearing my hair out trying to work out how to handle my collision resolution at the corners of the rectangles that I'm colliding with.
The code that I'm working with is:
class Player(object):
...