Skip to content
0.2.0-dev Download ZIP
15 lines ·1.3 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="AnimationNodeSub2" inherits="AnimationNodeSync" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Blends two animations subtractively inside of an [AnimationNodeBlendTree].
5 </brief_description>
6 <description>
7 A resource to add to an [AnimationNodeBlendTree]. Blends two animations subtractively based on the amount value.
8 This animation node is usually used for pre-calculation to cancel out any extra poses from the animation for the "add" animation source in [AnimationNodeAdd2] or [AnimationNodeAdd3].
9 In general, the blend value should be in the [code][0.0, 1.0][/code] range, but values outside of this range can be used for amplified or inverted animations.
10 [b]Note:[/b] This calculation is different from using a negative value in [AnimationNodeAdd2], since the transformation matrices do not satisfy the commutative law. [AnimationNodeSub2] multiplies the transformation matrix of the inverted animation from the left side, while negative [AnimationNodeAdd2] multiplies it from the right side.
11 </description>
12 <tutorials>
13 <link title="AnimationTree">$DOCS_URL/tutorials/animation/animation_tree.html</link>
14 </tutorials>
15</class>