Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

PhysicsQuery

struct in UnityEngine.LowLevelPhysics2D

/

Implemented in:UnityEngine.Physics2DModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Various physics queries.

Static Methods

Method Description
CapsuleAndCapsule Check the intersection between Capsule and Capsule geometries.
CapsuleAndCircle Check the intersection between Capsule and Circle geometries.
CastShapes Cast two shape proxies against each other. Initially touching shapes are treated as a miss. You should check for overlap first if initial overlap is required.
ChainSegmentAndCapsule Check the intersection between ChainSegment and Capsule geometries.
ChainSegmentAndCircle Check the intersection between ChainSegment and Circle geometries.
ChainSegmentAndPolygon Check the intersection between ChainSegment and Polygon geometries.
CircleAndCircle Check the intersection between Circle and Circle geometries.
PolygonAndCapsule Check the intersection between Polygon and Capsule geometries.
PolygonAndCircle Check the intersection between Polyon and Circle geometries.
PolygonAndPolygon Check the intersection between Polygon and Polygon geometries.
SegmentAndCapsule Check the intersection between Segment and Capsule geometries.
SegmentAndCircle Check the intersection between Segment and Circle geometries.
SegmentAndPolygon Check the intersection between Segment and Polygon geometries.
SegmentDistance Calculate the distance and closest points between two segments.
ShapeDistance Calculate the distance and closest points between two shape proxies.
ShapeTimeOfImpact Calculate the upper bound on time before two shape proxies penetrate i.e. the time-of-impact. Time is represented as a fraction in the range [0, maxInterval]. This uses a swept separating axis and may miss some intermediate, non-tunneling collisions.