Your search for "Linecast" resulted in 22 matches:

Physics2D.Linecast

Casts a line segment against Colliders in the Scene.

Physics.Linecast

Returns true if there is any collider intersecting the line between start and end.

PhysicsScene2D.Linecast

Casts a line segment against colliders in the PhysicsScene2D, returning the first intersection only.

Physics2D.LinecastAll

Casts a line against Colliders in the Scene.

Physics2D.queriesStartInColliders

Set the raycasts or linecasts that start inside Colliders to detect or not detect those Colliders.

ContactFilter2D

A set of parameters for filtering contact results. Define the angle by referring to their position in world space, where 0 degr...

Physics2D.Raycast

Casts a ray against Colliders in the Scene.

Physics2D.RaycastAll

Casts a ray against Colliders in the Scene, returning all Colliders that contact with it.

Physics2D.raycastsStartInColliders

Do ray/line casts that start inside a Collider(s) detect those Collider(s)?

RaycastHit

Structure used to get information back from a raycast.

RaycastHit.articulationBody

The ArticulationBody of the collider that was hit. If the collider is not attached to an articulation body then it is null.

RaycastHit.collider

The Collider that was hit.

RaycastHit.distance

The distance from the ray's origin to the impact point.

RaycastHit.normal

The normal of the surface the ray hit.

RaycastHit.point

The impact point in world space where the ray hit the collider.

RaycastHit.rigidbody

The Rigidbody of the collider that was hit. If the collider is not attached to a rigidbody then it is null.

RaycastHit.textureCoord

The uv texture coordinate at the collision location.

RaycastHit.transform

The Transform of the rigidbody or collider that was hit.

RaycastHit.triangleIndex

The index of the triangle that was hit.

RaycastHit2D

Returns information about 2D Colliders detected by a 2D physics query in the scene.

RaycastHit2D.centroid

The world space centroid (center) of the physics query shape when it intersects.

RaycastHit2D.distance

The distance the physics query traversed before it detected a Collider2D.


Did you find this page useful? Please give it a rating: