s&
info
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
explore
Discover Games
category
Workshop
sports_esports
Games
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
menu_book
Learn
docs
Documentation
api
Api Reference
school
Tutorials
manage_search
Code Search
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
Components
Collider
ComputePenetration
chevron_left
Components
class
Collider
Constructors
lock
Collider
Fields
lock
_keyframeBody
Properties
data_object
ColliderFlags
data_object
Elasticity
data_object
Friction
data_object
IsConcave
data_object
IsDynamic
data_object
IsTrigger
data_object
Joints
remove_circle
KeyframeBody
data_object
LocalBounds
data_object
OnObjectTriggerEnter
data_object
OnObjectTriggerExit
data_object
OnTriggerEnter
data_object
OnTriggerExit
data_object
Rigidbody
data_object
RollingResistance
data_object
Static
data_object
Surface
data_object
SurfaceVelocity
data_object
Touching
Methods
lock
CalculateLocalBounds
functions
ComputePenetration
lock
ConfigureShapes
remove_circle
CreatePhysicsShapes
functions
FindClosestPoint
functions
GetVelocityAtPoint
functions
GetWorldBounds
remove_circle
OnPhysicsChanged
lock
Rebuild
lock
RebuildImmediately
ComputePenetration
Finds the smallest move needed to separate this collider from another, ignoring all collision rules. Returns true if they're overlapping; moving this collider by <paramref name="direction" /> * <paramref name="distance" /> pushes it clear.
method
bool
ComputePenetration
(
Collider
other
,
out
Vector3
direction
,
out
float
distance
)
Parameters
Name
Type
Description
other
Collider
out
direction
Vector3
out
distance
float
Returns
Type
Description
bool
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.