Свойство | Тип | Описание | |
---|---|---|---|
gravity | |||
raycastsHitTriggers | bool | ||
raycastsStartInColliders | bool | ||
spatialHashCellSize | int |
Метод | Описание | |
---|---|---|
addCollider ( |
adds the collider to the physics system
|
|
boxcastBroadphase ( RectangleF rect, int layerMask = allLayers ) : IEnumerable |
returns all colliders with bounds that are intersected by collider.bounds. Note that this is a broadphase check so it only checks bounds and does not do individual Collider-to-Collider checks!
|
|
boxcastBroadphaseExcludingSelf ( |
returns all colliders that are intersected by bounds excluding the passed-in collider (self). this method is useful if you want to create the swept bounds on your own for other queries
|
|
boxcastBroadphaseExcludingSelf ( |
returns all colliders that are intersected by collider.bounds expanded to incorporate deltaX/deltaY excluding the passed-in collider (self)
|
|
boxcastBroadphaseExcludingSelf ( |
returns all colliders with bounds that are intersected by collider.bounds excluding the passed-in collider (self)
|
|
clear ( ) : void |
removes all colliders from the SpatialHash
|
|
getAllColliders ( ) : IEnumerable |
gets all the Colliders managed by the SpatialHash
|
|
linecast ( |
casts a line from start to end and returns the first hit of a collider that matches layerMask
|
|
linecastAll ( |
casts a line through the spatial hash and fills the hits array up with any colliders that the line hits
|
|
overlapCircle ( |
check if any collider falls within a circular area. Returns the first Collider encountered.
|
|
overlapCircleAll ( |
gets all the colliders that fall within the specified circle
|
|
overlapRectangle ( RectangleF rect, int layerMask = allLayers ) : |
check if any collider falls within a rectangular area
|
|
overlapRectangleAll ( RectangleF &rect, |
gets all the colliders that fall within the specified rect
|
|
removeCollider ( |
removes the collider from the physics system
|
|
reset ( ) : void | ||
updateCollider ( |
updates the colliders position in the physics system. This essentially just removes then re-adds the Collider with its new bounds
|
Метод | Описание | |
---|---|---|
debugDraw ( float secondsToDisplay ) : void |
debug draws the contents of the spatial hash. Note that Core.debugRenderEnabled must be true or nothing will be displayed.
|
public static addCollider ( |
||
collider | Collider. | |
Результат | void |
public static boxcastBroadphase ( RectangleF rect, int layerMask = allLayers ) : IEnumerable |
||
rect | RectangleF | |
layerMask | int | Layer mask. |
Результат | IEnumerable |
public static boxcastBroadphaseExcludingSelf ( |
||
collider | Collider. | |
rect | RectangleF | |
layerMask | int | |
Результат | IEnumerable |
public static boxcastBroadphaseExcludingSelf ( |
||
collider | Collider. | |
deltaX | float | |
deltaY | float | |
layerMask | int | |
Результат | IEnumerable |
public static boxcastBroadphaseExcludingSelf ( |
||
collider | Collider. | |
layerMask | int | |
Результат | IEnumerable |
public static getAllColliders ( ) : IEnumerable |
||
Результат | IEnumerable |
public static linecast ( |
||
start | Start. | |
end | End. | |
layerMask | int | Layer mask. |
Результат |
public static linecastAll ( |
||
start | Start. | |
end | End. | |
hits | Hits. | |
layerMask | int | Layer mask. |
Результат | int |
public static overlapCircle ( |
||
center | Center. | |
radius | float | Radius. |
layerMask | int | Layer mask. |
Результат |
public static overlapCircleAll ( |
||
center | Center. | |
radius | float | Radius. |
results | Results. | |
layerMask | int | Layer mask. |
Результат | int |
public static overlapRectangle ( RectangleF rect, int layerMask = allLayers ) : |
||
rect | RectangleF | Rect. |
layerMask | int | Layer mask. |
Результат |
public static overlapRectangleAll ( RectangleF &rect, |
||
rect | RectangleF | Rect. |
results | Results. | |
layerMask | int | Layer mask. |
Результат | int |
public static removeCollider ( |
||
collider | Collider. | |
Результат | void |
public static updateCollider ( |
||
collider | Collider. | |
Результат | void |
public static Vector2,Microsoft.Xna.Framework gravity | ||
Результат |
public static bool raycastsHitTriggers | ||
Результат | bool |
public static bool raycastsStartInColliders | ||
Результат | bool |