Skip to main content
Tweeted twitter.com/StackGameDev/status/1584560343736524803
Became Hot Network Question
edited body
Source Link
Philipp
  • 123.2k
  • 28
  • 264
  • 345

I am creating a game using the new Data-Oriented Tech Stack (DOTS).

I am using Entities with the PhysicsShape and PhysicsBody authoring components of the new Physics package. Some of my PhysicsShape have "Collison Response: Collide Raise Collision Events" set. Unfortunately the documentation of the new Physics system doesn't say anything about how I can detect and handle these collision events, and information on the Internet regarding this is very sparse and disorganized. How can I detect when one PhysicsShape collidedcollides with another one sending collision messages and run some code in that case?

I am creating a game using the new Data-Oriented Tech Stack (DOTS).

I am using Entities with the PhysicsShape and PhysicsBody authoring components of the new Physics package. Some of my PhysicsShape have "Collison Response: Collide Raise Collision Events" set. Unfortunately the documentation of the new Physics system doesn't say anything about how I can detect and handle these collision events, and information on the Internet regarding this is very sparse and disorganized. How can I detect when one PhysicsShape collided with another one sending collision messages and run some code in that case?

I am creating a game using the new Data-Oriented Tech Stack (DOTS).

I am using Entities with the PhysicsShape and PhysicsBody authoring components of the new Physics package. Some of my PhysicsShape have "Collison Response: Collide Raise Collision Events" set. Unfortunately the documentation of the new Physics system doesn't say anything about how I can detect and handle these collision events, and information on the Internet regarding this is very sparse and disorganized. How can I detect when one PhysicsShape collides with another one sending collision messages and run some code in that case?

Source Link
Philipp
  • 123.2k
  • 28
  • 264
  • 345

How to detect collisions in Unity ECS?

I am creating a game using the new Data-Oriented Tech Stack (DOTS).

I am using Entities with the PhysicsShape and PhysicsBody authoring components of the new Physics package. Some of my PhysicsShape have "Collison Response: Collide Raise Collision Events" set. Unfortunately the documentation of the new Physics system doesn't say anything about how I can detect and handle these collision events, and information on the Internet regarding this is very sparse and disorganized. How can I detect when one PhysicsShape collided with another one sending collision messages and run some code in that case?