summaryrefslogtreecommitdiff
path: root/src/editor/view3d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/editor/view3d.cpp')
-rw-r--r--src/editor/view3d.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/editor/view3d.cpp b/src/editor/view3d.cpp
index 656eda9..3729823 100644
--- a/src/editor/view3d.cpp
+++ b/src/editor/view3d.cpp
@@ -13,14 +13,15 @@ void gui_editor_3dview_draw_showpos( GUI_EDITOR_3DVIEW* view ) {
I32 y = gui_rely( view ) + EDITORVIEW_TITLE_OFFSET;
VEC3 pos = objl->pl->pos;
+ F32 speed = vec_len( objl->pl->velocity );
gui_draw_str(
x + view->w - 2, y + 2,
ALIGN_R,
FNT_JPN12,
ui_clr.txt,
- "pos: %.02f %.02f %.02f",
- pos.x, pos.y, pos.z
+ "pos: %.02f %.02f %.02f (%.02f)",
+ pos.x, pos.y, pos.z, speed
);
gui_draw_str(