calculate flame position