- Home /
Curious about "Vortex" force (HELP)
Hello everyone, are there some of you who did experienced or is currently working on about vortex force?
Because I struggled a lot with that and I can't find any topic with a good answer, neither in Google.
It seems be a new concept of Unity that never tried to play with before because even I tried by adding "Point Effector" from a GameObject who attracts others and rotating this GameObject.
Then when I make a GameObject entering in which where should to be guided by this "vortex" force, nope, it's not working and it attracts only A point to B point in a straight line. I'm disappointed of results to be honest.
Hope that you have an answer.
Answer by LeFlop2001 · Jul 01, 2020 at 09:00 PM
You could simply use the Physics.OverlapSphere() function to detect any object in the proximity of the vortex and adding a force perpendicular to the vortex and multiplying it by the distance
Answer by Jerem0597 · Jul 02, 2020 at 07:22 PM
@LeFlop2001 Thanks for your time to reply my question,
I found an old answer like your suggestion with Physics.OverlapSphere(), here's link: https://answers.unity.com/questions/973239/how-to-add-a-constant-force-pulling-all-objects-to.html
But me, I used a triggered collider circle with OnTriggerStay(Collider other), it's same thing?
If yes, then I have to try about perpendicular force with multiplication. It's Vector3.Cross, correct? Like in the documentation: https://docs.unity3d.com/Manual/ComputingNormalPerpendicularVector.html I will multiply it depending on radius length. But right now, my brain is burned lol but thanks again
Your answer
![](https://koobas.hobune.stream/wayback/20220613002236im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Performance issues with trigger colliders and lots of projectiles. 2 Answers
Stop child colliders from applying force individually 0 Answers
OnTriggerEnter2D triggering multiple times when moving around inside the trigger area. 1 Answer
Applying custom forces without rigidbody collisions? 0 Answers
2.5d Player Controller 0 Answers