Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
xiayip's avatar
xiayip
Explorer
5 months ago

Interface of getting Controller joystick travel range

Hello,

I’m fairly new to the Meta Spatial SDK, and while reviewing the Controller Input documentation, I couldn’t find any interface that allows retrieving the joystick’s travel range.

What I came across were examples treating joystick directions as “Buttons” (like ButtonThumbRL). However, what I’m trying to do is map the joystick’s travel to an attribute like “velocity.” Is there any way to access this information?

If I’ve missed something, my apologies, thank you!

5 Replies

Replies have been turned off for this discussion
  • h.taylor's avatar
    h.taylor
    Community Manager

    Hi!

    Great question! You mentioned you're looking for thumbstick travel range, are you looking for the maximum teleport distance? If that's the case, I'd recommend looking into the Teleport Interaction documentation here. In combination with the Spatial SDK, this should help clear up questions around teleport distance and thumbstick range. If not, please let me know a little bit more about your project's tech stack, for instance which engine and any other SDKs you might be using, and I'll be happy to do some more troubleshooting! 

    -H

    • xiayip's avatar
      xiayip
      Explorer

      Hi again, thanks for your help! I forgot to mention an important detail:

      My project doesn’t use Unity or Unreal Engine—I’m working exclusively with the Meta Spatial SDK, building a remote-control terminal for a robot. I have no need for a 3D rendering engine and definitely don’t want to integrate Unity just to read joystick ranges.

      Is there any way to obtain the actual joystick travel (axis values) directly through the Meta Spatial SDK?

      As I understand it, Spatial SDK is supposed to let developers build simple apps without needing Unity or Unreal—but it seems many input features (like full joystick axis data) might still rely on those engines. Is that an accurate assessment?

      Really appreciate your guidance—if I’m missing something, I’d be grateful to know where to look!

      • xiayip's avatar
        xiayip
        Explorer

        Just to clarify, I'm not looking for the maximum teleport distance—what I need is the normalized mechanical travel of the controller joystick. For example, when normalized to [0, 1.0], if the joystick is pushed halfway, I receive a value of 0.5, and when it’s fully pushed, I receive 1.0, from Meta Spatial SDK.

        My project is a remote teleoperation system for a robot: the Meta input is the robot’s camera image, and the output is linear velocity command read from Meta Controller joystick.

    • xiayip's avatar
      xiayip
      Explorer

      Hi , thanks for your help! 

      My project doesn’t use Unity or Unreal Engine—I’m working exclusively with the Meta Spatial SDK, building a TeleOperation clinet for a robot, Input Image and out put velocity command from controller,  apparently It don't need Unity or Unreal.
      Is there any way to obtain the actual joystick travel (axis values) directly through the Meta Spatial SDK?