About Store Forum Documentation Contact



Post Reply 
Physics Ray Against Terrain Only
Author Message
fatcoder Offline
Member

Post: #1
Physics Ray Against Terrain Only
How do you cast a physics ray against the terrain only? I don't want the ray to interset with objects in the scene, just the terrain.

I have tried passing AG_TERRAIN as the group to Physics.ray, but this seems to cause Physics.ray to stop working altogether.
05-01-2010 11:29 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Physics Ray Against Terrain Only
the group parameter is a bit combination
IndexToFlag(AG_TERRAIN)
05-02-2010 12:59 PM
Find all posts by this user Quote this message in a reply
Post Reply