The function
public int checkCollision(SimpleVector org, SimpleVector dr, float step)
returns the id of the object that the collision happens with. However, the function
public SimpleVector checkCollisionSpherical(SimpleVector org, SimpleVector translation, float radius)
does not. Instead it returns the vector that is safe to translate before the collision happens.
Why is the functionality different? And is there any way I can check what object I collide with when I use checkCollisionSpherical()?