Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
gdevelop5:all-features:collisions [2020/05/12 01:10]
hiran [Make objects solids: use the Separate objects action (good for top-down games, RPG...)]
gdevelop5:all-features:collisions [2020/05/18 09:47]
4ian
Line 13: Line 13:
   * The second object name is an //object (or a group of objects) that are solid//. For example, these objects can be the walls.   * The second object name is an //object (or a group of objects) that are solid//. For example, these objects can be the walls.
  
-The action will then iterate over all of the objects given. It will ensure that if an object of the first kind is colliding with an object of the second kind, the object will be moved away. This is done using an algorithm called the _SAT algorithm_. Learn more about SAT on [[https://​gamedev.stackexchange.com/​questions/​43873/​how-does-the-sat-collision-detection-algorithm-work|gamedev.stackexchange.com]] or on [[https://​www.youtube.com/​watch?​v=IELWpIGtjRg|Youtube]].+The action will then iterate over all of the objects given. It will ensure that if an object of the first kind is colliding with an object of the second kind, the object will be moved away. This is done using an algorithm called the _SAT algorithm_.
  
 {{ :​gdevelop5:​all-features:​separate-objects-action.png?​nolink |}} {{ :​gdevelop5:​all-features:​separate-objects-action.png?​nolink |}}