Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Question Where to start on locking target reticle for throwing an object?

Discussion in 'VR' started by cnitti, Jan 12, 2023.

  1. cnitti


    Oct 5, 2022
    I've got a multiplayer game in process with players at desks with no locomotion. One of our powerups is a throwable item, which I'd like to lock on to desk locations as you aim the motion controller. Instead of implementing a physics-based throw, which would create struggles with accuracy, I just want the player to see when their reticle is locked on to the right desk, and be able to press trigger to initiate the throw.

    I'm really not sure where to start with this. One major question is how to create a simple parabolic trajectory for the thrown object that hits the chosen target every time. The other part is figuring out how to track continuous motion controller data as the player scans over targets, and causing the reticle to "lock" on to a target... Thanks in advance for any best practices for implementation.