About Physics

Updated: 09/21/2023

What is Physics?

With Cubism, you can set up and export physics operations that will create hair swinging movements in real time as the face turns around.

This page describes the [Physics] setting items in the [Physics Settings] dialog box.
For details on how to set up physics operations, please refer to “How to Set Up Physics.”
Physics can be set from the [Modeling] menu -> [Open Physics Settings].

Note: The [Physics Settings] dialog box also includes a [Playlist] tab. Make sure the [Physics] tab is selected.
 

Composition of the Physics Tab

NumberItemDetails
(1)Calculate FPSSets the frame rate at which physics operations are performed.

FPS can be selected from the following four types, or any value can be entered and registered in the list.
15/30/60/120

By creating physics settings that match the FPS of the scene being used, it is possible to reproduce the scene without any sense of discomfort.
If the intended application is not known, the default value of 60 fps is recommended.
Setting this to 60 fps reduces the impact of changes in the output results of physics operations, even in environments prior to SDK R5 beta2.
For details, see “FPS Support for Physics Operations” under “SDK Compatibility with Cubism 4.2 Features.”

You can reset this setting to the default state of 60 fps with [Initialize FPS] on the Physics menu.
Note: The initial value has been changed from 30 fps to 60 fps as of Cubism 5.0 beta1.
Be sure to check the movement as changing the Calculate FPS setting will change the output result of the physics calculation.
(2)Group settingsSettings for physics operations added to the model are handled on a group basis.
Groups can be created for each part of the body to be swung, such as “swinging bangs” and “swinging skirt.”
(3)Input settingsThis item is used to set parameters to be treated as inputs for physical operations.
This sets up the “part that suspends the thread” of the pendulum.
The degree of influence of the parameters specified here will vary, affecting the value of the [Output Settings] described below.
(4)Output settingsThis item is used to configure settings for outputting calculated swinging.
(5)Physical model settingThis item is used to set the way the part swings when it is actually moved.
This sets up the “weight” of the pendulum.
This item is used for calculations based on changes in the values of the parameters set in the [Input Settings].
(6)Pendulum previewThe results calculated in the [Input Settings] and [Physical Model Settings] are previewed as the pendulum’s motion.

For calculate FPS:
FPS information is set in the model file by opening [Physics and Scene Blend Settings].
(The value of [Calculate FPS] will also be set in the model file at the time it is changed.)

FPS information is now stored in the model file starting with Cubism Editor version 4.1.02.
Model files created prior to 4.1.01 may not have FPS information set.
See the “SDK Compatibility with Cubism 4.2 Features” page of the SDK manual for more information on setting FPS information for model files.
 

Notes on Unity fades:
Unity uses the concept of layers to further blend the results, including motion fades.
Playback results in the Viewer are not a perfect reproduction of the Unity mechanism, so playback results may vary. 

Group settings

ItemDetails
Group nameSelect the group for which you want to perform [Input Settings], [Output Settings], and [Physical Model Settings].
ValidChecking this box temporarily toggles the enabling/disabling of physics operations for the currently selected group.
It does not affect the export of the physics settings file.
All these valid flags are reset when the Physics Settings dialog box is closed.
AddCreate and add a new group.
DuplicateDuplicate the currently selected group.
Edit GroupEdit each group.

Input Settings

Input preset

The [Input] preset settings, in which [Input], [Type], and [Influence] are set in advance, can be read and the [Input Settings] can be set instantly.
You can also save your own settings as presets for future use.

ItemDetails
NameSelect a saved preset.
Three types of presets are available by default: “head input,” “torso input,” and “chest input.”
ImportLoad the selected preset.
AddAdd the current settings as a preset.
Overwrite saveOverwrite and save the current settings to the selected preset.
Name changeRename the selected preset.
DeleteDelete the selected preset.

Input setting items

ItemDetails
AddAdd a parameter to be treated as an [Input].
DeleteDelete the selected [Input] parameter.
Move the position of the selected [Input] parameter up one position.
Move the position of the selected [Input] parameter down one position.
InputThis parameter is treated as an [Input].
Changes in the value of this parameter will cause fluctuations in the parameters set for [Output].
Parameters can also be changed from the pull-down menu.
TypeSet how changes in the value of a set parameter are treated as movement.
Position X: Treat as lateral movement
Angle: Treat as tilt in the Z-axis direction
Influence (%)When multiple parameters are set as [Input], you can set which [Input] affects what percentage of the total.
If there are multiple parameters of the same [Type] in the same group, the parameter with the larger value is more affected.

Note: The influence of the same [Type] cannot be set to more than “100%” in total.
 For different types, each can be set to a maximum of 100%.
ReflectChecking the box inverts the + and – for the [Input] parameter.
Use to invert [Input].

Input normalization

The adjustment is made to allow the hair to hang straight down and rest against gravity as the head and other parts of the body are tilted.
Because the “head” and “body” tilts set on the model are at different angles on each model, normalizing the angle input, if necessary, can improve quality.

(For the position, the default value is fine as it is used for special models.)

ItemDetails
AngleAngle normalization can be set.
[Minimum], [Center], and [Maximum] are set to “-10.0,” “0.0,” and “10.0,” respectively, by default.
This value can be changed as desired.
Position XPosition normalization can be set.
[Minimum], [Center], and [Maximum] are set to “-10.0,” “0.0,” and “10.0,” respectively, by default.
This value can be changed as desired.

