Gimbal Control Node

An asset by alanscodelog
The page banner background of a mountain and forest
Gimbal Control Node hero image

Quick Information

0 ratings
Gimbal Control Node icon image
alanscodelog
Gimbal Control Node

An extended Spatial node for use with cameras and other nodes, with support for mouse dragging, mouse look, zoom, target follow, interpolated target changes, transform limits (rotation/distance), custom keys, turning off right/left and emitting signal instead, first person signal, local and global modes, etc.There is a separate demo project available to show the different ways it can be set up. Checkout the repository for the link.

Supported Engine Version
3.0
Version String
0.1.0
License Version
MIT
Support Level
community
Modified Date
5 years ago
Git URL
Issue URL

Gimbal Control Node

This is a gimbal node (for use with a camera, a light, or any other object) for Godot. It supports using keys, clicking and dragging, or mouse movement to look around. It also supports zooming, either with keys/mousewheel or with a toggle key (e.g. Joystick R3). And it doesn't have to be parented, it can track any target and even switch to targets with different rotations, and interpolated between them smoothly.

You can change any of the keys, set limits to the up/down rotation and distances, disable/emit right/left movements, and emit a first person signal.

The look_left/right signals are there so you can, for example, parent the gimbal (containing a camera) to a character then use the look left/right signal to rotate the character instead of the camera itself if you want to (see Demos).

The first person signal tells you when the camera has come within a certain range, so you can, for example, show a specific HUD element on screen.

Note

I'm new to Godot and game development/programming in general (I didn't know what a Transform was when I started this), so there might be a few bugs. Everything seems to be working as I intended, but if you find any problems or you think there's a better way to do something, don't hesitate to file an issue.

How to Install

You can download it from the AssetLib (search for Gimbal Control Node), or you can clone/download this repository then copy the addons folder to your project, or the folder inside that to your addons folder if you already have one.

From there you can enable it in Project > Project Settings > Plugins

The plugin requires certain look_* actions in the input map to work. If you want to use your own actions, you can specify them in the node. Or to quickly get started, you can copy them from the project.godot file in the demo project.

Documentation

For now most of the documentation is in the actual script, including common issues to be aware of. I will eventually get around to formatting everything nicely here. If anything is unclear don't hesitate to file an issue.

Demos

I have also made a project with various demo scenes for testing/demonstrating possible configurations, you can find it here.

An extended Spatial node for use with cameras and other nodes, with support for mouse dragging, mouse look, zoom, target follow, interpolated target changes, transform limits (rotation/distance), custom keys, turning off right/left and emitting signal instead, first person signal, local and global modes, etc.

There is a separate demo project available to show the different ways it can be set up. Checkout the repository for the link.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Gimbal Control Node icon image
alanscodelog
Gimbal Control Node

An extended Spatial node for use with cameras and other nodes, with support for mouse dragging, mouse look, zoom, target follow, interpolated target changes, transform limits (rotation/distance), custom keys, turning off right/left and emitting signal instead, first person signal, local and global modes, etc.There is a separate demo project available to show the different ways it can be set up. Checkout the repository for the link.

Supported Engine Version
3.0
Version String
0.1.0
License Version
MIT
Support Level
community
Modified Date
5 years ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers