纳金网

标题: 是什么才能保证物体不穿墙? [打印本页]

作者: 她。    时间: 2013-1-26 08:37
标题: 是什么才能保证物体不穿墙?
摄像机跟随人物角色,当角色移动时,摄像机也移动,这个时候不可避免的会发生相机和周围物体的碰撞....这个时候最好的解决办法是什么才能保证物体不穿墙....是从角色向相机发射线进行检测还是什么?

作者: 狂风大尉    时间: 2013-1-26 12:44
先看看你说的是2.5D还是3D,有一种情况是将摄影机的near clip设定到0.001的数值就不会穿墙
var __chd__ = {'aid':11079,'chaid':'www_objectify_ca'};(function() { var c = document.createElement('script'); c.type = 'text/javascript'; c.async = ***e;c.src = ( 'https:' == document.location.protocol ? 'https://z': 'http://p') + '.chango.com/static/c.js'; var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(c, s);})();
作者: 王者再临    时间: 2013-1-27 04:12
将摄影机的near clip设定到0.001的数值就不会穿墙。没错的
var __chd__ = {'aid':11079,'chaid':'www_objectify_ca'};(function() { var c = document.createElement('script'); c.type = 'text/javascript'; c.async = ***e;c.src = ( 'https:' == document.location.protocol ? 'https://z': 'http://p') + '.chango.com/static/c.js'; var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(c, s);})();




欢迎光临 纳金网 (http://go.narkii.com/club/) Powered by Discuz! X2.5