| Godot Nature of Code
    1.2.0
    Nature of Code implemented in Godot Engine | 
Generic force-driven object. More...
 
  
| Public Types | |
| enum class | WrapModeEnum { Wrap , Bounce , None } | 
| Wrapping mode enum.  More... | |
| Public Member Functions | |
| SimpleMover () | |
| Create a simple wrapping mover with a circle mesh.  More... | |
| SimpleMover (WrapModeEnum wrapMode) | |
| Create a simple mover with a custom wrap mode and a circle mesh.  More... | |
| virtual void | ApplyForce (Vector2 force) | 
| Apply force on mover.  More... | |
| virtual void | ApplyAngularForce (float force) | 
| Apply angular force on mover.  More... | |
| virtual void | ApplyFriction (float coef) | 
| Apply friction on mover.  More... | |
| virtual void | ApplyAngularFriction (float coef) | 
| Apply angular friction on mover.  More... | |
| virtual void | ApplyDrag (float coef) | 
| Apply drag on mover.  More... | |
| virtual void | ApplyDamping (float coef) | 
| Apply damping on mover.  More... | |
| Public Attributes | |
| Vector2 | Velocity = Vector2.Zero | 
| Current velocity  More... | |
| Vector2 | Acceleration = Vector2.Zero | 
| Current acceleration  More... | |
| float | AngularVelocity | 
| Current angular velocity  More... | |
| float | AngularAcceleration | 
| Current angular acceleration  More... | |
| float | MaxVelocity = 10 | 
| Max velocity  More... | |
| float | MaxAngularVelocity = 0.1f | 
| Max angular velocity  More... | |
| float | Mass = 1 | 
| Mass  More... | |
| WrapModeEnum | WrapMode | 
| Wrapping mode  More... | |
| bool | DisableForces | 
| Disable forces  More... | |
| bool | SyncRotationOnVelocity | 
| Synchronize rotation on velocity  More... | |
| SimpleMesh | Mesh | 
| Mesh  More... | |
| Protected Member Functions | |
| virtual void | UpdateAcceleration () | 
| Update acceleration value.  More... | |
| Protected Attributes | |
| CollisionShape2D | collisionShape2D | 
| Collision shape  More... | |
| Properties | |
| bool | Drawing  [get, set] | 
| Draw mesh  More... | |
| Vector2 | MeshSize  [get, set] | 
| Mesh size  More... | |
| float | Radius  [get, set] | 
| Mesh radius  More... | |
Generic force-driven object.
Definition at line 9 of file SimpleMover.cs.
| 
 | strong | 
Wrapping mode enum.
| Enumerator | |
|---|---|
| Wrap | Wrap on edges | 
| Bounce | Bounce on edges | 
| None | No edge limit | 
Definition at line 14 of file SimpleMover.cs.
| 
 | inline | 
| 
 | inline | 
Create a simple mover with a custom wrap mode and a circle mesh.
| wrapMode | Wrap mode | 
Definition at line 101 of file SimpleMover.cs.
| 
 | inlinevirtual | 
Apply angular force on mover.
| force | Force angle in radians | 
Definition at line 123 of file SimpleMover.cs.
| 
 | inlinevirtual | 
Apply angular friction on mover.
| coef | Friction coefficient | 
Definition at line 142 of file SimpleMover.cs.
| 
 | inlinevirtual | 
Apply damping on mover.
| coef | Damping coefficient | 
Definition at line 164 of file SimpleMover.cs.
| 
 | inlinevirtual | 
Apply drag on mover.
| coef | Drag coefficient | 
Definition at line 151 of file SimpleMover.cs.
| 
 | inlinevirtual | 
Apply force on mover.
| force | Force vector | 
Definition at line 114 of file SimpleMover.cs.
| 
 | inlinevirtual | 
Apply friction on mover.
| coef | Friction coefficient | 
Definition at line 132 of file SimpleMover.cs.
| 
 | inlineprotectedvirtual | 
Update acceleration value.
Reimplemented in Particles.SimpleFallingParticle, Forces.ConstantAccelerationMover, Agents.SimpleVehicle, Ecosystem.Ecosystem.HoppingBunny, Ecosystem.Ecosystem.SwimmingFish, Ecosystem.Ecosystem.NervousButterfly, Ecosystem.Ecosystem.NervousFly, and Ecosystem.Ecosystem.AttractedFly.
Definition at line 172 of file SimpleMover.cs.
| Vector2 Forces.SimpleMover.Acceleration = Vector2.Zero | 
Current acceleration
Definition at line 30 of file SimpleMover.cs.
| float Forces.SimpleMover.AngularAcceleration | 
Current angular acceleration
Definition at line 36 of file SimpleMover.cs.
| float Forces.SimpleMover.AngularVelocity | 
Current angular velocity
Definition at line 33 of file SimpleMover.cs.
| 
 | protected | 
Collision shape
Definition at line 90 of file SimpleMover.cs.
| bool Forces.SimpleMover.DisableForces | 
Disable forces
Definition at line 51 of file SimpleMover.cs.
| float Forces.SimpleMover.Mass = 1 | 
Mass
Definition at line 45 of file SimpleMover.cs.
| float Forces.SimpleMover.MaxAngularVelocity = 0.1f | 
Max angular velocity
Definition at line 42 of file SimpleMover.cs.
| float Forces.SimpleMover.MaxVelocity = 10 | 
Max velocity
Definition at line 39 of file SimpleMover.cs.
| SimpleMesh Forces.SimpleMover.Mesh | 
Mesh
Definition at line 57 of file SimpleMover.cs.
| bool Forces.SimpleMover.SyncRotationOnVelocity | 
Synchronize rotation on velocity
Definition at line 54 of file SimpleMover.cs.
| Vector2 Forces.SimpleMover.Velocity = Vector2.Zero | 
Current velocity
Definition at line 27 of file SimpleMover.cs.
| WrapModeEnum Forces.SimpleMover.WrapMode | 
Wrapping mode
Definition at line 48 of file SimpleMover.cs.
| 
 | getset | 
Draw mesh
Definition at line 60 of file SimpleMover.cs.
| 
 | getset | 
| 
 | getset |