Here's an updated example:
+ variable height walls
+ walls at varying z locations
+ changed the line drawing for level design
https://www.dropbox.com/s/u11iab8q7cf3n ... .capx?dl=1
/examples11/raycast4.capx
Note: You'll need the canvas object for this one.
I get 4-10 fps on my rig.
EDIT:
found another reference for raycasting with a lot of diagrams:
http://www.permadi.com/tutorial/raycast/index.html
Could be useful.R0J0hound2012-05-28 22:42:43