Forum Discussion

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

Meta XR Interaction SDK - Portals for VR - Feature request on CapsuleLocomotionHandler

Hi,

I'm the developer of the unity asset "Portals for VR".


I'm building an integration with the XR interaction SDK. In order to portal seamlessy and without a change in your velocity using the rig used in the "LocomotionExamples" scene I would need a get/set on the propery _velocity used in CapsuleLocomotionHandler.

Currently when a CapsuleLocomotionHandler receives a LocomotionEvent the _velocity is being set to zero. In the case of a portal instantly teleporting you somewhere with a change in rotation you want the velocity to also be "teleported". Meaning the vector needs to be rotated with the difference of rotation between the portals. Getting access to the _velocity vector would allow me to set it after sending out the LocomotionEvent.

I can't seem to find a better location (like a github repo or something) to get access to the devs a pointer to where this message might get picked up would be appreciated.

Alternatively I could create my own copy of the CapsuleLocomotionHandler but would love it to be plug and play on top of all the existing examples.

Thanks!

Tom

 

2 Replies

Replies have been turned off for this discussion
  • Hi Fragilem17,

    Thanks for your feedback.
    For setting the Velocity you can send a LocomotionEvent of type Velocity with the given velocity in the Pose.position (but keep in mind that if you are crouching or sprinting the speed might be modified).

    But for reading (or setting directly) the velocity you are right there is no public getter. We can include it but will still take a few versions until it get to you.



    • Fragilem17's avatar
      Fragilem17
      Explorer

      The only way for me to set the correct Velocity is to first get the original velocity, so a readonly property would be amazing if that would get included in a future version.