All Projects → Goutte → godot-trackball-camera

Goutte / godot-trackball-camera

Licence: MIT license
A short Godot addon that adds a TrackballCamera node without gimbal lock.

Programming Languages

GDScript
375 projects

Projects that are alternatives of or similar to godot-trackball-camera

Texture-Fonts
Godot Plugin for creating custom Fonts from Textures
Stars: ✭ 59 (+168.18%)
Mutual labels:  addon, godot
GodotRecorder
A simple addon to record frames of in-game footage.
Stars: ✭ 47 (+113.64%)
Mutual labels:  addon, godot
VisualNovelKit
Combo of addons + template to create narrative games in Godot inspired by Ren'Py
Stars: ✭ 78 (+254.55%)
Mutual labels:  addon, godot
Godottie
A simple Text Interface Engine to control text output (like in a RPG dialogue) for Godot.
Stars: ✭ 230 (+945.45%)
Mutual labels:  addon, godot
Godot Engine.file Editor
A Godot Engine addon that adds a File Editor for multiple file types editing. Create and Write plain text files, configuration files and csv files with custom visualizers and previews. Also supports file translations!
Stars: ✭ 70 (+218.18%)
Mutual labels:  addon, godot
Dialogic
💬 Create dialogs, characters and scenes to display conversations in your Godot games.
Stars: ✭ 414 (+1781.82%)
Mutual labels:  addon, godot
godot-engine.supabase
A lightweight addon which integrates Supabase APIs for Godot Engine out of the box.
Stars: ✭ 39 (+77.27%)
Mutual labels:  addon, godot
Godot Command Palette
A quick file finder and command palette for the Godot game engine.
Stars: ✭ 27 (+22.73%)
Mutual labels:  addon, godot
Cartographer
A GPU powered Terrain editor and renderer for Godot Engine
Stars: ✭ 216 (+881.82%)
Mutual labels:  addon, godot
nativelib-cli
NativeLib is a plugin management system for Godot engine.
Stars: ✭ 19 (-13.64%)
Mutual labels:  addon, godot
godot-admob-editor
This repository is for Godot's Addons to integrate natively AdMob to your Game Project without much configurations, with a beautiful UI and directly inside Godot Editor!
Stars: ✭ 43 (+95.45%)
Mutual labels:  godot
gdscript-online.github.io
Try out GDScript without installing Godot
Stars: ✭ 62 (+181.82%)
Mutual labels:  godot
ZHSAN3
中華三國志重製版3.0
Stars: ✭ 21 (-4.55%)
Mutual labels:  godot
hexen-dll-injector
HEX-EN DLL Injector
Stars: ✭ 20 (-9.09%)
Mutual labels:  addon
addon-sqlite-web
SQLite Web - Home Assistant Community Add-ons
Stars: ✭ 29 (+31.82%)
Mutual labels:  addon
godot-lua-pluginscript
Godot PluginScript for the Lua language, currently based on LuaJIT's FFI
Stars: ✭ 182 (+727.27%)
Mutual labels:  godot
HistoryCleaner
Firefox addon that deletes history older than a specified amount of days.
Stars: ✭ 51 (+131.82%)
Mutual labels:  addon
CellForest
A cellular-automaton forest simulation set to live data-driven music.
Stars: ✭ 19 (-13.64%)
Mutual labels:  godot
Chafu
A photo browser and camera library for Xamarin.iOS
Stars: ✭ 36 (+63.64%)
Mutual labels:  camera
smtheme-fiftyOne
Lambda, the StepMania 5.1 default theme
Stars: ✭ 20 (-9.09%)
Mutual labels:  addon

TrackballCamera for Godot

MIT Release Donate

A Godot 3.x addon that adds a TrackballCamera node without gimbal lock.

The TrackballCamera responds to input from mouse, keyboard, joystick and touch, in order to rotate around its parent node while facing it.

A version for Godot 2.x is available as well.

Features

  • stays around its parent node, even if the latter moves
  • no gimbal lock (quaternions FTW)
  • camera inertia for a smoother experience
  • the parent node does not have to be centered in the camera's view
  • analog camera control with joystick, courtesy of @marcello505 (in #4)
  • a bunch of parameters to configure everything as you want it

Install

The installation is as usual, through the Assets Library. You can also simply copy the files of this project into yours, it should work.

Then, enable the plugin in Scene > Project Settings > Plugins.

Usage

Make the TrackballCamera a child of the node to trackball around. Make sure your camera initially faces said node, and is at a proper distance from it. The initial position of your camera matters. The node does not need to be in the center.

You can also use this camera to look around you if you place it atop its parent node, spatially. It's going to rotate around itself, and that amounts to looking around. You'll probably want to set mouse_invert and keyboard_invert to true in that case.

Todo

  • Test if touch works on android and html5, try SCREEN_DRAG otherwise. (see #6)

Feedback and contributions are welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].