Public Member Functions | Private Member Functions | Private Attributes | List of all members
b2Rope Class Reference

#include <b2Rope.h>

Public Member Functions

 b2Rope ()
 
void Draw (b2Draw *draw) const
 
int32 GetVertexCount () const
 
const b2Vec2GetVertices () const
 
void Initialize (const b2RopeDef *def)
 
void SetAngle (float32 angle)
 
void Step (float32 timeStep, int32 iterations)
 
 ~b2Rope ()
 

Private Member Functions

void SolveC2 ()
 
void SolveC3 ()
 

Private Attributes

float32m_as
 
int32 m_count
 
float32 m_damping
 
b2Vec2 m_gravity
 
float32m_ims
 
float32 m_k2
 
float32 m_k3
 
float32m_Ls
 
b2Vec2m_p0s
 
b2Vec2m_ps
 
b2Vec2m_vs
 

Detailed Description

Definition at line 63 of file b2Rope.h.

Constructor & Destructor Documentation

b2Rope::b2Rope ( )

Definition at line 22 of file b2Rope.cpp.

b2Rope::~b2Rope ( )

Definition at line 36 of file b2Rope.cpp.

Member Function Documentation

void b2Rope::Draw ( b2Draw draw) const

Definition at line 251 of file b2Rope.cpp.

int32 b2Rope::GetVertexCount ( ) const
inline

Definition at line 76 of file b2Rope.h.

const b2Vec2* b2Rope::GetVertices ( ) const
inline

Definition at line 82 of file b2Rope.h.

void b2Rope::Initialize ( const b2RopeDef def)

Definition at line 46 of file b2Rope.cpp.

void b2Rope::SetAngle ( float32  angle)

Definition at line 171 of file b2Rope.cpp.

void b2Rope::SolveC2 ( )
private

Definition at line 140 of file b2Rope.cpp.

void b2Rope::SolveC3 ( )
private

Definition at line 180 of file b2Rope.cpp.

void b2Rope::Step ( float32  timeStep,
int32  iterations 
)

Definition at line 105 of file b2Rope.cpp.

Member Data Documentation

float32* b2Rope::m_as
private

Definition at line 106 of file b2Rope.h.

int32 b2Rope::m_count
private

Definition at line 98 of file b2Rope.h.

float32 b2Rope::m_damping
private

Definition at line 109 of file b2Rope.h.

b2Vec2 b2Rope::m_gravity
private

Definition at line 108 of file b2Rope.h.

float32* b2Rope::m_ims
private

Definition at line 103 of file b2Rope.h.

float32 b2Rope::m_k2
private

Definition at line 111 of file b2Rope.h.

float32 b2Rope::m_k3
private

Definition at line 112 of file b2Rope.h.

float32* b2Rope::m_Ls
private

Definition at line 105 of file b2Rope.h.

b2Vec2* b2Rope::m_p0s
private

Definition at line 100 of file b2Rope.h.

b2Vec2* b2Rope::m_ps
private

Definition at line 99 of file b2Rope.h.

b2Vec2* b2Rope::m_vs
private

Definition at line 101 of file b2Rope.h.


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


mvsim
Author(s):
autogenerated on Thu Jun 6 2019 19:36:41