Ray casting on a plane geometry only works from on

2019-09-13 07:30发布

问题:

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?