edited June 2015 in Makinom Support
just as the title says is there a way to lock how farm something can rotate. i got my controller working an what not but the rotation is stuck at 360 degrees an i dont see a way to lock it to say a 90 degree rotation
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
  • Try using the Clamp Transform step to limit the rotation between defined values.
    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!
  • seems to just clamp it in the direction you set like if i set it with min at -90 an max at 90 on x rotation itll just clamp it in that direction
    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
  • Hm, yeah, could be that the clamp node isn't ideal for rotations - you can try checking the individual rotation axis using a Check Value node and set it if they exceed whatever values you need.
    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!
  • ill test it out an see what i come up with
    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
  • Will also try to add a better node for rotation limits :)
    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!
  • cool thank you
    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 so this is what i came up with an still dont seem to work unless i got a setting wrong some place. i have these set to local vector 3 variables

    image

    image

    this still dose not stop the 360 rotation on the x axis :/
    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
  • heres also a pic of the tic machine where i set the vars ... just incase i did something wrong here to .hopefully im doing it all right.

    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
  • You need to check the rotation of the game object, the mouse input isn't the rotation but the mouse movement.

    I.e. do the rotation with the mouse input, after that, check the rotation if it's beyond the limits you want and set it to the limits if it exceeds the value.
    Also, keep in mind that rotation vectors are looping, i.e. -90 could also be 270, 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!
  • edited June 2015
    so following your advice i checked the rotation of the camera an still dont get any kind of good results heres pics of new set up

    an since im going from x axis set at 0 going a 90 degree angle for looking down an -90 degree's for looking up is correct numbers


    check transform step
    image

    change rotation step

    image
    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
  • I don't know if you're doing that in a 2nd Check Transform node, but you'll probably also need to check for -270, due to rotation vectors looping around ...

    You could disable the rotation limiting for now and check the rotation of your camera when you rotate it with the mouse - you'll see the values you'll need to check for.
    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 did that why i said its 90 an -90 if you look at any mouse look script its set up the same way
    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
    Will do some tests.

    Edit: Ok, will add new options to clamping for rotation clamping.
    Also, try clamping Y and Z axis to 0 to prevent them changing due to X rotation changes (e.g. when looking straight up or down).
    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!
  • so as of now if i clamp will it work or am i waiting on the new options?
    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
  • It will probably not work - at least in my tests I ran into the looping issue, but it may work on your end (using Y/Z clamp 0).
    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!
Sign In or Register to comment.