Свойство | Тип | Описание | |
---|---|---|---|
collisionMask | |||
horizontalRayCount | int | ||
minDistanceToEnv | float | ||
skinWidth | float | ||
verticalRayCount | int |
Метод | Описание | |
---|---|---|
CalculateRaySpacing ( ) : void |
Recalculate distance between rays (horizontalRaySpacing & verticalRaySpacing)
|
|
FeetRay ( float rayLength, |
Return RaycastHit2D of Raycasting at bottom center.
|
|
ForeachFeetRay ( float rayLength, Vector3 &velocity, RayItr itr ) : void |
Iterate over all feet/vertical rays
|
|
ForeachHeadRay ( float rayLength, Vector3 &velocity, RayItr itr ) : void |
Iterate over all head/vertical rays
|
|
ForeachLeftRay ( float rayLength, Vector3 &velocity, RayItr itr ) : void |
Iterate over all left/horizontal rays
|
|
ForeachRightRay ( float rayLength, Vector3 &velocity, RayItr itr ) : void |
Iterate over all right/horizontal rays
|
|
LeftFeetRay ( float rayLength, Vector3 velocity ) : |
Return RaycastHit2D of Raycasting at bottom left.
|
|
OnEnable ( ) : void |
Recalculate everything
|
|
Raycast ( Vector2 origin, Vector2 direction, float rayLength, int mask, Color color = null ) : |
Call Physics2D.Raycast and Draw the ray to debug
|
|
RightFeetRay ( float rayLength, Vector3 velocity ) : |
Return RaycastHit2D of Raycasting at bottom right.
|
|
UpdateInnerBounds ( ) : void |
Recalculate shrinked the bounds
|
|
UpdateRaycastOrigins ( ) : void |
Recalculate raycastOrigins
|
|
VerticalRay ( float directionY, int index, float rayLength, Vector3 &velocity, Color c = null ) : |
Return RaycastHit2D of Raycasting at given index
|
public FeetRay ( float rayLength, |
||
rayLength | float | |
mask | ||
Результат |
public ForeachFeetRay ( float rayLength, Vector3 &velocity, RayItr itr ) : void | ||
rayLength | float | |
velocity | Vector3 | |
itr | RayItr | |
Результат | void |
public ForeachHeadRay ( float rayLength, Vector3 &velocity, RayItr itr ) : void | ||
rayLength | float | |
velocity | Vector3 | |
itr | RayItr | |
Результат | void |
public ForeachLeftRay ( float rayLength, Vector3 &velocity, RayItr itr ) : void | ||
rayLength | float | |
velocity | Vector3 | |
itr | RayItr | |
Результат | void |
public ForeachRightRay ( float rayLength, Vector3 &velocity, RayItr itr ) : void | ||
rayLength | float | |
velocity | Vector3 | |
itr | RayItr | |
Результат | void |
public LeftFeetRay ( float rayLength, Vector3 velocity ) : |
||
rayLength | float | |
velocity | Vector3 | |
Результат |
public Raycast ( Vector2 origin, Vector2 direction, float rayLength, int mask, Color color = null ) : |
||
origin | Vector2 | |
direction | Vector2 | |
rayLength | float | |
mask | int | |
color | Color | |
Результат |
public RightFeetRay ( float rayLength, Vector3 velocity ) : |
||
rayLength | float | |
velocity | Vector3 | |
Результат |
public VerticalRay ( float directionY, int index, float rayLength, Vector3 &velocity, Color c = null ) : |
||
directionY | float | |
index | int | |
rayLength | float | |
velocity | Vector3 | |
c | Color | |
Результат |
public LayerMask,UnityEngine collisionMask | ||
Результат |