Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How can i make a cube move like this

Discussion in 'Scripting' started by zlbdemon, Jul 27, 2014.

  1. zlbdemon

    zlbdemon

    Joined:
    Jun 3, 2014
    Posts:
    8
    Hi guys,
    I am a total new coder for c# &unity,so i will ask a simple and a little stupid question.
    how can i move a cube move this way.
    u=1780095940,234784625&fm=21&gp=0.jpg
     
    Last edited: Jul 27, 2014
  2. carking1996

    carking1996

    Joined:
    Jun 15, 2010
    Posts:
    2,605
    A.) Your image is broken.
    B.) You claim to be a new member, but I've seen a thread asking the same question yesterday.
     
  3. zlbdemon

    zlbdemon

    Joined:
    Jun 3, 2014
    Posts:
    8
    Sorry about the image.
    this is the first thread i had posted. i will check soon to see if there is a same question asked.
     
  4. carking1996

    carking1996

    Joined:
    Jun 15, 2010
    Posts:
    2,605
    What are you asking? I can't see a cube move in a still image.
     
  5. zlbdemon

    zlbdemon

    Joined:
    Jun 3, 2014
    Posts:
    8
    how can i make the cube roll around the edge ? like this game.haven't you ever played this game?
     
  6. abdoubelbala

    abdoubelbala

    Joined:
    Aug 4, 2012
    Posts:
    51
    The same of my questions in another thread you want the cube do jst like that

    you need to make a emty object in the center of the cube and write a script to controlle the cube and the empty object
    i just found somethin yestready like that
    http://unitynoobs.blogspot.com/2011/02/roll-cube.html
     
  7. zlbdemon

    zlbdemon

    Joined:
    Jun 3, 2014
    Posts:
    8
    That is awesome.Thank you!
     
    abdoubelbala likes this.