Class RootMotionView
- Namespace
- Godot
- Assembly
- GodotSharp.dll
Root motion 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.
Note: RootMotionView is only visible in the editor. It will be hidden automatically in the running project.
public class RootMotionView : VisualInstance3D, IDisposable
- Inheritance
-
RootMotionView
- Implements
- Inherited Members
Constructors
RootMotionView()
public RootMotionView()
Properties
AnimationPath
Path to an AnimationMixer node to use as a basis for root motion.
public NodePath AnimationPath { get; set; }
Property Value
CellSize
The grid's cell size in 3D units.
public float CellSize { get; set; }
Property Value
Color
The grid's color.
public Color Color { get; set; }
Property Value
Radius
The grid's radius in 3D units. The grid's opacity will fade gradually as the distance from the origin increases until this Radius is reached.
public float Radius { get; set; }
Property Value
ZeroY
If true
, the grid's points will all be on the same Y coordinate (local Y = 0). If false
, the points' original Y coordinate is preserved.
public bool ZeroY { get; set; }
Property Value
Methods
HasGodotClassMethod(in godot_string_name)
Check if the type contains a method with the given name. This method is used by Godot to check if a method exists before invoking it. Do not call or override this method.
protected override bool HasGodotClassMethod(in godot_string_name method)
Parameters
method
godot_string_nameName of the method to check for.
Returns
HasGodotClassSignal(in godot_string_name)
Check if the type contains a signal with the given name. This method is used by Godot to check if a signal exists before raising it. Do not call or override this method.
protected override bool HasGodotClassSignal(in godot_string_name signal)
Parameters
signal
godot_string_nameName of the signal to check for.
Returns
InvokeGodotClassMethod(in godot_string_name, NativeVariantPtrArgs, out godot_variant)
Invokes the method with the given name, using the given arguments. This method is used by Godot to invoke methods from the engine side. Do not call or override this method.
protected override bool InvokeGodotClassMethod(in godot_string_name method, NativeVariantPtrArgs args, out godot_variant ret)
Parameters
method
godot_string_nameName of the method to invoke.
args
NativeVariantPtrArgsArguments to use with the invoked method.
ret
godot_variantValue returned by the invoked method.