Search Unity

Spin a Sphere under FPS Controller

Discussion in 'Scripting' started by Ka Ora!, Apr 19, 2010.

  1. Ka Ora!

    Ka Ora!

    Joined:
    Mar 11, 2010
    Posts:
    7
    After not being able to solve my gravity issues with the FPS on a Sphere, I decided to try and come up with a Work Around. Can anyone think of a way of Spinning a Sphere around under the FPS as to Simulate being on a world Asteroid kind of thing, I would like to hopefully spin everything within the Galaxy so to speak so the sky moves in the correct fashion as you do across the Sphere.
     
  2. BlackMantis

    BlackMantis

    Joined:
    Feb 7, 2010
    Posts:
    1,475
    So you want the planet to spin under you, kind of like if you stop walking you will start moving, like a tread mil.

    To rotate things i use

    function Update () {
    transform.Rotate(10* Time.deltaTime,0,0);
    }

    Most of the time. works good for a solar system or galaxy. :D

    Not sure from the details what a world Asteroid kind of thing is :D So i hoped this Helped you.