Log in or register to post comments

Solar sytem demo

September 19, 2016 - 11:07am #1

I'm trying new things with Vuforia & Unity

After trying several things I've thought of what should be next thing I should try to implement

StateManager manager = TrackerManager.Instance.GetStateManager ();

  IList<TrackableBehaviour> activeTrackables = (IList<TrackableBehaviour>)manager.GetActiveTrackableBehaviours ();

  count = activeTrackables.Count;

  tx.text = activeTrackables.Count.ToString ();

  foreach (TrackableBehaviour behs in activeTrackables) {

   if (count != 0)

    listTracks.Add (behs);


    listTracks.Clear ();


This code shows the list of tracked images.

There is also one more problem activeTrackables.Count.ToString() is giving value 2 while activeTrackable,Count is setting value 0 to count variable. Which doesn't allow code 

I can get the list of tracked images, I can also get the number of images tracked which is 2 when I scan Earth & Sun image.

But I want to do something like..

I have two markers Sun & Earth. Sun will display normally but when I put sun & earth marker beside each other, the earth will start to rotate around the sun.

Is it possible in any way?


thanks for your help in advance..

Log in or register to post comments