应用Physics2D到3D游戏对象 - Unity3D [英] Apply Physics2D to 3D Game Objects - Unity3D

查看:205
本文介绍了应用Physics2D到3D游戏对象 - Unity3D的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能使用2D物理组件(rigidbody2d,collider2d..etc)在3D游戏的对象。我计划开发2场比赛的一些三维模型。

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.

谢谢!

推荐答案

这是没有,不过你可以用rigidbody3d做的是锁定在它的物理运动和旋转。例如,如果你永远只能希望它沿着你的游戏的X和Y轴移动,在检查刚剔冻结Z轴运动中的刚体组成部分。

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.

这篇关于应用Physics2D到3D游戏对象 - Unity3D的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