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
PhysicsTraceBuilder
chevron_left
Classes
struct
PhysicsTraceBuilder
search
Methods
functions
Body
functions
Box
functions
Capsule
functions
Cone
functions
Cylinder
functions
FromTo
functions
HitTriggers
functions
HitTriggersOnly
functions
IgnoreDynamic
functions
IgnoreKeyframed
functions
IgnoreStatic
functions
Radius
functions
Ray
functions
Rotated
functions
Run
functions
RunAgainstBBox
functions
RunAgainstCapsule
functions
RunAgainstSphere
functions
RunAll
functions
Size
functions
Sphere
functions
Sweep
functions
UseHitPosition
functions
WithAllTags
functions
WithAnyTags
functions
WithCollisionRules
functions
WithoutTag
functions
WithoutTags
functions
WithTag
PhysicsTraceBuilder
struct
Sandbox
.
sealed
Sandbox.Engine
functions
Methods
29
Body
(
body
,
to
)
PhysicsTraceBuilder
Casts a PhysicsBody from its current position and rotation to desired end point.
Box
(
extents
,
from
,
to
)
PhysicsTraceBuilder
Casts a box from point A to point B.
Capsule
(
capsule
)
PhysicsTraceBuilder
Casts a capsule
Cone
(
height
,
baseRadius
)
PhysicsTraceBuilder
Casts a cone (base at bottom, apex at top).
Cylinder
(
height
,
radius
)
PhysicsTraceBuilder
Casts a cylinder
FromTo
(
from
,
to
)
PhysicsTraceBuilder
Sets the start and end positions of the trace request
HitTriggers
(
)
PhysicsTraceBuilder
Include triggers in the trace
HitTriggersOnly
(
)
PhysicsTraceBuilder
Only hit triggers
IgnoreDynamic
(
)
PhysicsTraceBuilder
Ignore dynamic objects in the trace
IgnoreKeyframed
(
)
PhysicsTraceBuilder
Ignore keyframed objects in the trace
IgnoreStatic
(
)
PhysicsTraceBuilder
Ignore static objects in the trace
Radius
(
radius
)
PhysicsTraceBuilder
Makes this trace a sphere of given radius.
Ray
(
from
,
to
)
PhysicsTraceBuilder
Casts a ray from point A to point B.
Rotated
(
rotation
)
PhysicsTraceBuilder
Sets the start rotation of the trace request
Run
(
)
PhysicsTraceResult
Run the trace and return the result. The result will return the first hit.
RunAgainstBBox
(
box
,
transform
)
PhysicsTraceResult
Traces only against the given bounding box at the specified transform.
RunAgainstCapsule
(
capsule
,
transform
)
PhysicsTraceResult
Traces only against the given capsule at the specified transform.
RunAgainstSphere
(
sphere
,
transform
)
PhysicsTraceResult
Traces only against the given sphere at the specified transform.
RunAll
(
)
PhysicsTraceResult[]
Run the trace and return all hits as a result.
Size
(
hull
)
PhysicsTraceBuilder
Makes this trace an axis aligned box of given size. Extracts mins and maxs from the Bounding Box.
Sphere
(
radius
,
from
,
to
)
PhysicsTraceBuilder
Casts a sphere from point A to point B.
Sweep
(
body
,
from
,
to
)
PhysicsTraceBuilder
Sweeps each
PhysicsShape
of given PhysicsBody and returns the closest collision. Does not support Mesh PhysicsShapes. Basically 'hull traces' but with physics shapes. Same as tracing a body but allows rotation to change during the sweep.
UseHitPosition
(
enabled
)
PhysicsTraceBuilder
Compute hit position.
WithAllTags
(
tags
)
PhysicsTraceBuilder
Only return with all of these tags
WithAnyTags
(
tags
)
PhysicsTraceBuilder
Only return entities with any of these tags
WithCollisionRules
(
tag
,
asTrigger
)
PhysicsTraceBuilder
Use the collision rules of the given tag.
WithoutTag
(
tag
)
PhysicsTraceBuilder
Only return without this tag
WithoutTags
(
tags
)
PhysicsTraceBuilder
Only return without any of these tags
WithTag
(
ident
)
PhysicsTraceBuilder
Only return entities with this tag. Subsequent calls to this will add multiple requirements and they'll all have to be met (ie, the entity will need all tags).
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.