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
gamejams
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
Get s&box
Sign in with Steam
Api
Structs
Trace
chevron_left Structs
struct
Trace

Methods

functionsHitBackfacesfunctionsMeshesOnlyfunctionsRunfunctionsSkipToolsMaterials

Static Methods

functionsRay
Trace
Trace for tools, not to be confused with Sandbox.SceneTrace
struct Editor .
sealedSandbox.Tools

functions Methods 4

HitBackfaces ()
Trace
Hit back facing geometry too - by default only faces pointing towards the ray are hit. A back face hit (normal pointing along the ray) means the ray started inside something.
MeshesOnly ()
Trace
Only trace against hammer mesh geometry ( CMapMesh nodes )
Run (world)
TraceResult
Runs a trace against given world.
SkipToolsMaterials ()
Trace
Don't hit tools materials (materials with the tools.toolsmaterial attribute)

functions Static Methods 1

Ray (from, to)
Trace
Create a trace ray.
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