2018-07-26 11:56:21 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-06 10:08:05 +02:00
<class name= "RootMotionView" inherits= "VisualInstance3D" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2018-07-26 11:56:21 +02:00
<brief_description >
2023-07-20 17:34:06 +02:00
Editor-only helper for setting up root motion in [AnimationMixer].
2018-07-26 11:56:21 +02:00
</brief_description>
<description >
2023-07-20 17:34:06 +02:00
[i]Root motion[/i] refers to an animation technique where a mesh's skeleton is used to give impulse to a character. When working with 3D animations, a popular technique is for animators to use the root skeleton bone to give motion to the rest of the skeleton. This allows animating characters in a way where steps actually match the floor below. It also allows precise interaction with objects during cinematics. See also [AnimationMixer].
2022-01-02 23:39:56 +01:00
[b]Note:[/b] [RootMotionView] is only visible in the editor. It will be hidden automatically in the running project.
2018-07-26 11:56:21 +02:00
</description>
<tutorials >
2021-11-15 10:43:07 +01:00
<link title= "Using AnimationTree - Root motion" > $DOCS_URL/tutorials/animation/animation_tree.html#root-motion</link>
2018-07-26 11:56:21 +02:00
</tutorials>
<members >
2022-01-02 23:39:56 +01:00
<member name= "animation_path" type= "NodePath" setter= "set_animation_path" getter= "get_animation_path" default= "NodePath("")" >
2023-07-20 17:34:06 +02:00
Path to an [AnimationMixer] node to use as a basis for root motion.
2018-07-26 11:56:21 +02:00
</member>
2022-01-02 23:39:56 +01:00
<member name= "cell_size" type= "float" setter= "set_cell_size" getter= "get_cell_size" default= "1.0" >
2021-07-21 15:10:52 +02:00
The grid's cell size in 3D units.
2018-07-26 11:56:21 +02:00
</member>
2024-02-21 18:51:08 +01:00
<member name= "color" type= "Color" setter= "set_color" getter= "get_color" default= "Color(0.5, 0.5, 1, 1)" keywords= "colour" >
2021-07-21 15:10:52 +02:00
The grid's color.
2018-07-26 11:56:21 +02:00
</member>
2022-01-02 23:39:56 +01:00
<member name= "radius" type= "float" setter= "set_radius" getter= "get_radius" default= "10.0" >
2021-07-21 15:10:52 +02:00
The grid's radius in 3D units. The grid's opacity will fade gradually as the distance from the origin increases until this [member radius] is reached.
2018-07-26 11:56:21 +02:00
</member>
2022-01-02 23:39:56 +01:00
<member name= "zero_y" type= "bool" setter= "set_zero_y" getter= "get_zero_y" default= "true" >
2021-07-21 15:10:52 +02:00
If [code]true[/code], the grid's points will all be on the same Y coordinate ([i]local[/i] Y = 0). If [code]false[/code], the points' original Y coordinate is preserved.
2018-07-26 11:56:21 +02:00
</member>
</members>
</class>