Verlet Intergration Soft Body
Loading...
Searching...
No Matches
PhysicsCSAlevlProject.DrawableStick Class Reference
Inheritance diagram for PhysicsCSAlevlProject.DrawableStick:
PhysicsCSAlevlProject.Stick PhysicsCSAlevlProject.Mesh.MeshStick

Public Member Functions

 DrawableStick (Particle p1, Particle p2, Color color, float width=2.0f)
 DrawableStick (Particle p1, Particle p2, Color color)
void Draw (SpriteBatch spriteBatch, PrimitiveBatch primitiveBatch, float stickDrawThickness=-1)
Public Member Functions inherited from PhysicsCSAlevlProject.Stick
 Stick (Particle p1, Particle p2)

Properties

Color Color [get, set]
float Width [get, set]
bool IsCut [get, set]

Private Member Functions

void UpdateLine ()

Private Attributes

PrimitiveBatch.Line line
 the line object used for drawing the stick, which is created based on the positions of the two particles

Additional Inherited Members

Public Attributes inherited from PhysicsCSAlevlProject.Stick
Particle P1
 the inital particle the stick is connected to
Particle P2
 the final particle the stick is connected to
float Length
 the natural length of the stick, which is the distance between the two particles when the stick is at rest

The documentation for this class was generated from the following file:
  • PhysicsCSAlevlProject/Objects.Sticks.cs