View Single Post
  #1  
Old 10-24-2011, 10:12 AM
fivel_lab fivel_lab is offline
Member
 
Join Date: Mar 2011
Posts: 36
getting position relative to an object

i'm running an experiment using vizard, and the experiment consists of having a balance board apparatus with a block placed at the boards center. the board starts to tilt at the start of a trial, and as it does so the block starts to slide accordingly. participants are tasked with keeping the board stable and the block within a target region that is located 1/4 of the board's length on the left side.

the board's color is black, as is the block's. the target region is denoted by a white block that has been added as a child to the board.

what i would like to do is have the block's color change to white whenever it is within the target region. problem is, i don't know how to obtain the block's position relative to the board, rather than the world without setting the block as a child of the board. any suggestions?
Reply With Quote