Experimental Rotation tracker and "handheld" camera

Discussion in 'Utilities and programming' started by SineMatic, Aug 5, 2026.

  1. SineMatic

    SineMatic
    Expand Collapse

    Joined:
    Nov 17, 2022
    Messages:
    74
    This mod adds handheld-like camera movement by tracking phone rotation and sending it to BeamNG. There's also a zoom sequence option that lets you cycle through predefined field of view values. I use this mod only for shooting specific camera angles, not for gameplay.

    app.jpg

    Setup guide

    The mod consists of two parts: the Android app and the BeamNG mod. You can build the app with Android Studio from the source code, or use the pre-compiled .apk file.

    Firstly, you'll need to connect your phone to your PC in USB tethering mode. Connecting both devices to a Wi-Fi network should work too, but I didn't check that.

    Check your local IP address by typing this command in CMD:

    Code:
    ipconfig /all
    Search for the IPv4 value:

    2.jpg

    Then open the app and enter the IP address to the first field. Press "Apply IP & start sending":

    3.jpeg

    Now open BeamNG and make sure that the 'handHeld' camera has appeared in the vehicle camera list:

    4.jpeg

    If everything is ok, press Alt+B to start the mod (the settings window should appear). Switch either to free or to handheld vehicle camera (adjust the offset in the 'Node camera' tab).
    Now if you press the left mouse button, you will notice that the in-game camera follows your phone rotation.

    Note 1: the phone screen has to be on with the rotation tracking app running.
    Note 2: hold your phone like a remote, not like filming something.

    You can add, remove and edit zoom steps in the 'Zoom sequence' tab. If you press the middle mouse button, the camera will go to next predefined FoV value (notice how the arrow points at the current zoom step):

    5.gif

    The camera can be assigned to any node:



    To turn off the mod, press Alt+B again.
    Update 1.1: camera smoothing and small refinements
    Now it is possible to adjust camera smoothing. Also, holding LMB is not forced anymore, there's a new checkbox to turn that off.

     

    Attached Files:

    #1 SineMatic, Aug 5, 2026
    Last edited: Aug 18, 2026
    • Like Like x 3
  2. mambamambo69

    mambamambo69
    Expand Collapse

    Joined:
    Nov 16, 2018
    Messages:
    54
    very cool !
     
  3. OMG its Karter

    OMG its Karter
    Expand Collapse

    Joined:
    Jul 1, 2026
    Messages:
    3
    Any plans of an iOS release? Super cool mod.
     
    • Like Like x 1
  4. SineMatic

    SineMatic
    Expand Collapse

    Joined:
    Nov 17, 2022
    Messages:
    74
    No
     
  5. blackrose

    blackrose
    Expand Collapse

    Joined:
    Dec 12, 2025
    Messages:
    8
    this is VERY awesome! are you planning on developing this any further or adding some kinda of smoothing?
    some things that helped for me was reducing the delay in app, recording in slow motion to get smoother movement, and using motion stabilization when editing the video.
    Additional suggestions would be not requiring LMB to be held to activate tracking, being able to hold the phone in a "recording" orientation, and maybe zoom controls on the app
     
    • Like Like x 1
  6. Skrratt_

    Skrratt_
    Expand Collapse

    Joined:
    Nov 18, 2021
    Messages:
    1
    100% agree, smoothing would be so nice to add, with the delay even at 1 it is still incredibly choppy when zoomed in. and not having to hold the mouse button down would be a nice quality of life thing too. other than that this is a sick way to film some stuff!
     
  7. Adi08

    Adi08
    Expand Collapse

    Joined:
    Aug 14, 2026
    Messages:
    1
    Used this mod for not even an hour to try it out and deleted it yesterday but today I had 6 different folders with random names which include two pictures of the app logo in them... Dk why that is but just found it weird
     
  8. blackrose

    blackrose
    Expand Collapse

    Joined:
    Dec 12, 2025
    Messages:
    8
    The rotation_tracker_source_code_and_apk.zip contains the apk and the source code. You extracted the source code to your phone along with the APK.
    it has 5 folders at \source\rotationTracker\app\src\main\res\mipmap-*** that contain icon photos, and the parent folder, \source\rotationTracker\app\src\main has a logo as well
     
  9. 143thpeimer

    143thpeimer
    Expand Collapse

    Joined:
    Aug 16, 2026
    Messages:
    1
    it is not possible to do that on IOS because of how IOS is made, different os architecture, safety things and more, android is more like opened, so, you can do it only on android because of how unlocked that is
     
    • Agree Agree x 3
  10. SineMatic

    SineMatic
    Expand Collapse

    Joined:
    Nov 17, 2022
    Messages:
    74
    Thanks for feedback, didn't expect the mod to get this much attention :D. I added smoothing and the "Hold button to track rotation" checkbox. No changes to the app.

    The delay should be set according to your screen refresh rate, 15 milliseconds are fine if the game runs at 60 fps.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice