|
|
| DrawableParticle (Vector2 position, float mass, Vector2 size, Color color) |
|
| DrawableParticle (Vector2 position, float mass, Color color) |
|
| DrawableParticle (Vector2 position, float mass, bool isPinned, Color color) |
|
void | Draw (SpriteBatch spriteBatch, PrimitiveBatch primitiveBatch) |
| Public Member Functions inherited from PhysicsCSAlevlProject.Particle |
|
| Particle (Vector2 position, float mass, bool isPinned) |
|
|
Color | Color [get, set] |
| | the colour of the particle
|
|
Vector2 | Size [get, set] |
| | the size of the particle to be used in drawing
|
|
|
PrimitiveBatch.Rectangle | rectangle |
| | the rectangle used for drawing the particle, which is updated based on the particle's position and size. The rectangle is drawn in the Draw method, and its position is centered around the particle's position to ensure accurate rendering of the particle on the screen.
|
|
| Public Attributes inherited from PhysicsCSAlevlProject.Particle |
|
Vector2 | Position |
| | the position of the particle
|
|
Vector2 | PreviousPosition |
| | the previous position of the particle
|
|
float | Mass |
| | the mass of the particle
|
|
Vector2 | AccumulatedForce |
| | the accumalated force due to hooks law
|
|
int | ID |
| | the ID of the particle
|
|
float | TotalForceMagnitude |
| | magnitude of of the total force applied to the particle
|
|
bool | IsPinned |
| | toggle for if th eparticle is pinned used to determine if the particle should be affected by physics or not
|
|
bool | IsSelected |
| | toggle for if the particle is selected used for the UI to determine if the particle should be drawn with a selection highlight and to allow the particle to be dragged with the mouse when selected
|
The documentation for this class was generated from the following file:
- PhysicsCSAlevlProject/Objects.Particles.cs