1. #511

    Re: Visual Flowchart Editor Tutorials {69} and counting...

    actually 2 axis movement isn't that hard

    you can use a custom camera move it to the spot of the object you want to rotate
    place a dummy or whatever you want as target
    then just use the angles of the camera to rotate your object

    i actually made this a long time ago for a heat seeking missile but back then u used an extra operand to make it face in the right direction causing it to glitch for certain quadrants

    this however can probably all be solved if you use a custom pivot that is altered to make it face the right direction

    a problem remains is that the camera needs to be active and that it would change cameras when it is within the range
    Share this post

  2. #512
    Blastergamer's Avatar Senior Member
    Join Date
    Mar 2014
    Location
    Rocking Trials Country
    Posts
    2,539

    Re: Visual Flowchart Editor Tutorials {69} and counting...

    Nah, forget about the very, very, very complicated coding. I just used a custom camera with 0.10m range and match up it's rotation and it worked fine thanks to lukkey19!
    That took me only:
    A interval trigger,
    Object position Event,
    Vector object info data source,
    Get vector,
    Two Input Operators and
    a custom camera.
    So, I used 6 things for two axis rotation!

    I just wanted to move forward with my skill game and didn't want to wait longer to solve it.

    But still thank for your suggestions.


    edit: Wow, Sparkierjonesz posted before me and I didn't see.
    Share this post

  3. #513
    nannerdw's Avatar Senior Member
    Join Date
    Jan 2013
    Posts
    1,268

    Re: Visual Flowchart Editor Tutorials {69} and counting...

    Originally Posted by sparkierjonesz
    actually 2 axis movement isn't that hard

    you can use a custom camera move it to the spot of the object you want to rotate
    place a dummy or whatever you want as target
    then just use the angles of the camera to rotate your object

    i actually made this a long time ago for a heat seeking missile but back then u used an extra operand to make it face in the right direction causing it to glitch for certain quadrants

    this however can probably all be solved if you use a custom pivot that is altered to make it face the right direction

    a problem remains is that the camera needs to be active and that it would change cameras when it is within the range
    Excellent
    You should make a tutorial for it, and I'll link to it from my math-heavy version.
    Share this post

  4. #514
    Blastergamer's Avatar Senior Member
    Join Date
    Mar 2014
    Location
    Rocking Trials Country
    Posts
    2,539

    Re: Visual Flowchart Editor Tutorials {69} and counting...

    I made a tutorial for the camera rotation tracking, but i need to check with the OPE and camera before it's really finished.
    https://docs.google.com/drawings/d/1...9zsJtUypw/edit
    Share this post

  5. #515

    Re: Visual Flowchart Editor Tutorials {69} and counting...

    Originally Posted by Blastergamer
    I made a tutorial for the camera rotation tracking, but i need to check with the OPE and camera before it's really finished.
    https://docs.google.com/drawings/d/1...9zsJtUypw/edit
    instead of operands i would just use a glue joint and rotate it so it gets align with the cam
    this way it 'should' also work if you want to move the rotating object

    all whats needed extra is just an ope to move the camera to the objects position
    Share this post

  6. #516

    Re: Visual Flowchart Editor Tutorials {69} and counting...

    Nice, I've already used nannerdw's version for my skill game but this looks good.
    Share this post

  7. #517
    Blastergamer's Avatar Senior Member
    Join Date
    Mar 2014
    Location
    Rocking Trials Country
    Posts
    2,539

    Re: Visual Flowchart Editor Tutorials {69} and counting...

    Originally Posted by sparkierjonesz
    Originally Posted by Blastergamer
    I made a tutorial for the camera rotation tracking, but i need to check with the OPE and camera before it's really finished.
    https://docs.google.com/drawings/d/1...9zsJtUypw/edit
    instead of operands i would just use a glue joint and rotate it so it gets align with the cam
    this way it 'should' also work if you want to move the rotating object

    all whats needed extra is just an ope to move the camera to the objects position
    Yeah, ok, you can do this but I want to use the operator way.

    But yes, OPE the camera to the object! Thanks spark!
    Share this post

  8. #518
    dasraizer's Avatar Senior Member
    Join Date
    Apr 2014
    Location
    UK, Isle of Wight
    Posts
    1,195

    Re: Visual Flowchart Editor Tutorials {69} and counting...

    Share this post

  9. #519
    Blastergamer's Avatar Senior Member
    Join Date
    Mar 2014
    Location
    Rocking Trials Country
    Posts
    2,539

    Re: Visual Flowchart Editor Tutorials {69} and counting...

    Share this post

  10. #520
    dasraizer's Avatar Senior Member
    Join Date
    Apr 2014
    Location
    UK, Isle of Wight
    Posts
    1,195

    Re: Visual Flowchart Editor Tutorials {69} and counting...

    Originally Posted by Blastergamer
    this is a good method, however adding an offset to the rotation that are used as global rotating in the OPE is a bad idea, this is because the pitch value will play havoc with the yaw/bank if it goes outside its scope 90-270 degrees, when the pitch transitions these values it flips the yaw/pitch 180 degrees. the only way to get around this as was suggested is to use a glue pivot object rotated so the tracking object matches the camera.
    Share this post