Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 21-Jul-2014 05:58:03

tatsuya
Member
Registered: 1-Apr-2014
Posts: 22

The interaction of two marker by a distance

hello admin,
i want ask something about determine the distance marker on the screen. i want make simple application where when i tracking marker and show object (3D), the object do nothing and when i tracking another marker and show another object (3D) the object still do nothing, but when two marker close on a certain distance the object play animation and rotate, so as to face each other.
And when the marker in the distance is far the object stop play animation and back to first position(back rotate).
how to Defining the distance between two marker on openspace 3D?
and,it is posible on openspace 3D? and how logic to do that with plugIT?

Offline

#2 21-Jul-2014 08:05:13

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,091
Website

Re: The interaction of two marker by a distance

Hi,

first you need to be careful of the object sizes and have the same marker size (in plugIT parameter), so it will be easier to determine the distance.

Then you can use the object distance plugIT to trigger an event on the objects distance.

Offline

Board footer

Powered by FluxBB