add collision function to baseobject