Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

AnimationNodeSub2

繼承: AnimationNodeSync < AnimationNode < Resource < RefCounted < Object

AnimationNodeBlendTree 中以減法方式混合兩段動畫。

說明

新增至 AnimationNodeBlendTree 的資源。依據指定數值,以減法方式混合兩段動畫。

此節點通常用於預先計算,抵銷 AnimationNodeAdd2AnimationNodeAdd3 中「新增」動畫來源所帶來的額外姿勢。

一般情況下,混合值應位於 [0.0, 1.0] 區間;若超出此範圍,則可用於放大或反轉動畫。

注意: 由於變換矩陣不符合交換律,這與在 AnimationNodeAdd2 使用負值的效果不同。AnimationNodeSub2 會從左側乘上反向動畫的變換矩陣,而負值的 AnimationNodeAdd2 則從右側相乘。

教學