3d objects in java

From WebHostingNeeds.com
Jump to: navigation, search

Every reflection object has a boundary around it. Picture a box around it. When you give nexus ibot a reflection I.D. it clicks within that boundary. Sometimes that boundary is to big and a mis-click will occur causing the script to mess up. Because of this, Nick made us a nice little scripting tool called ExaParameterEditor. This will edit the box around the object.

To do this open up ibot, click on passive scripts, then click ExaParameterEditor. Then a box will pop up. At the bottom of that box type in the reflection I.D. for the object you want to edit the boundaries for. When you you type in the number, a box will appear around the boudary of the object you are wanting to edit the boundaries of. Then play with the sliders untill you get the box on the object where you want it. When you do, you will use the numbers you see next to the sliders in your script.


http://www.youtube.com/watch?v=3vXkToG4eP0

Then you'll add this to your script:

Object3D Whatever= new Object3D(-64, 64, -64, 64, 0, 250, false); 

The numbers are the numbers you got from the JSliders.

Now that you have the 3D object boundary, I'll teach you how to use it later.


Dimensions:

Dimensions are a practical little tool that most physical object(such as a tree) finding methods use, and here's what one looks like.

int[][] dimensions = new int[][]{{id, xStart, xStop, yStart, yStop, zStart, zStop}}; 

Or if you want it to find more than one physical object...

int[][] dimensions = new int[][]{{id, xStart, xStop, yStart, yStop, zStart, zStop}, 
{id, xStart, xStop, yStart, yStop, zStart, zStop}}; 

Just add in a comma and a second set of dimensions.


Complete iBot neXus Scripting Tutorial by Durenir, Updated by Chen (Monopoly)

ibot