-
Hi! For example we have But actually our parent is So how can we cast it? |
Beta Was this translation helpful? Give feedback.
Answered by
Splizard
Jul 24, 2024
Replies: 1 comment
-
Hey! Yes you can do this with if body, ok := gd.As[gd.CharacterBody2D](a.Temporary, node); ok {
body.SetVelocity(vec)
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Splizard
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey! Yes you can do this with
gd.As
.