Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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&...
Ryan Peschel's user avatar
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. ...
kevzettler's user avatar
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 ...
LizardStd's user avatar
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 ...
Celarix's user avatar
  • 203
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 ...
Dorian Hawkmoon's user avatar
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 ...
nathan's user avatar
  • 1,876
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, ...
3Dave's user avatar
  • 3,151
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 ...
Chris Langford's user avatar
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 ...
George Duckett's user avatar
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/...
framauro13's user avatar