s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
jams
Workshop
Steam
open_in_new
Steam Workshop
Assets
view_in_ar
Models
texture
Materials
apparel
Clothing
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
SceneVolume
GetEdgeDistance
chevron_left
Classes
struct
SceneVolume
Constructors
functions
SceneVolume
Fields
crop_din
Box
crop_din
Capsule
crop_din
Sphere
crop_din
Type
Properties
data_object
Center
Methods
functions
DrawGizmos
functions
GetBounds
functions
GetEdgeDistance
functions
GetVolume
functions
Test
GetEdgeDistance
Calculates the shortest distance from the specified world position to the edge of this volume.
method
float
GetEdgeDistance
(
in
Transform
worldTransform
,
in
Vector3
worldPosition
)
Parameters
Name
Type
Description
in
worldTransform
Transform
The world transform of the volume.
in
worldPosition
Vector3
The position in world space to measure from.
Returns
Type
Description
float
The distance, in world units, from the position to the volume edge.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.