How can I make the explosion affect only the x-axis and not the y-axis in unity

后端 未结 0 490
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-01 04:03

this is the code I add force but I want that the force Will be only on the x-axis and not on the y-axis

 Collider2D[] objects = Physics2D.OverlapCircleAll(transfo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题