#include <Spring.h>
Inheritance diagram for OpenCAL::Spring:


| Public Member Functions | |
| Spring (PhysicsSystem *parent, PhysicalObject *object1=0, PhysicalObject *object2=0) | |
| const PhysicalObject * | getObject1 () const | 
| PhysicalObject * | getObject1 () | 
| const PhysicalObject * | getObject2 () const | 
| PhysicalObject * | getObject2 () | 
| float | getStiffness () const | 
| float | getDamping () const | 
| float | getRestLength () const | 
| float | getSnapFactor () const | 
| bool | doesSnap () | 
| bool | isConnected () | 
| void | setObject1 (PhysicalObject *object) | 
| void | setObject2 (PhysicalObject *object) | 
| void | setStiffness (float stiffness) | 
| void | setDamping (float damping) | 
| void | setRestLength (float restLength) | 
| void | setSnapFactor (float snapFactor) | 
| void | setNoSnap () | 
| void | initialize () | 
| void | execute (float seconds) | 
| void | render () | 
| void | connect (PhysicalObject *object1, PhysicalObject *object2) | 
| void | calculateRestLength () | 
| Protected Attributes | |
| PhysicalObject * | m_object1 | 
| PhysicalObject * | m_object2 | 
| float | m_stiffness | 
| float | m_damping | 
| float | m_restLength | 
| float | m_snapFactor | 
Definition at line 26 of file Spring.h.
| 
 | 
| 
 
 
 < 
 
 Reimplemented from OpenCAL::Actor. Definition at line 63 of file Spring.cpp. References OpenCAL::Physical::addForce(), OpenCAL::Utils::Vector3::dotProduct(), OpenCAL::Object::getPosition(), OpenCAL::Physical::getVelocity(), OpenCAL::Utils::Vector3::length(), and OpenCAL::Utils::Vector3::normalized(). Here is the call graph for this function:  | 
 1.3.8
 1.3.8