|
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
|
|