godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
86.49k stars 19.27k forks source link

RootMotionView is considered for bounding box #91888

Open tiloc opened 1 month ago

tiloc commented 1 month ago

Tested versions

System information

Vulkan API 1.2.231 - Forward Mobile - Using Vulkan Device #0: Apple - Apple M1

Issue description

The orange bounding box takes into consideration the size of the RootMotionView. In my mind, this should not be the case, as the RootMotionView is only a debugging tool with no influence on the actual geometry.

image

Steps to reproduce

Place a RootMotionView into a 3D scene.

Minimal reproduction project (MRP)

N/A

Calinou commented 1 month ago

I don't remember if we have a way to change the selection box size for certain nodes without breaking their rendering when partially off-screen. In other words, we shouldn't override the RootMotionView's AABB size or it'll disappear when partially off-screen.