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