Breakthrough - Full camera rotation and directional imput V

6

  • 45
  • 0
  • 1.685
  • Reply

  • Open in the desktop app ADD TO PLAYLIST

    mproxima

    Published on Feb 18, 2022
    About :

    After many and many hours of no progress I finally made an important breakthrough! So very happy.

    I got stuck the longest time after having a rotating camera and movement inputs for the player because I taken the two methods from different schools of coding stuff.
    Well actually almost everyone write code differently and have tiny difference in results, so when I was trying to mesh toghether the styles and make the directional movement
    to be read by the camera system so that no matter where you facing W or Up arrow means foward, S or Down arrow means backward and same goes for left and right.
    I digged everywhere around the web and unity forums finding very useful informations but none that made this work.
    I learned a lot because I'm still lost in all the new ways Unity differs from Game Maker studio and the naming conventions still don't stuck with me. This all process had an idea going of
    making a comparison post on Hive about the practical differences beetwen the engines, for study purpose and practicing on learning to code.

    In the end I needed a solution because I want to move on and play with 3d surfaces and level design and the simplest solution was in keeping the camera I had but loose the player movement script I had for the one in the standard Unity assests. That was a real treasure in the end because the Unity standard assets solved the faster diagonal movement too.

    move = (vVector3.forward + hVector3.right).normalized;

    this how Unity easily handle this problem with .normalized. I still don't fully get it but it works wonders.

    So here we are bouncing around in this new dimension.

    Until next time and have a great weekend everybody! :D

    Tags :

    gaming programming stem neoxian ocd gems threespeak

    Woo! This creator can upvote comments using 3speak's stake today because they are a top performing creator! Leave a quality comment relating to their content and you could receive an upvote worth at least a dollar.

    Their limit for today is $0!
    Comments:
    Time until mproxima can give away $0 to their commenters.
    0 Days 0 Hours 0 Minutes 0 Seconds
    Reply:

    To comment on this video please connect a HIVE account to your profile: Connect HIVE Account

    00:27
    5 views 3 years ago $
    02:30
    3 views a year ago $
    00:13
    6 views 3 years ago $
    00:05
    6 views 3 years ago $
    04:15
    4 views 2 years ago $

    More Videos

    00:41
    41 views a year ago $
    00:20
    3 views 2 months ago $
    02:35
    1 views 2 years ago $
    03:09
    14 views 2 years ago $
    06:59:03
    1 views 5 days ago $
    01:12
    18 views 2 years ago $
    17:17
    42 views 3 years ago $
    00:54
    2 views 2 years ago $
    01:00
    3 views a year ago $