GithubHelp home page GithubHelp logo

ezio416 / tm-pad-freecam Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 7.82 MB

Openplanet plugin for controlling cam 7 with a gamepad

Home Page: https://openplanet.dev/plugin/padfreecam

License: MIT License

Python 8.61% AngelScript 91.39%

tm-pad-freecam's Introduction

Signed Number of downloads Version Game Trackmania

Pad FreeCam

Allows you to control FreeCam (Cam 7) with a gamepad. Since there is no default camera 7 binding for a gamepad, it is advised that you set one, else you will need to reach up to your keyboard to enable it. This plugin will grab inputs from the first device connected that is not a mouse or keyboard, so for consistent functionality, you should only connect a single gamepad.

The camera moves similarly to how it normally would with mouse/keyboard, but does not yet ramp up speed. Since this plugin uses analog controls, you can simply move more slowly by moving the controls less.

The left stick is used to move as you normally would with the keyboard (forward/back/left/right). The right stick is used to pan the camera as you normally would with the mouse (up/down/left/right). The triggers are used to move vertically regardless of your camera direction (up/down).

There are configuration options such as swapping controls, setting a deadzone, setting the max speed, etc. with more coming in future updates.

image

tm-pad-freecam's People

Contributors

ezio416 avatar

Stargazers

Riccardo Novic avatar

Watchers

 avatar

tm-pad-freecam's Issues

allow choosing gamepad

shouldn't be very common but if multiple pads are connected there should be an option to select one of them

use default cam 7 values

Unless there is a way to enable normal cam 7 without kb controls, I think it will be tricky to implement acceleration and make the camera feel exactly as it does normally

optimizations

small amount of math can be optimized, don't feel like doing right now tbh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.