Apply Physics2D to 3D Game Objects - Unity3D

2019-07-31 22:47发布

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条回答
甜甜的少女心
2楼-- · 2019-07-31 23:32

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.

查看更多
登录 后发表回答