Ray casting on a plane geometry only works from on direction

心不动则不痛 提交于 2019-12-25 16:46:52

问题


I'm using plane geometries as walls in a game. I'm using ray caster to provide the player from moving through them. The problem is that planes only works one way. When the player comes from the "front" side it works but when it comes from behind it moves through.

Cube and sphere geometries works from any directions so my ray caster function seems to do the job.

I have set material to be double sided but it doesn't help.

Does any one know about this issue? How can I make the plane using both side?

来源:https://stackoverflow.com/questions/40864144/ray-casting-on-a-plane-geometry-only-works-from-on-direction

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