Shkyera Engine
Easy to use, game engine for Python
shkyera.lib.physics.Rope Class Reference

Classes

class  Particle
 

Public Member Functions

def __init__ (self, origin, alpha, length, n_particles)
 
def step (self)
 
def addParticle (self, x, y, fixed)
 
def draw (self)
 
def setTimestep (self, timestep)
 
def setConstraintIterations (self, iterations)
 
def setSegmentLength (self, length)
 
def getTimestep (self)
 
def getConstraintIterations (self)
 
def getSegmentLength (self)
 
def getParticles (self)
 
def verletIntegration (self)
 
def enforceConstraintsJakobsen (self)
 
def calculateDesiredDistance (self)
 

Public Attributes

 origin
 
 fixPoint
 
 endPoint
 

Private Attributes

 _particles
 
 _timestep
 
 _constraintsIterations
 
 _gravity
 
 _desiredDistance
 

Constructor & Destructor Documentation

◆ __init__()

def shkyera.lib.physics.Rope.__init__ (   self,
  origin,
  alpha,
  length,
  n_particles 
)

Member Function Documentation

◆ addParticle()

def shkyera.lib.physics.Rope.addParticle (   self,
  x,
  y,
  fixed 
)

◆ calculateDesiredDistance()

def shkyera.lib.physics.Rope.calculateDesiredDistance (   self)

◆ draw()

def shkyera.lib.physics.Rope.draw (   self)

◆ enforceConstraintsJakobsen()

def shkyera.lib.physics.Rope.enforceConstraintsJakobsen (   self)

◆ getConstraintIterations()

def shkyera.lib.physics.Rope.getConstraintIterations (   self)

◆ getParticles()

def shkyera.lib.physics.Rope.getParticles (   self)

◆ getSegmentLength()

def shkyera.lib.physics.Rope.getSegmentLength (   self)

◆ getTimestep()

def shkyera.lib.physics.Rope.getTimestep (   self)

◆ setConstraintIterations()

def shkyera.lib.physics.Rope.setConstraintIterations (   self,
  iterations 
)

◆ setSegmentLength()

def shkyera.lib.physics.Rope.setSegmentLength (   self,
  length 
)

◆ setTimestep()

def shkyera.lib.physics.Rope.setTimestep (   self,
  timestep 
)

◆ step()

def shkyera.lib.physics.Rope.step (   self)

◆ verletIntegration()

def shkyera.lib.physics.Rope.verletIntegration (   self)

Member Data Documentation

◆ _constraintsIterations

shkyera.lib.physics.Rope._constraintsIterations
private

◆ _desiredDistance

shkyera.lib.physics.Rope._desiredDistance
private

◆ _gravity

shkyera.lib.physics.Rope._gravity
private

◆ _particles

shkyera.lib.physics.Rope._particles
private

◆ _timestep

shkyera.lib.physics.Rope._timestep
private

◆ endPoint

shkyera.lib.physics.Rope.endPoint

◆ fixPoint

shkyera.lib.physics.Rope.fixPoint

◆ origin

shkyera.lib.physics.Rope.origin

The documentation for this class was generated from the following file: