Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collision handling #6

Open
SiXoS opened this issue Aug 17, 2021 · 0 comments
Open

Collision handling #6

SiXoS opened this issue Aug 17, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@SiXoS
Copy link
Owner

SiXoS commented Aug 17, 2021

A lot of games will need collision handling. It would be nice if there were some utilities for collisions.

There are basically four iterations of this that should be implemented iteratively:

  1. Invoke some function that checks if two shapes intersects.
  2. Return the collision normal for an intersection
  3. Have some listener, similar to the input block that is invoked when two objects intersect. This should require the game creator to mark which shapes that can collide and which shapes that can collide with which other shapes. This is to reduce the number of checks required.
  4. Physics. By specifying some parameters (like gravity, weight of shapes, elasticity of shapes etc.) to shapes they should act as objects in a physical space (bouncing off of surfaces, falling down from gravity etc.).
@SiXoS SiXoS added the enhancement New feature or request label Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant