Method | Description | |
---|---|---|
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 | |
return | 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 | |
return |
public static DistanceBetween ( Vector2 firstVector, Vector2 secondVector ) : float | ||
firstVector | Vector2 | |
secondVector | Vector2 | |
return | float |
public static LevelBounce ( |
||
EntityCollisionBox | ||
LevelCollisionBox | ||
Bounciness | float | |
return | Vector2 |
public static MoveBackOnScreen ( |
||
EntityCollisionBox | ||
ScreenCollisionBox | ||
return | Vector2 |
public static OriginFromTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Vector2 | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | The texture to find the origin of. |
return | Vector2 |
public static UpdateCollisionBox ( |
||
collisionBox | ||
position | Vector2 | |
origin | Vector2 | |
scale | float | |
return |
public static WallBounce ( |
||
EntityCollisionBox | ||
WallCollisionBox | ||
Bounciness | float | |
return | Vector2 |