All Questions
Tagged with entity-system collision-detection
10 questions
0
votes
1
answer
469
views
Cannot decide between using a MessageBus and entities for events in my ECS game
For example, let's say that the player walks into an enemy and in response, a chain of events should occur (such as: his score goes up, the enemy dies, a cinematic starts, etc.)
I see two "proper&...
0
votes
0
answers
96
views
How to store 3D entity position, offset, and transformation data for parent and children?
I am looking for a cleaner pattern to storing character position data, offsets, and transformations. I currently have a character with a vec3 for position.
...
1
vote
1
answer
590
views
How to detect collision between entities using Ashley?
I am developing a game using Libgdx and Ashley, and I would like to know the best way to detect collisions between different entities. Currently I have been using a ContactListener that detects ...
3
votes
1
answer
361
views
What data should a generic collision detection system gather?
I'm working on a relatively generic 2D AABB collision detection system for a game engine, and I've re-written it more times than I'd like to admit, due to not calculating or recording specific details ...
5
votes
4
answers
3k
views
Checking for Weapon Collision in a 2D overhead RPG game
I'm starting development on a 2D overhead RPG game, and am wondering what the best approach for handling weapon collision and dealing damage to enemies is.
I'm currently using a basic Entity/...
0
votes
1
answer
133
views
How to combat exponential growth in sprite messaging?
In my 2D platformer game, I have a number of sprites moving around the world. When two sprites collide with each other, I calculate how deep the collision is and then call a virtual method on both ...
3
votes
2
answers
1k
views
How do I deal with abstracting collision handling code between entities with differing collision components?
I'm using a component based entity design with Components that hold the data and Systems that act on entities based on the ...
0
votes
1
answer
339
views
Collision response callback
First at all, I'm not asking how to handle or detect collision. I already have that.
My actual situation is, I have a system collision and I detect the collisions. Every collision detected is store ...
3
votes
1
answer
3k
views
How a "Collision System" should be implemented?
My game is written using a entity system approach using Artemis Framework. Right know my collision detection is called from the Movement System but i'm wondering if it's a proper way to do collision ...
14
votes
2
answers
10k
views
Collision detection and response in an Entity System
More fun with an ES...
Currently, I have a few systems:
Renderer (Renderable attribute, Transform attribute)
Motion (Movable attribute, Transform attribute, Renderable attribute [for bounding boxes, ...