× Post your Help request here

Decimals with shapeboxes?

More
2 years 4 months ago #78392 by Skullmassarce7
I saw a model earlier today that had decimals in it's shapeboxes. For some reason, I cannot seem to add these decimals to make those beautifully accurate shapeboxes. Can someone tell me why?

(Btw, I am not using the latest version of toolbox 2.0. I am using 2.2.2.4)
The topic has been locked.
More
2 years 4 months ago #78400 by Manus
Replied by Manus on topic Decimals with shapeboxes?
the size of a box must be always an integer which mean 1, 2, 3... and so on.

the modifier of the corners can be decimal value size the shapebox was created
The following user(s) said Thank You: Skullmassarce7
The topic has been locked.
More
2 years 4 months ago #78401 by Prototype
Replied by Prototype on topic Decimals with shapeboxes?

Manus wrote: the size of a box must be always an integer which mean 1, 2, 3... and so on.

the modifier of the corners can be decimal value size the shapebox was created


Actually regular boxes don't need to have integer sizes. I have no idea how you do it but some of Flan's gun models use this. However Toolbox doesn't support this because nobody really knew about it.

But yeah, as manus said, just edit the corners of the shapebox to get the size you want.


Stephen King wrote: “Don't ask me silly questions
I won't play silly games
I'm just a simple choo choo train
And I'll always be the same"

The following user(s) said Thank You: Skullmassarce7
The topic has been locked.
More
2 years 4 months ago #78402 by Skullmassarce7
Thank you both for your help! And also, I noticed that some people's content packs get published as a blog. How can I get mine published?
The topic has been locked.
More
2 years 4 months ago #78407 by Manus
Replied by Manus on topic Decimals with shapeboxes?

Prototype wrote: Actually regular boxes don't need to have integer sizes. I have no idea how you do it but some of Flan's gun models use this. However Toolbox doesn't support this because nobody really knew about it.


I'm afraid but this is not correct ;)

if you have a look into the source code you will find this:

public void addBox(float x, float y, float z, int w, int h, int d, float expansion)

x,y,z are the coordinates of the box
w,h,d the dimensions

and as you can see they are integer values :D this also applies for all other boxtypes e.g. shapeboxes, trapezoids...

it would be possible to change it to float, but all models then have to be changed too
The following user(s) said Thank You: Skullmassarce7
The topic has been locked.
More
2 years 4 months ago #78408 by Manus
Replied by Manus on topic Decimals with shapeboxes?

Skullmassarce7 wrote: Thank you both for your help! And also, I noticed that some people's content packs get published as a blog. How can I get mine published?


every user can create a blog here. siply go to

minecraft-smp.de/index.php/blog/

and create a new blogpage
The topic has been locked.
 
Latest Forum Posts
 
Latest Blog Posts
 
User Online
 
User Menu