Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Static Public Member Functions | List of all members
PhysicsUtil Class Reference

Classes

class  SphereHit
 

Static Public Member Functions

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< SphereHitSphereSweepTest (Vector3 start, Vector3 forward, float distance, float sweepInterval, float radius, int layerMask)
 
static List< SphereHitSphereSweepTestWhere (Vector3 start, Vector3 forward, float distance, float sweepInterval, float radius, int layerMask, Func< SphereHit, bool > criteria)
 

Member Function Documentation

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: