|
Godot Nature of Code
1.2.0
Nature of Code implemented in Godot Engine
|
Base fly lifeform. More...
Public Attributes | |
| float | AccelerationFactor = 0.5f |
| Acceleration factor More... | |
| float | AngularAccelerationFactor = 0.01f |
| Angular acceleration factor More... | |
| Color | BaseColor = Colors.White |
| Base color More... | |
| float | WingRotationFactor = 0.5f |
| Wing rotation factor More... | |
| float | WingSpeed = 64f |
| Wing speed More... | |
| float | WingSize = 3f |
| Wing size More... | |
| byte | WingColorAlpha = 80 |
| Wing alpha color More... | |
Public Attributes inherited from Ecosystem.Ecosystem.Lifeform | |
| 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... | |
Protected Attributes | |
| float | tWings |
| Wings time More... | |
| SimpleCircleSprite | sBody |
| Body sprite More... | |
| SimpleCircleSprite | sLeftWing |
| Left wing sprite More... | |
| SimpleCircleSprite | sRightWing |
| Right wing sprite More... | |
Protected Attributes inherited from Forces.SimpleMover | |
| CollisionShape2D | collisionShape2D |
| Collision shape 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... | |
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... | |
Base fly lifeform.
Definition at line 66 of file Ecosystem.cs.
| float Ecosystem.Ecosystem.BaseFly.AccelerationFactor = 0.5f |
Acceleration factor
Definition at line 69 of file Ecosystem.cs.
| float Ecosystem.Ecosystem.BaseFly.AngularAccelerationFactor = 0.01f |
Angular acceleration factor
Definition at line 72 of file Ecosystem.cs.
| Color Ecosystem.Ecosystem.BaseFly.BaseColor = Colors.White |
Base color
Definition at line 75 of file Ecosystem.cs.
|
protected |
Body sprite
Definition at line 93 of file Ecosystem.cs.
|
protected |
Left wing sprite
Definition at line 96 of file Ecosystem.cs.
|
protected |
Right wing sprite
Definition at line 99 of file Ecosystem.cs.
|
protected |
Wings time
Definition at line 90 of file Ecosystem.cs.
| byte Ecosystem.Ecosystem.BaseFly.WingColorAlpha = 80 |
Wing alpha color
Definition at line 87 of file Ecosystem.cs.
| float Ecosystem.Ecosystem.BaseFly.WingRotationFactor = 0.5f |
Wing rotation factor
Definition at line 78 of file Ecosystem.cs.
| float Ecosystem.Ecosystem.BaseFly.WingSize = 3f |
Wing size
Definition at line 84 of file Ecosystem.cs.
| float Ecosystem.Ecosystem.BaseFly.WingSpeed = 64f |
Wing speed
Definition at line 81 of file Ecosystem.cs.