A process of adjusting game objects position after collision.
2
votes
0answers
232 views
Circle vs Edge collision detection / resolution
I made a javascript class Ball.js that handles physics interactions betweens balls as well as painting.
In the v1.0, the ball vs ball collision detection and resolution is well handled.
In the next ...
1
vote
1answer
217 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
87 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, ...
1
vote
1answer
301 views
How do 2D physics engines solve the problem of resolving collisions along tiled walls/floors in non-grid-based worlds?
I've been working on implementing my SAT algorithm which has been coming along well, but I've found that I'm at a wall when it comes to its actual use. There are plenty of questions regarding this ...
1
vote
1answer
442 views
2D OBB collision detection, resolving collisions?
I currently use OBBs and I have a vehicle that is a rigid body and some buildings.
Here is my update()
private void update()
{
camera.setPosition((vehicle.getPosition().x * camera.getScale()) - ...
1
vote
2answers
138 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. ...
1
vote
1answer
100 views
Help with Collision Resolution?
I'm trying to learn about physics by trying to make a simplified GTA 2 clone.
My only problem is collision resolution. Everything else works great.
I have a rigid body class and from there cars and ...
1
vote
1answer
142 views
How can I resolve collisions at different speeds, depending on the direction?
I have, for all intents and purposes, a Triangle class that objects in my scene can collide with (In actuality, the right side of a parallelogram).
My collision detection and resolution code works ...
1
vote
3answers
548 views
How can I determine the velocity after impact of a 2D ball collision?
Consider two balls moving towards each other. Each has a given mass and velocity. Assuming the balls collide, how can you determine what direction the balls will take afterwards? (taking into ...
1
vote
1answer
71 views
How to deal with pushing objects out of collision in a physics engine
I'm developing a 3D physics engine (I know, I should use one of the many good existing physics libraries, however my collision detection is optimised for objects with highly ordered highly complex ...
1
vote
1answer
286 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 ...
1
vote
1answer
117 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 ...
1
vote
2answers
154 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 ...
1
vote
1answer
248 views
How to make a stack stable? Need help for an explicit resting contact scheme (2-dimensional)
Previously, I struggle with the sequential impulse-based method I developed. Thanks to jedediah referring me to this paper, I managed to rebuild the codes and implement the simultaneous impulse based ...
1
vote
1answer
822 views
2D platformer multiple rectangle collision cause jitter
I posted this question two weeks ago: 2D platformer corner collision and I implemented NoobsArePeople2's solution.
Problem is, when player intersects two rectangles that are inside each other, he ...
1
vote
2answers
67 views
When to detect and respond to collisions?
I've usually implemented collision detection like this in the past:
Move entity
Check if it collides with anything
Resolve the collision by moving it back
That's also the approach employed by most ...
1
vote
1answer
320 views
Why does my 2d collision and movement not work properly?
I'm trying to write(in c++ using sdl) a mario like game as in a tile based world with by pixel movement for the character and I've run into some problems I cannot seem to find the source of:
1.The ...
0
votes
2answers
2k views
Breakout collision using 2D Rectangles?
Here is my code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
namespace BreakOut
{
class Field
{
public static ...
0
votes
2answers
139 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 ...
0
votes
1answer
56 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 ...
0
votes
2answers
54 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 ...
0
votes
2answers
299 views
using per pixel collision for an elastic response
I realize this might be open ended ended but curious if I just did some over kill...
I had this
http://xbox.create.msdn.com/en-US/education/catalog/tutorial/collision_2d_perpixel
and i reworked it ...
0
votes
1answer
311 views
How can I determine which direction a 2D collision is occurring from?
The problem is as follows:
Think 2D Zelda (Links Awakening, A Link to the Past) style movement where you can run into walls from any of the four cardinal directions, or basically up, down, left, and ...
0
votes
0answers
47 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 ...
0
votes
1answer
68 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
1answer
86 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 ...
0
votes
0answers
150 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 ...
0
votes
0answers
106 views
Simulating smooth movement along a line after calculating a collision containing a restitution of zero in 2D
[for tl;dr see after listing]
//...Code to determine shapes types involved in collision here...
//...Rectangle-Line collision detected.
...
0
votes
2answers
179 views
How can I get accurate collision resolution on the corners of rectangles?
I have a working collision system implemented, and it's based on minimum translation vectors. This works fine in most cases except when the minimum translation vector is not actually in the direction ...
0
votes
0answers
104 views
3D physics engine for accurate collision handling on desktop/laptop computers (non-console) [closed]
What are your suggestions for a physics engine that satisfies the following criteria?
Capable of calculating collisions between multiple concave mesh-based colliders
Handles many collisions going ...
-1
votes
2answers
98 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 ...
-1
votes
1answer
180 views
How was traditional 2D collision detection/resolution being done? [closed]
Just out of pure curiosity, I'm wondering how classic 2D games of the 80s/90s (The Legend of Zelda, Super Mario, Warcraft, ...) approached collision detection/resolution.
For some reason I can't ...
-1
votes
1answer
56 views
Algorithm behind targeting mechanism used by the player characters in Bionic Commando and Just Cause
In Bionic Commando (2009) and in Just Cause 2, the player's character is able to target, using a "hook based one arm mechanism" almost anything and is able to propel itself to it and perform several ...
-1
votes
0answers
27 views
java 2d array tile map collision [duplicate]
i a 2d array and iam using this to create my map. and i am looping though the array and where its 1's i am print blue rect etc....
minus cameraX and cameraY to move the rect when user right right or ...
-1
votes
0answers
42 views
making breakout controls [closed]
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 ...
-1
votes
0answers
52 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 ...
-1
votes
1answer
121 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
160 views
My 2D collision code does not work as expected. How do I fix it?
I have a simple 2D game with a tile-based map. I am new to game development, I followed the LazyFoo tutorials on SDL.
The tiles are in a bmp file, but each tile inside it corresponds to an internal ...
-2
votes
1answer
217 views
XNA 2D vehicle wall collisions
I am attempting to implement collisions for my truck game, where the truck can drive around the world and hit walls surrounding the level and various randomly placed walls within the level. I am able ...
-2
votes
1answer
50 views
2d tile map collision [closed]
trying to set up bounds on ground so i can test for collision. the map is tile with 2d int array. where its '2' there is ground. loop though the 2d array and store all bounds in ArrayList = new ...
-5
votes
2answers
86 views
Should I negate a variable or use absolute value? [closed]
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 ...


