# Introduction to Developing a System For Collisions

> A collision system built using just Babylon.js code with no physics engines

Source: https://doc.babylonjs.com/guidedLearning/workshop/Collide_Intro

The aim of this series of tutorials is to consider how a collision system can be built using just Babylon.js code (i.e. no physics engines). Some of the issues involved in developing such a system are described. The ideas in this tutorial can be used to build a collision system for complex shapes. 

In this case a complex shape is one constructed from spheres of the same size in such a way that any one sphere 
is always in contact with at least one other sphere in the shape. A complex shape is likely to have concave sections. 
An example of colliding complex shapes is given below. It has been constructed using the Solid Particle System because of the speed and flexibility when using many repeated shapes.

![Complex Shape](https://doc.babylonjs.com/img/samples/collide1.webp)

PG: [Playground: Complex Shapes Colliding](https://playground.babylonjs.com/#WLYB9#5) - An example of complex shapes in collision.

To begin with, the frame rate will be taken as constant throughout the animation, and the speed of any shape will be in units per frame.
