Immediately stabilize physics calculations immediately after model display

[Last updated on 09/08/2022]

Cubism 4 SDK R5 adds the ability to instantly stabilize physics calculations.
When a model is displayed in the Cubism SDK, if the parameter values are not the default values, the physics may run violently, and this is used to instantly stabilize the model.

To immediately stabilize the physics operations, call CubismPhysics::Stabilization() in Native, CubismPhysics.stabilization() in Web, or CubismPhysics.Stabilization() in Unity.

The following is a snippet that uses a sample scene from the Cubism SDK to stabilize physics operations immediately after model initialization.

 

Native

Only on the first frame of the model, the stabilization function is called just before the physics process.

 

 

Web

Only on the first frame of the model, the stabilization function is called just before the physics process.

 

 

Unity

Attaching the following component to the prefabricated root of the model will call the stabilization function just before the physics operation, for the first frame of the model only.

© 2010 - 2022 Live2D Inc.