Godot Nature of Code  1.2.0
Nature of Code implemented in Godot Engine
Public Attributes | List of all members
Ecosystem.Ecosystem.Lifeform Class Reference

Base abstract lifeform. Based on SimpleMover. More...

Inheritance diagram for Ecosystem.Ecosystem.Lifeform:
Forces.SimpleMover Ecosystem.Ecosystem.BaseFly Ecosystem.Ecosystem.HoppingBunny Ecosystem.Ecosystem.SwimmingFish Ecosystem.Ecosystem.AttractedFly Ecosystem.Ecosystem.NervousButterfly Ecosystem.Ecosystem.NervousFly

Public Attributes

bool DebugDrawEnabled
 Debug draw enabled? More...
 
- Public Attributes inherited from Forces.SimpleMover
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...
 

Additional Inherited Members

- Public Types inherited from Forces.SimpleMover
enum class  WrapModeEnum { Wrap , Bounce , None }
 Wrapping mode enum. More...
 
- Public Member Functions inherited from Forces.SimpleMover
 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...
 
- Protected Member Functions inherited from Forces.SimpleMover
virtual void UpdateAcceleration ()
 Update acceleration value. More...
 
- Protected Attributes inherited from Forces.SimpleMover
CollisionShape2D collisionShape2D
 Collision shape More...
 
- Properties inherited from Forces.SimpleMover
bool Drawing [get, set]
 Draw mesh More...
 
Vector2 MeshSize [get, set]
 Mesh size More...
 
float Radius [get, set]
 Mesh radius More...
 

Detailed Description

Base abstract lifeform. Based on SimpleMover.

Definition at line 19 of file Ecosystem.cs.

Member Data Documentation

◆ DebugDrawEnabled

bool Ecosystem.Ecosystem.Lifeform.DebugDrawEnabled

Debug draw enabled?

Definition at line 22 of file Ecosystem.cs.


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