|
static RaycastHit[] | CapsuleCastAllIgnoreSelf (Vector3 p1, Vector3 p2, float capsuleRadius, Vector3 direction, float distance, int layerMask, Transform transform) |
| Performs a CapsuleCastAll, excludes any colliders that are in the hierarchy of the transform, and returns the hitInfos sorted by distance. More...
|
|
static RaycastHit[] | RaycastAllIgnoreSelf (Vector3 origin, Vector3 direction, float distance, int layerMask, Transform transform) |
| Performs a RayCastAll, excludes any colliders that are in the hierarchy of the transform, and returns the hitInfos sorted by distance. More...
|
|
static RaycastHit[] | SphereCastAllIgnoreSelf (Vector3 p1, float radius, Vector3 direction, float distance, int layerMask, Transform transform) |
| Performs a SphereCastAll, excludes any colliders that are in the hierarchy of the transform, and returns the hitInfos sorted by distance. More...
|
|
static List< SphereHit > | SphereSweepTest (Vector3 start, Vector3 forward, float distance, float sweepInterval, float radius, int layerMask) |
|
static List< SphereHit > | SphereSweepTestWhere (Vector3 start, Vector3 forward, float distance, float sweepInterval, float radius, int layerMask, Func< SphereHit, bool > criteria) |
|
static RaycastHit [] PhysicsUtil.CapsuleCastAllIgnoreSelf |
( |
Vector3 |
p1, |
|
|
Vector3 |
p2, |
|
|
float |
capsuleRadius, |
|
|
Vector3 |
direction, |
|
|
float |
distance, |
|
|
int |
layerMask, |
|
|
Transform |
transform |
|
) |
| |
|
inlinestatic |
Performs a CapsuleCastAll, excludes any colliders that are in the hierarchy of the transform, and returns the hitInfos sorted by distance.
< remove colliders that are ours
< sort by distance
static RaycastHit [] PhysicsUtil.RaycastAllIgnoreSelf |
( |
Vector3 |
origin, |
|
|
Vector3 |
direction, |
|
|
float |
distance, |
|
|
int |
layerMask, |
|
|
Transform |
transform |
|
) |
| |
|
inlinestatic |
Performs a RayCastAll, excludes any colliders that are in the hierarchy of the transform, and returns the hitInfos sorted by distance.
< remove colliders that are ours
< sort by distance
static RaycastHit [] PhysicsUtil.SphereCastAllIgnoreSelf |
( |
Vector3 |
p1, |
|
|
float |
radius, |
|
|
Vector3 |
direction, |
|
|
float |
distance, |
|
|
int |
layerMask, |
|
|
Transform |
transform |
|
) |
| |
|
inlinestatic |
Performs a SphereCastAll, excludes any colliders that are in the hierarchy of the transform, and returns the hitInfos sorted by distance.
< remove colliders that are ours
< sort by distance
static List<SphereHit> PhysicsUtil.SphereSweepTest |
( |
Vector3 |
start, |
|
|
Vector3 |
forward, |
|
|
float |
distance, |
|
|
float |
sweepInterval, |
|
|
float |
radius, |
|
|
int |
layerMask |
|
) |
| |
|
inlinestatic |
static List<SphereHit> PhysicsUtil.SphereSweepTestWhere |
( |
Vector3 |
start, |
|
|
Vector3 |
forward, |
|
|
float |
distance, |
|
|
float |
sweepInterval, |
|
|
float |
radius, |
|
|
int |
layerMask, |
|
|
Func< SphereHit, bool > |
criteria |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file:
- KSP/Assets/Scripts/Util Scripts/KSPUtil/Utility Classes/PhysicsUtil.cs