Pathposition() Question

Discussion in 'Technical Discussion' started by Rob Fitzgerald, Oct 28, 2018.

  1. Rob Fitzgerald

    Rob Fitzgerald Boxer

    Joined:
    Oct 5, 2018
    Messages:
    4
    Likes Received:
    0
    Can someone explain why I need to get the pathPosition? I understand getting the path, and getting the positionOnPath of and entity, but what is pathPosition? It makes me feel that this is the camera's path or something. Does the Path move?

    Thanks in advance!
     
  2. Rob Fitzgerald

    Rob Fitzgerald Boxer

    Joined:
    Oct 5, 2018
    Messages:
    4
    Likes Received:
    0
    This is the code from BB 'Wake Up' which is what I am specifically referring to...

    let path = this.scene().path();
    let posOnPath = path.positionOnPath( this.entity() );
    let pathPos = path.pathPosition();
     

Share This Page