C# Class hyades.physics.SpringBody

Inheritance: Body
Show file Open project: zfedoran/bubblebound

Public Properties

Property Type Description
edge_damping float
edge_k float
is_constrained bool
shape_damping float
shape_k float
spring_list List
spring_pointmass_list List

Public Methods

Method Description
Add ( Spring spring ) : void
ApplyInternalForces ( double elapsed ) : void
SpringBody ( Shape shape, float mass, float edgeSpringK, float edgeSpringDamp, float shapeSpringK, float shapeSpringDamp ) : System

Method Details

Add() public method

public Add ( Spring spring ) : void
spring Spring
return void

ApplyInternalForces() public method

public ApplyInternalForces ( double elapsed ) : void
elapsed double
return void

SpringBody() public method

public SpringBody ( Shape shape, float mass, float edgeSpringK, float edgeSpringDamp, float shapeSpringK, float shapeSpringDamp ) : System
shape Shape
mass float
edgeSpringK float
edgeSpringDamp float
shapeSpringK float
shapeSpringDamp float
return System

Property Details

edge_damping public property

public float edge_damping
return float

edge_k public property

public float edge_k
return float

is_constrained public property

public bool is_constrained
return bool

shape_damping public property

public float shape_damping
return float

shape_k public property

public float shape_k
return float

spring_list public property

public List spring_list
return List

spring_pointmass_list public property

public List spring_pointmass_list
return List