C# 클래스 LostPolygon.DynamicWaterSystem.ColliderTools

A collection of functions that work with colliders.
파일 보기 프로젝트 열기: caffeinatedguy/Limbs 1 사용 예제들

공개 메소드들

메소드 설명
IsPointAtColliderEdge ( Collider collider, Vector3 point, float tolerance ) : bool

Checks if point is at most tolerance away from the collider edge.

IsPointInsideCollider ( Collider collider, Vector3 point, ColliderSpecificTestEnum specificTest = ColliderSpecificTestEnum.None ) : bool

Checks whether the point is inside a collider.

This method can check against all types of colliders, including TerrainCollider and concave MeshCollider.

IsPointInsideMeshCollider ( Collider collider, Vector3 point ) : bool

Checks whether the point is inside a MeshCollider.

메소드 상세

IsPointAtColliderEdge() 공개 정적인 메소드

Checks if point is at most tolerance away from the collider edge.
public static IsPointAtColliderEdge ( Collider collider, Vector3 point, float tolerance ) : bool
collider UnityEngine.Collider /// The collider to check against. ///
point UnityEngine.Vector3 /// Point being checked. ///
tolerance float /// Maximal distance ///
리턴 bool

IsPointInsideCollider() 공개 정적인 메소드

Checks whether the point is inside a collider.
This method can check against all types of colliders, including TerrainCollider and concave MeshCollider.
public static IsPointInsideCollider ( Collider collider, Vector3 point, ColliderSpecificTestEnum specificTest = ColliderSpecificTestEnum.None ) : bool
collider UnityEngine.Collider /// The collider to check against. ///
point UnityEngine.Vector3 /// The point being checked. ///
specificTest ColliderSpecificTestEnum /// Defines a kind of specific collision test that must be done against . ///
리턴 bool

IsPointInsideMeshCollider() 공개 정적인 메소드

Checks whether the point is inside a MeshCollider.
public static IsPointInsideMeshCollider ( Collider collider, Vector3 point ) : bool
collider UnityEngine.Collider /// Collider to check against. ///
point UnityEngine.Vector3 /// Point being checked. ///
리턴 bool