The general model is roughly normalized by default, but if you want to fine-tune the model, try adjusting the normalization.

Value of “angle” normalization

The process of converting the minimum and maximum definitions of the parameters specified in the input to the minimum to maximum range specified in the input normalization is called [Input normalization].
(The center is converted so that the value halfway between the smallest and largest parameter definition is the center of normalization.)

Among the normalized values of each parameter, for those that have the type [Angle], one value blended with the degree of influence is reflected as the angle of the uppermost pendulum.

Physical model setting

Physical model presets

The [physical model] preset settings, in which [Duration], [Ease of swinging], [Reaction time], and [Overall Speed] are set in advance, can be read and the physical model settings can be set instantly.
You can also save your own settings as presets for future use.

ItemDetails
NameSelect a saved preset.
LoadLoad the selected preset.
AddAdd the current settings as a preset.
Overwrite saveOverwrite and save the current settings to the selected preset.
Name changeRename the selected preset.
DeleteDelete the selected preset.

Physical model setting items

ItemDetails
AddAdd a new pendulum.
DeleteDelete the selected pendulum.
Move the position of the selected pendulum up one position.
Move the position of the selected pendulum down one position.
No.When the pendulum is set to a multi-stage setting, the numbers are assigned from the top to the bottom.
This number is used in [Output Settings] described below.
DurationYou can set the speed of swinging.
The smaller the value, the quicker the swinging; the larger the value, the slower the swinging.
If you want to change only the speed without adjusting the amount of change in the parameter value, adjust the [Reaction time] item.
Ease of swingingYou can set the magnitude of the swinging.
The larger the value, the larger the swing will be for even a small input.
As a rule of thumb, use a setting in the range of 0.7 to 0.99.
Reaction timeYou can set the reaction time of the swinging.
This is a setting for how agilely it responds to input.
The response is equal at “1”; greater than “1” makes it more agile, and less than “1” makes it less agile.
If the pendulum is multi-staged, the setting is based on how agile the child pendulum is in response to the movements of the parent pendulum.
Speed of convergenceYou can set how quickly the swinging stops.
The convergence is equal at “1.” If it is greater than “1,” the convergence is faster, and if it is less than “1,” the convergence is slower.

Pendulum preview

ItemDetails
PreviewPreview the pendulum’s original motion as calculated based on the [Physical Model Settings].
However, the influence set in [Input Settings] and [Output Settings] is not reflected in the pendulum.
Click [Add] in the pendulum settings to add a pendulum downward.
The scale can be adjusted by scrolling the mouse wheel on the preview.
Full ScaleDisplays the preview in full scale.
AllDisplays the entire pendulum.
Rotate Left / Rotate RightThe preview angle is rotated by 45 degrees.
The angle changed here does not affect the way the pendulum swings.

Right-click menu

Right-clicking on an item displays a menu that allows you to [Add] or [Delete] the item.
Multiple items can be selected, so they can be deleted in batches.

Output Settings

Output setting items

ItemDetails
AddAdd a parameter to be treated as an [Output].
DeleteDelete the selected [Output] parameter.
Move the position of the selected [Output] parameter up one position.
Move the position of the selected [Output] parameter down one position.
Auto Update the Output MaximumUnchecking this checkbox stops the automatic update of [Output Maximum (%)].
Pendulum No.Specify which of the pendulums set in [Physical Model Settings] will be used for output.
OutputThis parameter is treated as [Output].
The swing calculated from the settings of each item is applied to the set parameters.
Parameters can also be changed from the pull-down menu.
Influence (%)Cubism’s physics operations allow multiple parameters to be entered.
When outputting from the results of multiple physical operations to parameter values, this item sets which outputs will affect what ratio.
ReflectWhen checked, output parameters are inverted.
ScaleThe value to multiply the calculated value by.
The larger this value, the greater the swinging, and the smaller the value, the smaller the swinging.
Output Maximum (%)The Output Maximum (%) indicates the percentage of movement by which the output value obtained from multiplying by the scale has moved between 0 and the maximum value of the destination parameter.
Increase Output (up)If [Output Maximum] does not reach 100% and the pendulum movement is small, the scale is automatically adjusted so that [Output Maximum] reaches 100%.
Increase Output (down)If [Output Maximum] is greater than 100% and the pendulum is swinging out of control, the scale is automatically adjusted so that [Output Maximum] is set to 100%.
Reset scaleReset [Scale] to 1.0.
Reset maximum outputResets the [Output Maximum].
Tips

The scaled value is obtained by taking the angle of the pendulum (relative to the parent pendulum) specified by the Pendulum No. in radians and multiplying by this scale.

It then blends that value with the current parameter value, taking into account the degree of influence. (Overwrite if 100%)
(If multiple groups are defined so that the same parameters are affected, repeat the above calculations in the order of the groups.)

Right-click menu

ItemDetails
AddAdd output items.
Separate as a group in a batchCreate a new group containing all currently selected output setting items.
Input setting items are also duplicated.
Separate as individual groupsCreate a new group for each of the currently selected output setting items.
Input setting items are also duplicated.
DeleteDelete output items.
Multiple selections can also be deleted.
CopyCopy output items.
Multiple selections can also be copied.
PastePaste the copied output items.
The items can also be pasted to other groups.
Was this article helpful?
YesNo
Please let us know what you think about this article.