0 votes

I have a game where I have a spaceship in space (duh) .

I've made nice movement and rotation for the space ship, but the camera, that was made following this Interpolated Camera, when I do a vertical 360 degree spin, it kinda turns in a weird way when you're looking down(it kinda turns around instead of just following and being upside down like the spaceship).

How can I make it so that there isn't a "Right side up"? Since it's in space, there shouldn't be up and down, you should move freely.

Godot version v3.3.2.stable.official
in Engine by (35 points)

I don't entirely know what the problem is. Is the camera suppose to turn around in a full circle? Or is the camera suppose to turn in whatever direction? From the look of the code in the link, the camera looks at a position with the, well, look_at() function, which takes the Vector3.UP direction as the second parameter. That could explain the "right side up" problem.

Yup, I think that's the problem. Since the game is in space, I'd like the camera to not look for the right side up, but rather just follow the spaceship as it rotates.

1 Answer

0 votes
Best answer

Welp, I fixed it.

I just completely removed the look_at() function. Tbh, the camera moves even better now.

by (35 points)
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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.