Friday, 17 August 2012

Create plane randomly in Unity 3D

step 1: take 3 plane
step 2:add cube and attach it to plane as a parent and set the tag name to them
step 3:add one cube to move and attach rigidbody
step 4:disp_pos=start_pos-initial_pos

step 5 :Script:-
using UnityEngine;
using System.Collections;

public class testproject : MonoBehaviour {

float _movespeed=5.0f;
private int _my_rand_val;

private Vector3 initial_pos =new Vector3(0f,0.904f,-10.03f);

private Vector3 start_pos =new Vector3(0f,1f,6.42f);

private Vector3 disp_pos =new Vector3(0f,0.1f,16.45f);

private Vector3 storeval;
public GameObject green;
public GameObject pink;
public GameObject blue;

// Use this for initialization
void Start () {



// Update is called once per frame
void Update () {

float _moveforward;
float _moveright;




void OnTriggerEnter(Collider other)
if(other.tag == "cube_collider")
print ("fine");


void _rand_func()
_my_rand_val=Random.Range(0, 3);

if(_my_rand_val == 0)
if(_my_rand_val == 1)

if(_my_rand_val == 2)



Character movement with 10 degree slope in Unity 3d


using UnityEngine;
using System.Collections;

public class charactercontrollerscript : MonoBehaviour {

public float speed = 6.0F;
    public float jumpSpeed = 8.0F;
    public float gravity = 20.0F;
    private Vector3 moveDirection =;

    void Update() {
        CharacterController controller = GetComponent<CharacterController>();
        if (controller.isGrounded) {
            moveDirection = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));
            moveDirection = transform.TransformDirection(moveDirection);
            moveDirection *= speed;
            if (Input.GetButton("Jump"))
                moveDirection.y = jumpSpeed;
        moveDirection.y -= gravity * Time.deltaTime;
        controller.Move(moveDirection * Time.deltaTime);


Wednesday, 18 July 2012

Apple will release cut-price iPad Mini this year, says New York Times

2012 has seen a huge shift in the way retailers, consumers and manufacturers approach tablets, following the success of Amazon’s Kindle Fire and Google’s recently launched Nexus 7. The latter of which, with its sub-£200 price tag and high-end specification, is one of the most compelling tablet propositions we’ve seen since Apple first launched its iPad way back in 2010.
Google’s Nexus 7 has finished what Amazon’s Kindle Fire started in the US last year: it created a more than viable option for users that don’t want to pay Apple prices for a decent tablet experience.
Tim Cook will be fully aware of how the space is evolving and will no doubt have a plan in place to ensure the dominance of Apple’s iPad. Whether this plan is the iPad Mini, however, remains to be seen, although the evidence for it seems to be mounting on a daily basis.  
Given current market trends though a budget iPad Mini does make a lot of sense, as it would enable Apple to theoretically dominate both ends of the market. The vast majority of consumers, when asked about tablets, automatically think of the iPad. Android has yet to get much of a look in. All this, of course, will change in the coming months and years, which is why an iPad Mini now makes a lot of sense.
Apple needs to strike before Google takes the bottom-end of the space.

Monday, 11 June 2012

900,000 new Android devices activated each day

There are close to a million Android handsets being activated every day, according to Android chief Andy Rubin. This number appeared on his Twitter feed earlier today. Rubin doesn't post to the account often and when he does, it's usually to announce something.
The 900,000 figure is certainly impressive, and it suggests that Android's momentum is growing at a consistent pace. On Dec 2010, Rubin announced that 300,000 phones were being activated each day, a year later on Dec 21, he tweeted that the number was now 700,000.
Today's tweet indicates a growth figure of 200,000, and if the trend continues, we will see about 1.1 million Android devices being activated daily at the end of the year.
Lastly, in the same tweet, Rubin also mentioned that he has "no plans to leave Google", putting to restearlier rumors that he was leaving for a new startup called CloudCar.

Monday, 28 May 2012

Five Nexus devices to celebrate five years of Android?

A hot new rumor just hit the internet which suggests we'll be celebrating Android's fifth birthday in a major way this November. According to a trusted TalkAndroid source, we'll be getting five Pure Android/Nexus devices come November 5th.
It's not clear whether this means an announcement or actual release however we wouldn't care either way. We're all for multiple hardware makers getting involved with the Nexus project and this new rumor does little to temper our enthusiasm.
While we must maintain that this is nowhere near confirmed we can't help but wonder which five we might see. We'd love to hear from you guys on this one. If you could pick the top five Android companies for a Nexus device, what would they be? Sound off in the comments below
source:  AndroidGuys.