loading
 
Vb script to determine ball in region
from Malaysia  [14 posts]
8 year
I need help to determine ball position in 4 quadrant, which is quadrant 1 to quadrant 4 by using the line as  i attach the picture for reference. Also how write the vbscript for line to relate the positon of ball,

Thanks in advance .

 

program.robo
Steven Gentner from United States  [1446 posts] 8 year
James,

A couple of If_Statements checking the COG of the object should do it. Note, the specific quadrant labels are probably NOT what you want ... but you should be able to figure out how to change them to the correct 1,2,3,4 labels.

See attached.

STeven.
program.robo

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index