|
Verlet Intergration Soft Body
|
Represents a line shape defined by a start position, an end position, a color, and a width. The line can be drawn using the Draw method, which calculates the angle and length of the line to properly render it using the white pixel texture. The ConstrainToSide method is used to constrain a point to one side of the line, which can be useful for collision detection or ensuring that particles do not cross the line. More...
Public Member Functions | |
| Line (Vector2 start, Vector2 end, Color color, float width) | |
| Line (Vector2 start, float angle, float distance, Color color, float width) | |
| override void | Draw (SpriteBatch spriteBatch, PrimitiveBatch primitiveBatch) |
| Public Member Functions inherited from VectorGraphics.PrimitiveBatch.Shape | |
| Shape (Vector2 position, Color color, bool filled=true) | |
| void | Draw (SpriteBatch spriteBatch, PrimitiveBatch primitiveBatch) |
Public Attributes | |
| Vector2 | end |
| float | width |
| Public Attributes inherited from VectorGraphics.PrimitiveBatch.Shape | |
| Vector2 | position |
| Color | color |
| bool | filled |
Represents a line shape defined by a start position, an end position, a color, and a width. The line can be drawn using the Draw method, which calculates the angle and length of the line to properly render it using the white pixel texture. The ConstrainToSide method is used to constrain a point to one side of the line, which can be useful for collision detection or ensuring that particles do not cross the line.