| Package | org.MARS.dynamics.force |
| Class | public class Friction |
| Inheritance | Friction SimpleForceGenerator |
| Implements | IForceGenerator |
See also
| Property | Defined by | ||
|---|---|---|---|
| coefficient : Number coefficient of friction
| Friction | ||
![]() | _force : Vector
force to apply to element(s)
| SimpleForceGenerator | |
| Method | Defined by | ||
|---|---|---|---|
|
Friction(coefficient:Number = 0.1)
Creates a new frictional force generator
| Friction | ||
|
generate(element:ISimulatable):void
Generates frictional force based on simulatable's velocity and coefficient of friction
| Friction | ||
| coefficient | property |
protected var coefficient:Numbercoefficient of friction
| Friction | () | constructor |
public function Friction(coefficient:Number = 0.1)Creates a new frictional force generator
Parameterscoefficient:Number (default = 0.1) — coefficient of friction
|
| generate | () | method |
public override function generate(element:ISimulatable):voidGenerates frictional force based on simulatable's velocity and coefficient of friction
Parameterselement:ISimulatable — element to apply a force to
|