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
Common Structs
Ray
chevron_left
Common Structs
struct
Ray
Constructors
functions
Ray
Properties
data_object
Forward
data_object
Position
Methods
functions
Project
functions
ToLocal
functions
ToWorld
Ray
A struct describing an origin and direction
struct
sealed
Sandbox.System
build
Constructors
1
Ray
(
origin
,
direction
)
data_object
Properties
2
Forward
Vector3
Direction of the ray.
Position
Vector3
Origin of the ray.
functions
Methods
3
Project
(
distance
)
Vector3
Returns a point on the ray at given distance.
ToLocal
(
tx
)
Ray
Convert a ray to be local to this transform
ToWorld
(
tx
)
Ray
Convert a ray from being local to this transform
‹
1
›
one year ago
#1
Anthony
Member
Joined
Aug 2022
Posts
3
Score
345
‹
1
›
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.