× Tutorials about Modelling and Texturing form Minecraft

Model positions and translateAll in 1.6.4

  • Posts: 1789
  • Karma: 39
  • Thank you received: 50

Manus created the topic: Model positions and translateAll in 1.6.4

Since 3.0 it is importent to have the 0/0/0 at a specific point. Why? The Zero point is now also working as the mass center of the vehicle/plane. And if this center is not balanced the vehicle will start bouncing like hell.

What does that mean for modelling? Well, it means the model must build exact symmetric. The distance between the center of the front wheel box and the center of the back wheel box must have the same size, also the distance between the centers of the left and right wheel. On tanks, the track box must have the same size to the front as it has to the back of the model.

Building a new model with this knowledge is easy, you just have to build the model around the zero point.

But what is with model you want to update? These models have also to be moved that the zero point at the center between the wheels. Sound awful right? Moving every single part to a new place is a lot of work.

So how to do it in a simple way...

With Flans mod 3.0 i created a new parameter you can add to you model java file.

translateAll(0, 0, 0);

This parameter will move the models part for you, so you have only figure out the value (x/y/z) your model has to be moved.

Example:
translateAll(15, -2, 0);

This will move the complete model 15 px to the front and 2px up

#18032
The topic has been locked.
  • Posts: 1073
  • Karma: 1
  • Thank you received: 0

MegaStannyBoy replied the topic:

If an aircraft has 2 wheels, can these wheels be at (20,-10,20) and (20,-10,-20)? Or should it be (0,-10,20) and (0,-10,-20)

#18035
The topic has been locked.
  • Posts: 899
  • Karma: 26
  • Thank you received: 53

TaskForce51 replied the topic:

Can you please release a mech template for techne?


The Big 51
#18037
The topic has been locked.
  • Posts: 5206
  • Karma: 40
  • Thank you received: 50

TheOrion replied the topic:

Just use the Vehicle one.



MVP Ostwind
#18038
The topic has been locked.
  • Posts: 1789
  • Karma: 39
  • Thank you received: 50

Manus replied the topic:

The wheels can be anywhere. you just have to keep in mind that the model will fall on the side there the zero point is

#18039
The topic has been locked.
  • Posts: 899
  • Karma: 26
  • Thank you received: 53

TaskForce51 replied the topic:

oh okay


The Big 51
#18043
The topic has been locked.
 
Latest Forum Posts
 
Latest Blog Posts
 
User Online
 
User Menu