A process of adjusting game objects position after collision.
1
vote
0answers
18 views
How to handle collision detection & response in voxel engine with slopes?
Voxels are fairly small
An object can span an area of 8x8x8 or more
Vertices of Voxel Type are always snapped to the grid:
Voxel types are convex (except the second type - which can be thought of ...
1
vote
0answers
9 views
Achieve same effect as a FixedJoint2D but also match RigidBody2D forces
Trying to make an object that is affected by rigidbody physics in exactly the same way as the object it's linked to. So torque, velocity, and any resultant torque or velocity from a collision.
This ...
0
votes
1answer
20 views
XNA player/tile collision not working perfectly
So I've built a map tile engine in XNA, and have been working on the player/tile collision. The method I'm using works well to some extent, but the player will often move through the walls and get ...
0
votes
2answers
79 views
Adding collisions to a 3D mmorpg game
I'm creating a mmorpg game with a little team, and we want to add a player-objets collisions system. We want players to be able to walk on a heightmap ground, and walk/be blocked by objects.
I found ...
0
votes
0answers
50 views
Pseudocode for a basic pool like game
I'm trying to write a basic but accurate simulation of balls colliding with each other and a square enclosing, and I'm wondering if you can help me with pseudocode to give me an idea of the overall ...
3
votes
2answers
34 views
Inelastic ball collision
I'm trying to implement basic inelastic ball collision.
The example on the link above is for one dimension. It explains that it's the same for 2D but where the velocities are the components in the ...
0
votes
2answers
60 views
Collision handling for grid based games and simulations
I'm trying to implement a grid based game where there are many creatures moving in the grid from square to square. I'm having a hard time handling collision with creatures in the grid (multiple ...
0
votes
0answers
33 views
Continuous Collision Detection Pipeline
So, I know how to do Continuous Collision Detection.
For any frame, I can produce the nearest Time of Impact between two objects (with collision points, collision normal, collision velocities, ect.).
...
0
votes
0answers
27 views
Monogame/XNA 3D Floor/Wall Collision
I am trying to make collision work in my game, however, I am so lost on how to do what I want. I have a player model and a floor model with a BoundingBox around both of them. The floor is just a ...
0
votes
1answer
57 views
How can I calculate the penetration depth between two colliding 3D AABBs?
I'm currently working on implementing a very basic collision system in my game at the moment that only uses 3D AABBs. My AABB struct currently looks like this at the moment.
/// <summary>
/// ...
1
vote
0answers
17 views
Defining collision rules in Farseer XNA
I'm trying to integrate Farseer into my XNA game.
Since I'm using an EntityComponentSystem approach, I've added the Body inside a component and added it to the players' components.
One thing I'm ...
0
votes
1answer
20 views
Increasing mass in ineleastic collision by orders of magnitude resultsin little change in velocity
When increasing my rocketMass from 10 to 1000 or to a 1000 or bringing my shipMass down to 1, I notice very little increase in how far the ship's final inertia is. I'm expecting that increasing from ...
1
vote
0answers
36 views
How do 3D player collision work? [closed]
I don't really know how to explain this but I have always wondered how simple player movement collision work. Take Half-Life or Counter-Strike for example.
Their player collision against the world ...
1
vote
0answers
39 views
How to resolve multiple simultaneous ball collisions in a pool game?
I'm trying to simulate a break shot in billiards (1 ball hits a pyramid of 15 balls).
The formula for 2D ball collision works correctly in my game. But when it is applied to the break-shot, the result ...
0
votes
0answers
26 views
Java - Issue colliding with more than one object
Ok, I am working on a simple 2D sidescroller game and having issues with the player (or any moving entity) colliding with another entity. My current method, (a box on north, south, east, and west to ...
0
votes
0answers
64 views
Resolving 2D AABB collision problem
I'm adapting the collision resolution code from learnopengl.com for my own engine and since this my first time doing this, I have a problem with how the player position is being modified by the ...
0
votes
0answers
28 views
Finding minimum horizontal offset to disjoin two objects in 3D
This is an extension of sorts of the question asked here: Allowing a player to walk up and down slopes without resistance
I am using the Separating Axis Theorem to determine the minimum translation ...
1
vote
0answers
56 views
Game Physics: Calculating a collision response using the Separating Axis Theorem?
I am working on a project in which I have implemented the Separating Axis Theorem to detect collisions between objects. My current collision response is an object that contains whether it is ...
1
vote
0answers
46 views
Handle floating point precision errors in collision detection and resolution
I am experimenting with a continuous collision detection and response of points on a tile map.
This are my results for now:
I did this by shooting a ray (red line) from the current position (red ...
9
votes
3answers
179 views
Strategies for dealing with crowds at choke-points
I've recently switched my game engine over from steering behaviours to impulse based movement with proper time based collision resolution. This has solved so many problems (no more tunnelling, yay) ...
9
votes
2answers
234 views
Collisions between players in multiplayer racing game
I'm creating a simple racing game (spaceships, no gravity) using p2.js, phaser and node.js.
What I have done:
Client receives world state from server:
extrapolate other players based on latest ...
1
vote
1answer
152 views
How to handle collision detection
So the way that I am doing the movement for my game is that you can left click a unit (which is just a rectangle object), and then it is selected. While it is selected, you can right click and that ...
0
votes
1answer
28 views
Canvas/Paint Mechanic
I am currently working on an idea for a unity game app with a canvas mechanic. I understand I may have to use particles for the brush/paint f/x however I can not think of a way to add collision ...
13
votes
2answers
2k views
Storing coordinates of every object in server side in MMOs
In an MMORPG:
Is it typical or feasible to store the coordinates of every tree, bush rock.. etc in the server side for collision detection?
If so, what would be a feasible way to store such a huge ...
0
votes
0answers
52 views
Detecting collision between 2 convex meshes in 3D
For the past couple of weeks I've been trying to implement physics in my engine, and I am currently stuck on the collision detection phase.
In short, I can perform a triangle-triangle intersection ...
0
votes
0answers
36 views
Doing collisions on both axis with java overlap
I'm making a top down game from scratch and just found out about the java rectangle overlap method that would work great for collisions.
However, after the overlap happens, I need to check for which ...
0
votes
1answer
298 views
AABB Collision Problems in SFML
I have a problem with AABB collision.
I am making a top down rougelike in SFML and my collision algorithm does't quite work properly.
HERE IS A GIF OF THE PROBLEM.
It mostly works, except for when ...
0
votes
1answer
67 views
Collision between free player and tilebased map
so I'm working on some sort of platformer in javascript where the map is tilebased but the player can move freely.
Now, i have a problem with collision detection/response. It's kind of obvious what I'...
3
votes
2answers
339 views
2D Platformer AABB collision issues
Before anyone say that this questions already has a answer, I will list all the questions I read and tried:
AABB collision resolution issues
Trouble with AABB collision response and physics
Hard ...
2
votes
4answers
348 views
Lunar Lander calculating gravity, acceleration and collision in GameMaker
I've already asked this on the GameMaker forums but had no response so far.
I'm making a little Lunar Lander game as my first foray in to GameMaker, I'm wanting to have the ship land and take off ...
0
votes
0answers
54 views
Problem with collision detection also affecting collision resolution
Hi I am making a 2d scrolling beat em up, I am working on the collision with obstacles like drums and platforms.
So far I have the player jumping and falling from platforms but having problem ...
1
vote
2answers
158 views
Can I make this physics simulation any faster?
I've made a little real time physics simulation that solves some bodies. CirclevCircle && CirclevOrientedRect I would like someone to tell me if I'm doing something drastically wrong. I know ...
3
votes
1answer
62 views
Collision resolution when moving in two directions
I am making a bomberman clone and I'm having problems regarding moving on both x and y axis (pressing down+left, down+right, up+left). Here is a video to demonstrate the problem. I use Tiled for the ...
0
votes
0answers
20 views
Collision Handling between two Sets of Polygons?
So I'm making a minecraft mod that allows you to build crafts out of blocks and move them around. I've been stuck on this issue for months now though, which is that I can't get the crafts to collide ...
0
votes
1answer
92 views
Tile-based collision problem with corners
I am currently making a tile based collision system. But I encountered a big problem I can't seem to figure out.
Use the image bellow for reference.
Gray lines represent the border between tiles. ...
0
votes
2answers
78 views
Collision works except for when coming from right side
I am trying to make a bomberman clone. I'm having problems with the collision on the walls that is not on the sides of the map (see image). When I come from the right (going left), the red square (...
0
votes
0answers
42 views
Circle velocities stay the same after elastic 2D collision
I am following this paper in trying to create elastic 2D collisions among two circles. The problem is that my end velocities are the same as my start velocities. I've looked over my code and don't see ...
3
votes
1answer
141 views
Resolving collisions with float precision errors
I'm facing a problem when I try to resolve the collision between two units using floats as positions of the units in my game.
I am detecting the collisions using the SweptAABB algorithm and if there ...
0
votes
0answers
45 views
Touch and Collisions not working together in AndEngine when i set a custom Physics Handler
I have a set of custom sprites which implement a custom physics handler. The aim is to allow the user to move them by touch, then upon release they should act like a spring is connecting them to the ...
0
votes
2answers
109 views
How to make the character cannot pass through other randomly moving objects when they are collided?
As the title above, how can i make my random wallImg solid enough so that my birdImg cannot pass through it from any sides of the wallImg?
Here's the code of Processing's Crappy Bird that i've altered ...
3
votes
1answer
182 views
How to prevent accelerating along wall during 2d sliding collision response
I'm writing a simple 2d physics system using a circle colliding with edges. When the user presses a key the circle's velocity is incremented by some amount in the direction they pressed. There is ...
2
votes
1answer
141 views
Ball's velocity vector, reflect against a point
I need to calculate the new velocity vector when the ball collides with one of the paddle's corners.
Let d be the velocity vector of the ball,
r the target velocity vector
and n the surface normal ...
3
votes
0answers
85 views
Is there an algorithm for collision resolution that factors in velocity?
I'm trying to program collision detection between moving convex polygons. To detect collisions, my program uses the GJK algorithm, and to resolve the collisions, it uses EPA. The problem with EPA is ...
-5
votes
2answers
362 views
Unity Renderer.bounds issue?
I would like to make rend.bounds.max.y be always equal to 20 on collision no matter what, using the script below. But it seems that I can't set it manually and the script has no effect on my ...
0
votes
1answer
43 views
2d Tile Based Collision Response
Right now I am trying to make a 2d collision response system for a platformer, and the algorithm I have for it works quite well. The only problem is that if the player is standing exactly on a tile, ...
3
votes
1answer
299 views
How do I deal with collision resolution causing another collision?
I'm making a simple 2D, top-view simulation of an evacuation, sprites running around, looking for exits, going at it, all that good stuff.
I have no control over them when the simulation is running, ...
5
votes
1answer
160 views
Finding new position after collision with multiple colliders
What is the most accurate way to find the correct position to where a moving character should be re-positioned as a collision-resolution, after it has collided with multiple colliders?
The figure ...
1
vote
0answers
42 views
Detecting the two Vector3 that determine the bottom-edge of the side of a box-collider that had collision (with C#)
So, I understand that plenty of questions have been posted on how to detect which side of a Box Collider had collision. However, what I am trying to achieve is a little different.
I want to find out, ...
1
vote
0answers
46 views
Collision detection for multiplayer game with MatterJS
We are developing JavaScript multiplayer top down game where characters can move freely and collide with each other. We are rather weak at mathematics and physics, luckily we don't need much, just ...
2
votes
1answer
116 views
Continuous Collision Detection
So I'm playing around with the separating axis theorem and collision. Obviously the problem of what face it collided with arose. I need the unit normal which is tangent to that face it collided with ...