Tagged Questions
0
votes
0answers
192 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 ...
1
vote
0answers
81 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, ...
0
votes
0answers
88 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
2answers
208 views
GLSL light coloring blocked surfaces
I have created a very simple lighting shader. It currently only supports point lights, but it lights up surfaces that are completely blocked from the light. I know why, but I want to know how I can ...
1
vote
1answer
220 views
Collision Detection Tips
I need collision detection for my 3D racing game but it isn't going well right now. I think I understand the concept of testing boxes and generating a response, however implementation part is a ...
3
votes
1answer
191 views
Collision resolution - Character walking on ascendent ground
I don't know if the solution to this problem is quite straight-foward but I really don't know how to handle collision resolution on a game where the player walks on an ascendent floor which is not ...
0
votes
1answer
82 views
enemy behavior with boundary to change direction
I'm doing space shooter kind of game, the logic is to reflect the enemy if it hits the boundary. With my logic, sometimes enemy behaves like flickering instead of changing the velocity. It's like ...
2
votes
1answer
333 views
High CPU usage on Pong clone
I just made my first game, a clone of Pong, using OpenGL and C++. But its using ~50% of the CPU, which I guess is very high for a game like this. How can I improve that? Can you please look up my code ...
2
votes
3answers
304 views
OpenGL Get Rotated X and Y of quad
I am developing a game in 2D using LWJGL library.
So far I have a rotating box. I have done basic Rectangle collision, but it doesn't work for rotated rectangles.
Does OpenGL have a function that ...
1
vote
0answers
62 views
obb vs obb and resolve/response for 2d space game [duplicate]
Possible Duplicate:
OBB vs OBB Collision Detection
How can i detect if an rotated obb intersects another
rotated obb and resolve it so both obb objects dont go further into each other.
I ...
0
votes
2answers
194 views
Matrix loading problems with jbullet and lwjgl
The following code does not load the matrix correctly from jbullet.
//box is a RigidBody
Transform trans = new Transform();
trans = box.getMotionState().getWorldTransform(trans);
float[] matrix = new ...
0
votes
1answer
446 views
OpenGL : Suggestion on handling collision detection and vertex data?
I was thinking how to do collision detection in my OpenGL application and came to conclusion that I should keep two copies of my geometry data.
1)First copy : Only for OpenGL rendering purposes.This ...
2
votes
1answer
264 views
When is it the right time to start teaching collision detection?
I and a friend of mine started a game development club in our school two months ago and everything is going well for now. We are following McKesson's tutorials which I find comprehensive and ...
1
vote
1answer
406 views
C# OpenTK - Getting world coordinates of points that are altered by matrices
I have written a skeletal animation system for a game i am working on. To draw lines that represent a skeleton, i use the GL matrix, and multiply it by each bone a long the body. For example before ...
2
votes
1answer
929 views
AABB - AABB Collision response (sliding)
Here is the situation:
I have a room with objects inside
Each object has it's own AABB
Here is what I do:
I check for collision between objects by checking AABB-AABB intersections
Here is ...
1
vote
2answers
363 views
SAT, How Do I Find The Penetration Vector?
I've just successfully implemented Separating Axis Theorem (SAT) in my game but I was wondering how do I find the penetration vector? I heard it can be useful for collision response. e.g. The harder ...
1
vote
0answers
353 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 ...
4
votes
1answer
519 views
Heightmap Physics Optimization/Improvement
I'm working on implementing the physics surrounding a player walking on a heightmap. A heightmap is a grid of points which are evenly spaced on the x and z axes, with varying heights. The physical ...
1
vote
1answer
538 views
Checking Collisions In 2D Platformer With Tiles
My team and I are developing a 2D platformer with C++/SDL/OpenGL, and we already defined a collision system, but we have a problem checking collisions with the tilemap.
The tiles of the tilemap are ...
9
votes
1answer
245 views
Deforming surfaces
I try to accomplish an deforming physic behaviour for levelsurfaces, but don't get an idea how to start with the implemenation so far.
Regardless of the shape from the surface (planes, cubes, ...
1
vote
2answers
4k views
Tips for writing 3D Collision detection with opengl
I would like to any tips/articles/tutorials on how to write collision detection using OpenGL and C++ in 3D mainly just simple box collisions etc but also if there are any advanced resources that would ...
2
votes
2answers
172 views
Collisions between players at spawnpoints
I am working on a FPS/MMORPG and ran into a problem at spawnpoints, when I enabled collision detection between players. Neither player would be able to move if both spawned at the same time, because ...
1
vote
2answers
539 views
Collision Problems
I'm having some troubles with a 2D platformer type game (there's more to it, but that's all that matters for this question). I had collision with the platforms working fine, but if the character hit ...
5
votes
4answers
2k views
2D Platformer Collision Handling
I am trying to create a 2D platformer (Mario-type) game and I am some having some issues with handling collisions properly. I am writing this game in C++, using SDL for input, image loading, font ...