Page MenuHome

A Rigid Body does not keep the initial velocity after the animated checkbox is disabled
Closed, ResolvedPublicKNOWN ISSUE

Description

Blender Version
Broken: 2.83

Short description of error
Rigid Body objects whose "animated" option is unchecked (for example by a keyframe) do not maintain the velocity that was in the previous frame.
It is interesting to note that by setting small values for the rigid body parameters (in the Scene tab) "speed" and "steps per second" the initial speed is maintained.
For exemple:

  • With "speed" 2.0, 4.0 the RB seems to keep the initial velocity.
  • With "speed" 3.0, 5.0 the differences appear again.

Increasing the "steps per second" reduces the differece, but it is still appreciable.

Exact steps for others to reproduce the error
In the attached file there are six objects whose animation is disabled during the simulation.

  1. Open the attached file
  2. Run the animation

Note the velocity changing when the checkbox is disabled.

Analyzing the bullet code we can see that the speed (btRigidBody::m_linearVelocity) changes in RB_dworld_step_simulation, more specifically calculateVelocity.

Event Timeline

Fabrizio (FabrizioP) raised the priority of this task from to 90.
Fabrizio (FabrizioP) updated the task description. (Show Details)
Fabrizio (FabrizioP) edited a custom field.

I’m pretty sure that things like this 'Animated' checkbox (but also others, like 'Dynamic', etc.) should absolutely not be animatable? @Sergej Reich (sergof), what do you say?

Bastien Montagne (mont29) lowered the priority of this task from 90 to Normal.Feb 13 2016, 10:33 AM

I hope that the result of my report does not be the removal of the feature.

I think this was the expected workflow, check this post

I checked the workflow I have used against the expected workflow indicated in the post and in the linked video (10'36" from the begining).

The expected workflow requires an additional keyframe with the "animated checkbox" enabled a frame before the one in which is disabled.

I added these keyframes, but the result does not change.

I saw the report T39529 before sending mine.

It seems that it is a different bug related to the starting frame of the Rigid Body cache. If it is the frame in which the animation is disabled the RB stops its path in that point. To avoid this problem I started the simulation at first frame (defult value).

In the case I reported, the RB does not stop, but it continues with a velocity different from the initial velocity that depends from the frame (odd/even) at which the animation has been disabled.

There shouldn't be any problems with animating these properties in principle.

The general issue is that we have a render frame rate at which animations are updated and a number of simulation steps, depending on how you choose these two you'll get different results.
This is a fundamental issue for simulations in blender. Currently the animation system is only evaluated at the render frame rate, but we need to evaluate it at the simulation rate.
One workaround that should work is to use a multiple of the render frame rate for the number of simulation steps.
The speed setting has an effect, because it adjusts the number of steps internally.

Fabrizio is right, it doesn't seem to be related to T39529.

Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Known Issue".

Since this report has been open for a long time and has no plans to be resolved within six months, I will mark it as a Known Issue.