bump icon indicating copy to clipboard operation
bump copied to clipboard

A set of 2D collision utilities for games.

Results 11 bump issues
Sort by recently updated
recently updated
newest added

It can't support sprite collision? ![image](https://user-images.githubusercontent.com/26577708/175192744-b1a78d28-f560-4e29-9278-850c77da5875.png)

Would nice to see support for rotated objects (using SAT, swept OOB...) for collision tests, and the colliding angle in collision response.

help wanted

Hi, sorry for my Eng. When i try use bump.js via CDN like https://cdn.rawgit.com/kittykatattack/bump/2fe38b76/bin/bump.js all working correct. But when i try use webpack or another build system from npm_modules i...

Hi everyone, I think i have found a problem in findCollisionType function. In findCollisionType to determine if an object is a circle, the existence of diameter member is tested :...

I'm trying to use the `contain` function to keep a ball (sprite) inside a playing field (container). Struggling to get this done I went into the code to see if...

> It can have the value "topLeft", "topMiddle", "topRight", "leftMiddle", "rightMiddle", "bottomLeft", "bottomMiddle", or "bottomRight". If there’s no collision it will be undefined. Yet half of my collisions are turning...

1. The doc says `anySprite.circular = true;` will make the sprite be interpreted as circular. In fact it doesn't work. I notice there's a block in the source code: ```...

AddCollisionProperties doesn't seem to work for polygons. Properties needed for collisions are not valid

help wanted

I have a platfomer with a constant acceleration built in to simulate gravity: let playerGravity = 0.2; playerSprite.vy += playerGravity; collision detection for playerSprite and array of sprites that are...

help wanted