Apply Physics2D to 3D Game Objects - Unity3D

烂漫一生 提交于 2019-12-11 05:28:46

问题


Is it possible to use Physics 2D components(rigidbody2d,collider2d..etc) on 3d Game objects. I am planning develop 2 game with some of 3d model.

Thanks!


回答1:


It is not, however what you can do with rigidbody3d is lock the physics movement and rotation on it. For example, if you only ever wanted it to move along the x and y axis of your game, in the inspector just tick the freeze z movement box for the rigidbody component.



来源:https://stackoverflow.com/questions/27058919/apply-physics2d-to-3d-game-objects-unity3d

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!