0 votes

how can i move the camera3D from the script

asked Apr 30 in Engine by ManiCus (85 points)

1 Answer

+2 votes
Best answer

This question is not very specific.

Camera is a Spatial node, so moving it works the same as any other 3D node. Do you know how to move Spatial nodes?

You move a 3D node by manipulating its transform. transform.origin is the object's position in 3D space, and transform.basis represents its rotation.

Alternatively, you can parent the camera to another object, and it will move along with that object. The specifics really depend on how you want to move it.

answered Apr 30 by kidscancode (17,762 points)
selected May 1 by ManiCus

Thanks if someone else sherch that information its important to remark this:

for moving the posicition is: transform.origin.y/x/z

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.