Transform2DTranslated Method |
Translates the transform by the given `offset`,
relative to the transform's basis vectors.
Unlike
Rotated(Single) and
Scaled(Vector2),
this does not use matrix multiplication.
Namespace:
Godot
Assembly:
GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntaxpublic Transform2D Translated(
Vector2 offset
)
Parameters
- offset
- Type: GodotVector2
The offset to translate by.
Return Value
Type:
Transform2DThe translated matrix.
See Also