Search Unity

Question Position an object as a reflection of another object

Discussion in 'Visual Scripting' started by joshmeyer, Feb 2, 2023.

  1. joshmeyer

    joshmeyer

    Joined:
    Dec 30, 2022
    Posts:
    4
    I'd like to set the position of object C as a reflection of the position of object A across the origin of object B. So if A moves in relation to B, then C moves opposite.
     
  2. joshmeyer

    joshmeyer

    Joined:
    Dec 30, 2022
    Posts:
    4
    Zeno on discord came up with an awesome solution for this. Thanks, Zeno!
     
  3. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    @joshmeyer so you decided to ask for free help here, but when you got the answer, you don't even bother to share the answer here? I don't think that was the intended purpose of this community forum.
     
  4. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    2,433
    C = B + (B-A)
     
    Olmi likes this.
  5. joshmeyer

    joshmeyer

    Joined:
    Dec 30, 2022
    Posts:
    4
    This is the solution given by Zeno: