| Package | org.generalrelativity.foam.dynamics.force.spring |
| Class | public class RigidBodyBungee |
| Inheritance | RigidBodyBungee RigidBodySpring Spring SimpleForceGenerator |
| Method | Defined by | ||
|---|---|---|---|
|
RigidBodyBungee(body1:IBody, point1:Vector, body2:IBody, point2:Vector, k:Number = 0.01, damp:Number = 0.01)
Creates a new RigidBodyBungee
| RigidBodyBungee | ||
| RigidBodyBungee | |||
![]() |
createDoubleSidedSpring(element1:ISimulatable, element2:ISimulatable, k:Number = 0.01, damp:Number = 0.1):void
[static]
Creates forces for both elements
| Spring | |
|
generate(element:ISimulatable):void
| RigidBodyBungee | ||
![]() | RigidBodySpring | ||
![]() | RigidBodySpring | ||
![]() |
invert():void
Inverts the spring so that the force is applied to element2 instead of 1
| Spring | |
| RigidBodyBungee | () | constructor |
public function RigidBodyBungee(body1:IBody, point1:Vector, body2:IBody, point2:Vector, k:Number = 0.01, damp:Number = 0.01)Creates a new RigidBodyBungee
Parametersbody1:IBody — first body involved in bungee
|
|
point1:Vector — point on body1 given in relative coordinates
|
|
body2:IBody — second body attached to bungee
|
|
point2:Vector — point on body2 given in relative coordinates
|
|
k:Number (default = 0.01) — spring constant
|
|
damp:Number (default = 0.01) — damping coefficient
|
| clone | () | method |
public override function clone(invert:Boolean = true):SpringParameters
invert:Boolean (default = true) |
Spring |
| generate | () | method |