mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-08 17:57:02 +08:00
refactor(gameplay): extract Entity base class from ClientPlayer
Move position, walk pose, velocity, orientation, movement, and gravity fields and their accessors into a new Entity base class. ClientPlayer now inherits from Entity, removing duplicated members. Also update velocity handling to use 3D vector per axis and adjust related logic.
This commit is contained in:
@@ -97,4 +97,5 @@ target_sources(${PROJECT_NAME}
|
||||
render/model_renderer.cpp
|
||||
gameplay/chunk.cpp
|
||||
gameplay/hitbox_manager.cpp
|
||||
gameplay/entity.cpp
|
||||
)
|
||||
Reference in New Issue
Block a user