Module bigbang::collisions[][src]

This module contains functions to be used for collision calculations. You do not need to use these, they are provided merely for convenience. All of the functions follow the format of:

Given two T: AsEntity p1 and p2 and some parameters, return the acceleration vector being exerted from the collision

Functions

soft_body

Uses Hooke’s law exerting an outwards force proportional to the amount of overlap when two entities are overlapping. The argument stiffness refers to the stiffness coefficient applied to the overlapping value.