The determination of whether or not two or more entities make contact with each other during gameplay.
1
vote
1answer
62 views
How to predict future location of a Car in a Navigation Mesh based pathfinding system?
I am developing a car based shooting game in which the Cars have to shoot each other 3/4 times and eliminate it from the game.
I am trying to develop the AI for my cars now. The problem is how can I ...
1
vote
1answer
142 views
Understanding Box2d Restitution & Bouncing
I'm currently trying to implement basketball bouncing into my game using Box2d (jBox2d technically), but I'm a bit confused about restitution.
While trying to create the ball in the testbed first, ...
1
vote
1answer
268 views
Ball bouncing at a certain angle and efficiency computations
I would like to make a pong game with a small twist (for now).
Every time the ball bounces off one of the paddles i want it to be under a certain angle (between a min and a max). I simply can't ...
1
vote
1answer
545 views
Help with Collision of spawned object(postion fixed) with objects that there are translating on screen
Hey guys I am creating a game using Corona SDK and so coding it in Lua.
So there are 2 separate functions,
To translate the hit objects and change their color when they are tapped
The link below ...
0
votes
1answer
50 views
Takes collision detection a lot of time?
I am making simple 2d game for android using cocos2d. I need to check for collisions and side of collision(left, right, bottom or top). I have wrote code for this. First I tried run the game on ...
0
votes
1answer
47 views
Implementing Frame of reference for physics calculations
How would I alter physical calculations to account for frame of reference of a physical body?
Currently I have a world that is a collection of rigid body objects that act on each other. There is no ...
0
votes
1answer
118 views
Is there a “box2d without physics” lib (only for collision detection)?
Box2d Collision detection algorithms are probably the best ones out there. Unfortunately, they are bundled together with a realistic physics engine that I don't need.
Is there an open source project ...
6
votes
0answers
118 views
How do I get the compression on specific dynamic body
Sorry, I could not find any tag that would suit my question.
Let me first show you the image and then write what I want to do:
I'm using box2D. As you can see there are three dynamic bodies ...
3
votes
0answers
35 views
Is it possible to get the colliding sides using the separating axis theorem?
The title says it all, is it even possible to get the colliding sides?
I'm checking for collisions between two OABBs, which works fine using SAT. Now I want to set the moving object's velocity to the ...
2
votes
0answers
51 views
Detect collision in Blender
I am trying to write a Python function for Blender(2.66) game engine, that permits me to detect collision between two objects.
I tried to read the documentation, but it's very confusing, and I don't ...
2
votes
0answers
166 views
Collision with RigidBody
I am currently working in a project with UDK and I have a problem with collision.
I have a Crate who is a kActor in RigidBody physic and my player who is a Pawn. When my player move and go in ...
2
votes
0answers
159 views
Collision detection with heightmap based terrain
I am developing a 2D tank game. The terrain is generated by Midpoint Displacement Algorithm, so the terrain is represented by an array:
index ---> height of terrain
[0] ---> 5
[1] ---> ...
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 ...
2
votes
0answers
611 views
Collision Detection on floor tiles Isometric game
I am having a very hard to time figuring out a bug in my code. It should have taken me 20 minutes but instead I've been working on it for over 12 hours. I am writing a isometric tile based game where ...
1
vote
0answers
107 views
How can I implement collision for a “pseudo-3D” game?
I'm looking for high level implementation details, not specifics.
I've worked with bounding boxes before in some 2D games, but I'm currently tackling a "2D + depth" (2.5D?) style game along the lines ...
1
vote
0answers
154 views
Love2D : How can I keep up with lots of small sprites' collision data?
So I'm using a SpriteBatch to keep up with lots of small pieces for a falling-piece puzzle game. I have an array of Quads (for different color blocks), and they are randomly added to the ...
1
vote
0answers
91 views
Sketchy results from ray-plane intersection code
I've set up a demo with simple first-person controls using C++ and OpenGL, and it seems to work reasonably well. My goal is this: when the player looks at a plane and clicks the left mouse button, ...
1
vote
0answers
124 views
iOS cocos2d - sprite gets stuck in collision detection
I'm developing a top down game in cocos2d and I have collision code that checks collisions between enemies and the player so that they don't go through each other. The code seems to work but the ...
1
vote
0answers
60 views
Alternate Collision Detection in XNA 4.0
Is there a better more efficent way for collision detection in XNA 4.0 besides Bounding boxes or circles? Like a way that would automatically wrap around the texture regardless of the textures shape.
1
vote
0answers
39 views
Getting collisions with equal values in Sweep and Prune
When sorting an (incremental and persistent) SAP, you generally move extremas left until you run into a smaller/equal extrema, gathering collisions along the way. However, that results in the ...
1
vote
0answers
114 views
Updating physics for animated models
For a new game we have do set up a scene with a minimum of 30 bone animated models.(shooter)
The problem is that the update process for the animated models takes too long.
Thats what I do:
Each ...
1
vote
0answers
377 views
Problems with moving 2D circle/box collision detection
This is my first game ever and I'm a newbie in computer physics.
I've got this code for the collision detection and it works fine for BOTTOM and TOP collision.It miss the collision detection with the ...
1
vote
0answers
64 views
What is the most effective way to create a set of collision points for an aribitrary mesh?
In my project I am working on automatically deforming an arbitrary mesh with respect to another arbitrary mesh, within the context of user generated content, similar to this deformer being developed ...
1
vote
0answers
171 views
Debugging Minimum Translation Vector
I implemented the minimum translation vector from codezealot's tutorial on SAT (Separating Axis Theorem) but I'm having an issue I can't quite figure out. Here's the example I have:
As you can see ...
1
vote
0answers
138 views
Farseer Physics EndContact events don't fire for all registered delegates
Here's my situation:
I have several objects that contain a body and a fixture. They are set to sensor = true;
atmosphere = BodyFactory.CreateCircle(world, atmosphereRadius / Level.METER_IN_PIXELS, ...
1
vote
0answers
354 views
3d collision detection on non flat surface
i am developing a game which needs an accurate collision detection algorithm, when a object travels down a slope which isn't flat. To be more precise i need to simulate a skier who travels down a ...
0
votes
0answers
5 views
Android cocos2d getting collision detection to work only on some frames of animation
I have an animated bomb sprite in my game and use CGRect for collision detection:
for (CCSprite bomb : _bombs) {
CGRect bombRect = CGRect.make(bomb.getPosition().x - (scaleFactor * ...
0
votes
0answers
54 views
Collision between the player , stairs, ramps etc
i am making a game 2D in XNA 4.0. I have already made gravity , animations and the jump. Now i need the collision between my character and the objects (obstacles , stairs etc.) How can i do that? ...
0
votes
0answers
59 views
How to manage multiple objects for a tile based game for collision?
So I'm making the tile-based 2D sandbox platformer...thing to get an idea of how to manage different elements of coding games.
Currently I'm at the point where my collision system works fine for a ...
0
votes
0answers
97 views
How to predict encounters between a ship and a body's sphere of influence in 2D
Long time listener, first time caller. I'm making a little hobby game in XNA, its about transport ships in space, analogous to container ships at sea. There are to be AI ships and player controlled ...
0
votes
0answers
245 views
How to do collision detection in 3D using bounding boxes?
I am using c++ in visual studio 2010 with opengl. I am trying to make a programme that has 2 boxes that are able to be stacked on top of each other but I am having some trouble with the collision ...
0
votes
0answers
115 views
Check if Pawn is colliding with anything (UDK)
I am new to UDK, so bare with me. I have a pawn that is going to be thrown in the air quite a bit, or will be hovering (custom code based on changing velocity).
I am trying to detect whether the pawn ...
0
votes
0answers
104 views
Detect Sprites, they are in Shape or Not which random draw in Cocos2d
I have searched a lot on web and found some of help ful links as exact my question.
Link 1 Link 2
But still i am not success to achieve this,
i have done some of code lines, as like draw line by ...
0
votes
0answers
160 views
(XNA - Farseer) Not always colliding and moves seemingly randomly then objects freeze if they do collide
So I'm mixing XNA and Farseer, the first for graphics and the latter for collision and physics. If this is a horrible choice to start out with, tell me that as well.
In any case, I have set up a ...
0
votes
0answers
103 views
2D Convex Poly - Circle collision, SAT vs Distance to Segment
I'm doing a collision detection class based on SAT
and now I'm not sure how is better to handle circle-poly collision
I can go with SAT by projecting on all poly axis + nearest vertex
or go with ...
0
votes
0answers
210 views
Unity3D: collider performances on mobile iOS devices
I'm experimenting with Unity3D and colliders. Unfortunately I still don't have Unity Pro version and I can't use the profiler.
Consider the following situation:
mobile devices (ios, iphone 3GS).
an ...
0
votes
0answers
134 views
Swept sphere to line segment intersection in 2D
How can you determine when a moving sphere intersects a line segment, and the normal of that intersection?
Ideally Javascript, but anything that's tidy, simple and self-contained and easy to port to ...
0
votes
0answers
137 views
Ball-cylinder collision detection with Bullet Physics
I am trying to find out collision detection between specific objects and when they are colliding then want to invoke a specific method.
I have read one this tutorial but I don't understand how to use ...
0
votes
0answers
57 views
Calculating the position of an object with regards to current position using OpenGL like matrices
i have a 1st person camera that collides with walls, i also have a small sphere in front of my camera denoted by the camera position plus the distance ahead. I cannot get the postion of the sphere but ...
0
votes
0answers
258 views
What is the best way to implement collision detection using Bullet physics engine and a track generated from a curve?
I am developing a small racing gam, the track is generated from a curve.
As said above, the track is generated, but not infinite. The track of one level could fit with no problem in memory and will ...
0
votes
0answers
159 views
What collision detection approach for top down car game?
I have a quite advanced top down car game and i use masks to detect collisions. I have the actual designed track (what the player see) with fancy graphics etc. and two other pictures i use as mask for ...
0
votes
0answers
108 views
Incorrectly says that 2 rectangles collide: whats going wrong?
I am using and expanding a function that detects whether two 2d rotated rectangles collide. The function is from here.
My Problem: The function incorrectly detects a collision between the following ...
0
votes
0answers
70 views
Creating id matrix/map for collision
The title might be a bit misleading but I don't know what to call it exactly.
I have several objects that need to do certain collision checks ( like bullets hitting enemies but not the player).
I ...
0
votes
0answers
124 views
way to do if(x > x2) x = x2 with rotation?
Alright, so I got this walking code, and some collision detection, now the collision detection returns a Vector3f of the closest point on the triangle that the projected position is at (pos + move), ...
0
votes
0answers
113 views
ray collision with rectangle and floating point accuracy
I'm trying to solve a problem with a ray bouncing on a box.
Actually it is a sphere but for simplicity the box dimensions are expanded by the sphere radius when doing the collision test making the ...
0
votes
0answers
123 views
adding contacts in “cyclone”
I am trying to adapt the Cyclone physics engine ( http://procyclone.com/, source code: https://github.com/idmillington/cyclone-physics/) to work with my game, and for my game I think that it would be ...
0
votes
0answers
142 views
Prototype (the game) animation and collision systems
I have played Radical Entertainment Prototype game and found its animation and collision systems really powerful. They contribute to make the game really funny to play. The freedom to walk on ...
0
votes
0answers
120 views
Detect collision between a graphics object and picture object in Visual Basic
I am making a lunar lander game that randomizes the terrain for each new game, so each game is different. For my game, I am creating a graphics object that draws a closed curve for the terrain of the ...
-1
votes
0answers
9 views
Checking collision between Rectangle and Shape
In my game the player uses a Rectangle for his bounding box, he can do this because I only need to rotate the player image and not the acctual rectangle but for a eletric beam that one of the bosses ...
-2
votes
0answers
37 views
andengine Tower Defence game - Enemy<-Weapon interaction
What is the most correct from the performance point of view - algorithm of interaction between Enemy and Weapon(bullet maybe more correct here) ?
Should every sprite every single bullet check for ...




