[Bugfix] Entity3D.animate() raises NotImplementedError #242

Closed
opened 2026-02-06 02:55:50 +00:00 by john · 0 comments
Owner

Description

Entity3D.animate() raises NotImplementedError with the message "Entity3D.animate() not yet implemented". This is inconsistent with the 2D UIDrawable types (Frame, Caption, Sprite, Grid) which all support .animate().

Reproduction

import mcrfpy
viewport = mcrfpy.Viewport3D(pos=(0,0), size=(100,100))
viewport.set_grid_size(16, 16)
entity = mcrfpy.Entity3D(pos=(5,5), scale=1.0)
viewport.entities.append(entity)
entity.animate('x', 10.0, 2.0, mcrfpy.Easing.EASE_IN_OUT)
# NotImplementedError: Entity3D.animate() not yet implemented

Expected Behavior

Entity3D should support animating at least its pos (x, z), scale, and color properties, matching the animation API available on 2D UI types.

Impact

The village demo and other 3D demos cannot use smooth property animations on entities. Workaround: manually interpolate in a timer callback.

Found during village integration demo development.

## Description `Entity3D.animate()` raises `NotImplementedError` with the message "Entity3D.animate() not yet implemented". This is inconsistent with the 2D UIDrawable types (Frame, Caption, Sprite, Grid) which all support `.animate()`. ## Reproduction ```python import mcrfpy viewport = mcrfpy.Viewport3D(pos=(0,0), size=(100,100)) viewport.set_grid_size(16, 16) entity = mcrfpy.Entity3D(pos=(5,5), scale=1.0) viewport.entities.append(entity) entity.animate('x', 10.0, 2.0, mcrfpy.Easing.EASE_IN_OUT) # NotImplementedError: Entity3D.animate() not yet implemented ``` ## Expected Behavior Entity3D should support animating at least its `pos` (x, z), `scale`, and `color` properties, matching the animation API available on 2D UI types. ## Impact The village demo and other 3D demos cannot use smooth property animations on entities. Workaround: manually interpolate in a timer callback. Found during village integration demo development.
john closed this issue 2026-02-09 12:47:41 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
john/McRogueFace#242
No description provided.