Commit Graph
36 Commits
Author SHA1 Message Date
Nicolás Uriel Navall 27851a88ea Added Unity Input System support (#116)
* Added support for new input system. First implementation.

* Deleted unnecessary prefix calls, typed most "var" variables, added support for wasReleasedThisFrame, used GetButtonWasPressed on IInputManager::GetKeyUp, refactored GetMouseButton to use the cached buttons, and split the postfix functions into multiple ones.

* Fixed builds for other .net versions.

* Added a class to handle gamepad input to use with the freecam.

* Fixed some logging stuff, and added a dropdown on the freecam panel to select the controller that you want to use to control the freecam. Also refactored the freecam panel a bit UI wise.

* Made the gamepad interceptor class compatible with the INewInputSystem by reusing its patch functions for the gamepad buttons. Also did some cleaning regarding key normalization.

* Fixed runtime warnings and added gamepad controls to the readme. Also made changing the FOV faster.

* Fixed dpad on some versions of the engine/library. Also refactored the gamepad input code on FreeCamBehaviour::ProcessInput(), inverted dpad up and down functionalities, modified the fov change speed, added a minimum value for the fov, and added a reset tilt button to the gamepad.

* Update README.md

* Fixed freecam default mode on forced, and hid the controller dropdown on the freecam panel when the game uses the legacy input system.

* Added more controller hotkeys,

* Added slower camera rotation based on fov.

* Added an ExplorerCore log call warning when trying to play a path with fewer than 3 nodes.
2025-11-29 20:08:28 -03:00
originalnicodr ca81bcc5dc Fixed loading cam path relative to the camera with a different rotation. 2024-11-30 11:37:27 -03:00
originalnicodr f3b154658c Added a button in the game object inspector panel to move the object to the camera position (and rotation). Also minor UI adjustment on the CamPaths panel. 2024-11-25 19:18:37 -03:00
originalnicodr 7ab907d7b0 Added camera path serialization, and changed extension of saved poses. 2024-11-25 18:38:55 -03:00
originalnicodr 736ebdfa1b Added new freecam methods, one for cloning the gameplay camera and another one for replacing the worldToCameraMatrix of the gameplay camera. 2024-11-23 11:52:00 -03:00
originalnicodr 8f2ec19660 Refactored the animator player toggler into a play/pause button for better UI/UX. Also did some minor campaths panel UI improvements. 2024-08-04 21:14:44 -03:00
originalnicodr 63ac2dfbd9 Added fallback arrows in case we cannot build the cone for the ones we build (was happening on Metall: Hellsinger and Road 96). 2024-03-10 19:11:39 -03:00
originalnicodr 463fec38b2 Changed the lights config button to only show the inspector with the lights properties, and added a new option for the default freecam (so to be able to use the gameplay camera if you can't interact with the menu). 2024-03-10 12:15:32 -03:00
originalnicodr adbbf4eb75 Refactored campath translation point functions to make sure the order of execution is always the same. 2024-03-08 22:03:39 -03:00
originalnicodr 4b971d8191 Fixed TimeController widget interaction with CamPaths and deleted comment. 2024-03-08 20:11:25 -03:00
originalnicodr 96efbc36d0 Refactored the follow object feature to let the user choose if they want to follow the object position only or if they also want the camera to follow its rotation. 2024-03-08 18:47:00 -03:00
originalnicodr bdad7d722c UI tweaks. 2024-02-25 22:16:05 -03:00
originalnicodr fd18d1b56d Refactored the TimeWidget lock button into an Override toggle to make things clearer, and minor UI tweaks on the Cam Path panel. 2024-02-25 13:05:33 -03:00
originalnicodr 56e438948b Refactored the TimeWidget to save the previous state when paused with hotkey, and improved code traces. 2024-02-25 12:17:21 -03:00
originalnicodr 29c371e2c2 Fixed cam path visualizer for when following objects, and fixed the path sometimes giving errors when trying to start. 2024-02-15 20:52:07 -03:00
originalnicodr 83b19f2375 Refactored the Camera Path panel to use the ScrollPoll class, reworked the UI on the panel a bit, and deleted an unused member on the AnimatorPanel. 2024-02-13 12:30:12 -03:00
originalnicodr ad426d4f83 Added "pause on finish" toggle for cam paths. 2024-02-10 16:47:59 -03:00
originalnicodr a7038ec378 Made the camera path arrows turn off every time we play or continue the path, without bringing them back if the path is paused or stopped, making its state in the UI more consistent. 2024-02-10 16:15:15 -03:00
originalnicodr 203d0dede8 Improved compatibility with IL2CPP games, and fixed the postprocessing effect to be turned back on when reloading them. 2024-02-10 10:19:18 -03:00
originalnicodr e732672e0a Fixed missing namespace. 2024-02-06 20:22:44 -03:00
originalnicodr 8c0e8db5d8 Patch the light class so we can color the meshes we use to visualize spawned lights with the same color. 2024-02-06 20:08:46 -03:00
originalnicodr c1988eb928 Exposed tension and alpha of catmull rom on the Camera Paths panel. 2024-02-04 09:40:17 -03:00
originalnicodr c56cb0874d Added QoL options to unpause when starting playing the camera path and to wait 3 seconds before starting. Also moved some member's initializers to the class constructor. 2024-02-03 10:52:33 -03:00
originalnicodr b87873ab83 Added a visualizer option for camera paths and deleted the collider on the arrows. Otherwise, they would mess with the game's physics and game logic. 2024-02-03 00:10:06 -03:00
originalnicodr a2579d4598 Deselected the follow object button after clicking it, hid the UE menu after hitting play on the camera path, and fixed the follow object to work in conjunction with the camera paths. 2024-01-31 23:20:16 -03:00
originalnicodr 47ad903ca7 Added assignable hotkeys on the Options panel, deselected some cam-paths panel buttons so they are not accidentally triggered when pressing space after clicking on them, and user input over the freecam when a path is being played. 2024-01-27 19:32:52 -03:00
originalnicodr 78c8a41e22 Modified the camera path to use time instead of speed, precalculated the lookAhead points beforehand, fixed the path using the wrong rotations in a quaternion, and modified some buttons in the camera paths panel. 2024-01-27 11:01:38 -03:00
originalnicodr c8e6d312ae Refactored camera paths. 2024-01-24 09:16:33 -03:00
originalnicodr 5be48458a6 Fixed "copy cam pos" and "copy cam fov" buttons. Plus some cleaning. 2023-04-01 16:58:30 -03:00
originalnicodr 88c8a889dc Added constant speed option to cam paths. 2023-04-01 15:57:46 -03:00
originalnicodr cfdb7d706e Added custom frame amount for each node. 2023-03-01 17:55:16 -03:00
originalnicodr c347bfcf68 Added buttons to pause and continue the path, stop the path from playing, and created UI for each new node on the path.
Each Node UI includes a button to Move the node position and orientation to the camera one, copy camera FoV on the node, move the cam position and orientation to the node, and delete the node.
2023-02-26 23:15:40 -03:00
originalnicodr 4eb84fba8b Added buttons to delete path and a toggle for looped paths 2023-02-26 22:23:47 -03:00
originalnicodr 7c1724d9fa Added fov support for camera paths. 2023-02-26 22:02:54 -03:00
originalnicodr c6f1322021 Added rotation support for the camera paths. 2023-02-26 20:34:44 -03:00
originalnicodr e1e1f3d9ab Added Camera Path System prototype 2023-02-26 19:12:06 -03:00