allow moving meshes without motion vectors

This commit is contained in:
Ansraer 2025-04-17 19:39:53 +02:00
parent e5ccaa79e2
commit a4a5f4ed01
13 changed files with 55 additions and 7 deletions

View file

@ -412,6 +412,7 @@ public:
// This will either be the interpolated transform (when using fixed timestep interpolation)
// or the ONLY transform (when not using FTI).
Transform3D transform;
bool teleported = false;
// For interpolation we store the current transform (this physics tick)
// and the transform in the previous tick.
@ -1054,6 +1055,8 @@ public:
virtual void instance_set_visible(RID p_instance, bool p_visible);
virtual void instance_geometry_set_transparency(RID p_instance, float p_transparency);
virtual void instance_teleport(RID p_instance);
virtual void instance_set_custom_aabb(RID p_instance, AABB p_aabb);
virtual void instance_attach_skeleton(RID p_instance, RID p_skeleton);