diff options
| author | Juan Linietsky | 2018-06-26 19:05:11 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2018-06-26 19:06:16 -0300 |
| commit | c633b770cb648613ca88fc9e007718acfc219317 (patch) | |
| tree | 2aa72d9bfc3276db0ea8a6b833d7fade724b3c16 /scene/animation/animation_tree.h | |
| parent | f036353b93269e1162437f188f6792f3953ac155 (diff) | |
| download | godot-mirror.tar.gz godot-mirror.tar.zst godot-mirror.zip | |
-Add RootMotionView, to debug root motion in 3D (disabled in runtime)
Diffstat (limited to '')
| -rw-r--r-- | scene/animation/animation_tree.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scene/animation/animation_tree.h b/scene/animation/animation_tree.h index adc25d560..22fb30957 100644 --- a/scene/animation/animation_tree.h +++ b/scene/animation/animation_tree.h @@ -135,6 +135,8 @@ public: private: struct TrackCache { + + bool root_motion; uint64_t setup_pass; uint64_t process_pass; Animation::TrackType type; @@ -142,6 +144,7 @@ private: ObjectID object_id; TrackCache() { + root_motion = false; setup_pass = 0; process_pass = 0; object = NULL; @@ -235,6 +238,9 @@ private: bool started; + NodePath root_motion_track; + Transform root_motion_transform; + protected: void _notification(int p_what); static void _bind_methods(); @@ -257,6 +263,11 @@ public: bool is_state_invalid() const; String get_invalid_state_reason() const; + void set_root_motion_track(const NodePath &p_track); + NodePath get_root_motion_track() const; + + Transform get_root_motion_transform() const; + uint64_t get_last_process_pass() const; AnimationTree(); ~AnimationTree(); |
