s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
Terrain
RayIntersects
chevron_left
Classes
class
Terrain
search
Constructors
functions
Terrain
Properties
data_object
ClipMapLodExtentTexels
data_object
ClipMapLodLevels
data_object
ComponentVersion
data_object
ControlMap
data_object
EnableCollision
data_object
HeightMap
data_object
IsConcave
data_object
MaterialOverride
data_object
RenderType
data_object
Storage
data_object
SubdivisionFactor
data_object
SubdivisionLodCount
data_object
TerrainHeight
data_object
TerrainSize
Methods
functions
Create
functions
GetMaterialAtWorldPosition
functions
RayIntersects
functions
SyncCPUTexture
functions
SyncGPUTexture
functions
UpdateMaterialsBuffer
RayIntersects
Given a world ray, finds out the LOCAL position it intersects with this terrain.
method
bool
RayIntersects
(
Ray
ray
,
float
distance
,
out
Vector3
position
)
Parameters
Name
Type
Description
ray
Ray
distance
float
out
position
Vector3
Returns
Type
Description
bool
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.