Property | Type | Description | |
---|---|---|---|
collisionTexture | Texture2D | ||
shape | Shape |
Method | Description | |
---|---|---|
CollidesWith ( |
Check if this MS2DCollidable collides with another MS2DCollidable.
|
|
EnclosesPoint ( Point p ) : bool |
Check whether Point p is within the bounds of this MS2DCollidable
|
|
MS2DCollidable ( Rectangle boundingRectangle, Shape shape, SpriteBatch spriteBatch, Game game ) : System | ||
MS2DCollidable ( Vector2 position, Vector2 size, Shape shape, SpriteBatch spriteBatch, Game game ) : System |
public CollidesWith ( |
||
other | the other MS2DCollidable | |
return | bool |
public EnclosesPoint ( Point p ) : bool | ||
p | Point | the Point to check |
return | bool |
public MS2DCollidable ( Rectangle boundingRectangle, Shape shape, SpriteBatch spriteBatch, Game game ) : System | ||
boundingRectangle | Rectangle | |
shape | Shape | |
spriteBatch | SpriteBatch | |
game | Game | |
return | System |
public MS2DCollidable ( Vector2 position, Vector2 size, Shape shape, SpriteBatch spriteBatch, Game game ) : System | ||
position | Vector2 | |
size | Vector2 | |
shape | Shape | |
spriteBatch | SpriteBatch | |
game | Game | |
return | System |