Interface IQueryResult
Interface for query results.
Namespace: Unity.Physics
Assembly: solution.dll
Syntax
public interface IQueryResult
Properties
Name | Description |
---|---|
ColliderKey | ColliderKey of the hit leaf collider. |
Entity | Entity of the hit body. |
Fraction | For casts this is fraction of the query at which the hit occurred. For distance queries, this is a distance from the query object. |
Material | Material of the hit leaf collider. |
RigidBodyIndex | Index of the hit body in the CollisionWorld's rigid body array. |