pspeed
October 27, 2022, 11:20am
52
In this thread, it was a reference to Lemur Gems #1:
So, as some of you may know, Lemur is a light-weight GUI library that lets you make labels, buttons, and other twiddly bits in either 2D or 3D user interfaces.
The core design of Lemur was to build several modular toolkits that together form a full-up GUI library. Consequently, some of these toolkits have great utility even if you choose not to use the GUI elements themselves. This Gem covers one of these: InputMapper
The whole project can be found here: Lemur/examples/LemurGems at master · …
This has also been generalized into MovementState in the open source SiO2 library: GitHub - Simsilica/SiO2: Base pack of useful reusable game code that can help bootstrap any JME game project.
/*
* $Id$
*
* Copyright (c) 2019, Simsilica, LLC
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived
This file has been truncated. show original
MovementState is more powerful because it can be used to move any object and not just the camera directly. For example, if you had a physics-based FPS game then MovementState could move the physics object representing the player and the camera could then be separately attached to that object (either third person, in the face, whatever).