프로퍼티 | 타입 | 설명 | |
---|---|---|---|
collisionTexture | Texture2D | ||
shape | Shape |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | bool |
public MS2DCollidable ( Rectangle boundingRectangle, Shape shape, SpriteBatch spriteBatch, Game game ) : System | ||
boundingRectangle | Rectangle | |
shape | Shape | |
spriteBatch | SpriteBatch | |
game | Game | |
리턴 | System |
public MS2DCollidable ( Vector2 position, Vector2 size, Shape shape, SpriteBatch spriteBatch, Game game ) : System | ||
position | Vector2 | |
size | Vector2 | |
shape | Shape | |
spriteBatch | SpriteBatch | |
game | Game | |
리턴 | System |