Problem I have an implementation of a BrickBreaker-like game where instead of pieces being just removed from the ceiling, each […]
Tag: collision
Simplify JavaScript collision detection with offset [closed]
Problem Closed. This question is off-topic. It is not currently accepting answers. Lacks concrete context: Code Review requires concrete code […]
Collision manager
Problem I have a chunk of code that’s working properly but it’s way too complicated to read: addCollision (bodyA, bodyB) […]
Bounding volume hierarchy
Problem I’m building a bounding volume hierarchy in Golang. I can tell my code works because I did some test […]
Making a grid for collision detection in a game that wraps
Problem I’m making a 2D game which wraps (when you move off the right edge, you appear on the left, […]
Ray→plane and ray→quad intersection
Problem This checks the intersection between a Ray and a Plane and between a Ray and a Quad (in 3D): […]
Line and bitmap collision detection
Problem I am trying to implement an efficient collision detection between a line joining two points and a bitmap mask. […]
Javascript collision check
Problem I have code to find images in my selections. But when nothing in selection (loop FOR) and selection is […]
Conditionally eliminating one of two colliding bodies
Problem I like to explicit return function even for void functions to reduce the use of if-elses, like this code […]
Slow foreach loop to check for intersect
Problem I’m trying to make a loop where it returns whether or not a rectangle collides and then to which […]