C# Class TestBed.ElasticBody

Inheritance: Test
Exibir arquivo Open project: colgreen/box2dx

Public Methods

Method Description
Create ( ) : Test

Default constructor

ElasticBody ( ) : System
Step ( Settings settings ) : void

Apply dynamic forces (springs) and check elevator state

Private Methods

Method Description
AddSpringForce ( Body bA, Vec2 localA, Body bB, Vec2 localB, float k, float friction, float desiredDist ) : void

Add a spring force

Method Details

Create() public static method

Default constructor
public static Create ( ) : Test
return Test

ElasticBody() public method

public ElasticBody ( ) : System
return System

Step() public method

Apply dynamic forces (springs) and check elevator state
public Step ( Settings settings ) : void
settings Settings
return void