edited June 2015 in Makinom Support
whats the best method of controlling the cam with the mouse atm im using mouse position but i dont see a way to control the rotation speed. or am i just missing some fundamental here ?
Post edited by wtyson on
new website can be found here http://www.fore-loregames.com

Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

or check out the face book page here https://www.facebook.com/ForeLoreGames
  • Usually for first person controls, you'd use the mouse to rotate the player's game object horizontally (Y axis) and the camera vertically (X axis).

    I'd recommend setting up 2 inputs in the Unity input manager for the X and Y mouse movement and use them as input keys in Makinom.
    Once you've set up the inputs, use a Rotate node to rotate the camera/player. This node is designed for per frame changes and allows setting a rotation speed. If you like to do it more complex, you can also first do some variable changes using the mouse input (or use formulas) to add sensitivity options that could be changed by the player (Game Options Dialogue), etc.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • hmm ok i think i get it ll see what i can come up with thanks
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • edited June 2015
    I'll be adding stuff like this in the schematics tutorials in the next weeks, but you probably know how it is - lots of stuff to do :)
    Post edited by gamingislove on
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • yeah im trying to make this work issue im having is that the rotate node rotates the camera... which then in turn rotates the object its attached to... an then the controls for the moving forward an backwards is not working like it should im using the shooter tutorial as a bases for just the basic move forward an backwards movement. have my mouse movement input keys set up but im still not sure how these are suppose to work since its rotate the camera in a circle

    rotate node

    image


    move node

    image
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • edited June 2015
    I should add that my camera is part of my player prefab. ( need to do this for any kind of fps game)
    Post edited by wtyson on
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • ok fixed horizontal movement so now to work on getting cam to rotate in the direction of the mouse. sept i have to lock y movement at like a 90 degree angle
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • ok i got a working fps controller now took a bit but got it working ^^
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • And once again you don't share the details so the rest of us can't profit from your findings... :P
  • yeah gimmie a sec not much difference than what i did before sept i separated it. gimmie a min an ill post the set up for the nodes rest is pretty self explanatory
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • Hehe :)
    Like I said - rotate the player with the horizontal mouse move, otherwise you'd rotate the camera perspective and still run forward, looking to the left or right.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • goign to be a bit still workign out hot to rotate body with cam
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • If you're using a Set Player schematic on your player's game object, you'll always be able to use the player as a game object by selecting the Player in an object field.

    Otherwise, when the camera is attached to the game object you want to rotate, you can just use the camera and enable Use Root and the root game object will be used.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited June 2015
    yeah im still confused on how to rotate the body with the cam? just need the horizontal axis which is y but even using rotate an setting it with the machine object dosent work
    Post edited by wtyson on
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • edited June 2015
    If the machine is running on the camera, use the machine object and enable Use Root (below the object selection). If you don't have that setting, update to the latest version 1.0.0 :)

    Or, when the camera isn't attached, use the Player object selection.
    You need the X axis of the mouse move input, but rotate the Y axis of the game object.

    E.g.:
    - set Vector3 Type to Set Axis
    - leave X and Z-axis rotation at 0
    - set Y-Axis to Input Key Axis and select your horizontal mouse move input key
    - set the rotation speed to whatever suits you :)
    Post edited by gamingislove on
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • i have all my machines on the root of the player

    heres what ive tried

    move schematic

    image


    and heres the cam

    image


    seems no matter what i get the cam turning but the player will not move with it
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
Sign In or Register to comment.