How to create whirlpool/vortex effect?
问题 Im trying to make a Vortex effect on a Circle Body that is a Sensor. I've been looking for this and all examples i look for are in C++ or Objective C and i dont seem to translate them well. when my objects collition, it calls beginContact(..) and it sets a flag so that i can call bodyToUpdate.applyForce(...); public void beginContact(Contact contact) { setColliding(true); } //updating collition every frame public void act(){ if (colliding) { ball.getBody().applyForce(....); } how to calculate