Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

simple physics code question

Discussion in 'Scripting' started by HarleyK, Jul 2, 2017.

  1. HarleyK

    HarleyK

    Joined:
    Mar 27, 2015
    Posts:
    95
    So I'm not very good with physical movement programming and had a few questions, Right now I'm simply trying to make an object spin on one axis when the player swipes the screen left or right (I already have the swipe code written which is working fine) however i want the object to stay in one place but also have actual slow down physics when the player stops spinning the object so i would like to use a rigid body, what are some thoughts or ideas on this?
     
  2. HarleyK

    HarleyK

    Joined:
    Mar 27, 2015
    Posts:
    95
  3. methos5k

    methos5k

    Joined:
    Aug 3, 2015
    Posts:
    8,712