Метод | Описание | |
---|---|---|
AngleBetween ( Vector2 firstVector, Vector2 secondVector ) : float | ||
CollisionBoxFromTexture ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 origin, float scale ) : |
||
DistanceBetween ( Vector2 firstVector, Vector2 secondVector ) : float | ||
LevelBounce ( |
||
MoveBackOnScreen ( |
||
OriginFromTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Vector2 |
Returns a vector at the center of the given texture.
|
|
UpdateCollisionBox ( |
||
WallBounce ( |
public static AngleBetween ( Vector2 firstVector, Vector2 secondVector ) : float | ||
firstVector | Vector2 | |
secondVector | Vector2 | |
Результат | float |
public static CollisionBoxFromTexture ( Vector2 position, Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 origin, float scale ) : |
||
position | Vector2 | |
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
origin | Vector2 | |
scale | float | |
Результат |
public static DistanceBetween ( Vector2 firstVector, Vector2 secondVector ) : float | ||
firstVector | Vector2 | |
secondVector | Vector2 | |
Результат | float |
public static LevelBounce ( |
||
EntityCollisionBox | ||
LevelCollisionBox | ||
Bounciness | float | |
Результат | Vector2 |
public static MoveBackOnScreen ( |
||
EntityCollisionBox | ||
ScreenCollisionBox | ||
Результат | Vector2 |
public static OriginFromTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Vector2 | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | The texture to find the origin of. |
Результат | Vector2 |
public static UpdateCollisionBox ( |
||
collisionBox | ||
position | Vector2 | |
origin | Vector2 | |
scale | float | |
Результат |
public static WallBounce ( |
||
EntityCollisionBox | ||
WallCollisionBox | ||
Bounciness | float | |
Результат | Vector2 |