Saturday 9 April 2011

Turning the World Upside Down

After looking into various avenues, I have come to the conclusion that the best and most effective way to achieve the "gravity shift" is to rotate the entire level on the same axes as the player. First of all I need to create variables, which will contain the players x,y and z positions, so that I can create a function, which will call these values and hopefully rotate the world around this point. To test to make sure I can return these values, I created the following script, which I attached to a capsule, which I am using for a placeholder.


function Update()
{
var playerx = 0 + gameObject.transform.position.x;
print (playerx);
}

No comments:

Post a Comment