s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Common Structs
Ray
chevron_left Common Structs
struct
Ray

Constructors

functionsRay

Properties

data_objectForwarddata_objectPosition

Methods

functionsProjectfunctionsToLocalfunctionsToWorld
Ray
A struct describing an origin and direction
struct
sealedSandbox.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
arrow_back_ios1arrow_forward_ios
one year ago
#1
Anthony
Member
JoinedAug 2022 Posts3 Score345
14 1
arrow_back_ios1arrow_forward_ios
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter