diff options
| author | MegaMech <inkstudios1@hotmail.com> | 2024-12-29 16:52:26 -0700 |
|---|---|---|
| committer | MegaMech <inkstudios1@hotmail.com> | 2024-12-29 16:52:26 -0700 |
| commit | e4737ce2f5bd75a3153dbe52684677964faa4ccc (patch) | |
| tree | 82faccd527a77ce83498e29ab1df7c5be95fb17a /src/engine/World.h | |
| parent | 9c4b35206a2c697acc7345e91587c52a09240eb9 (diff) | |
Impl Hedgehog and Flagpole
Diffstat (limited to 'src/engine/World.h')
| -rw-r--r-- | src/engine/World.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/engine/World.h b/src/engine/World.h index 3fa687e76..1aa09fb57 100644 --- a/src/engine/World.h +++ b/src/engine/World.h @@ -35,6 +35,22 @@ struct FVector { } }; +/** + * For providing X and Z when you do not need Y + * Some actors set themselves on the surface automatically + * which means it does not use a Y coordinate + * The train follows a set Y value. The hedgehog's patrolPoint only uses X and Z. + */ +struct FVector2D { + float x, z; + + FVector2D& operator=(const FVector2D& other) { + x = other.x; + z = other.z; + return *this; + } +}; + struct FRotation { float pitch, yaw, roll; |
