s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
SceneCamera
GetRay
chevron_left
Classes
class
SceneCamera
Constructors
functions
SceneCamera
Properties
data_object
AmbientLightColor
data_object
Angles
data_object
AntiAliasing
data_object
Attributes
data_object
BackgroundColor
data_object
Bloom
data_object
ClearFlags
data_object
CubemapFog
data_object
CustomProjectionMatrix
data_object
DebugMode
data_object
EnableDirectLighting
data_object
EnableIndirectLighting
data_object
EnablePostProcessing
data_object
ExcludeTags
data_object
FieldOfView
data_object
Name
remove_circle
OnRenderTransparent
data_object
Ortho
data_object
OrthoHeight
data_object
Position
data_object
Rect
data_object
RenderTags
data_object
Rotation
data_object
Size
data_object
TargetEye
data_object
VolumetricFog
data_object
WantsStereoSubmit
data_object
WireframeMode
data_object
World
data_object
Worlds
data_object
ZFar
data_object
ZNear
Methods
functions
Dispose
functions
GetFrustum
functions
GetRay
functions
ToScreen
functions
ToScreenNormal
functions
ToWorld
Static Methods
functions
RenderToPixmap
functions
RenderToVideo
functions
RenderToVideoAsync
GetRay
Given a cursor position get a scene aiming ray.
method
2 overloads
Overloads
1
2
Ray
GetRay
(
Vector3
cursorPosition
)
Parameters
Name
Type
Description
cursorPosition
Vector3
Returns
Type
Description
Ray
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.