change the entity's matrix and pos
add some helper fun