PL/Vehicle component manipulation

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

Manipulacja częściami pojazdu

Wraz z wprowadzeniem ruchów częściami pojazdu mamy teraz możliwość manipulowania częściami samodzielnych modeli w pojazdach, które zawiera ukryte części, ruchome części i obracane części w stosunku do pojazdu.

Możliwości

Pozycja: Możesz zmienić położenie części w stosunku do podwozia

Obracanie: Możesz obracać część wokół jego osi

Ukryj/Pokaż: Możesz schować część, więc to już nie jest pokaz

Jak to działa

Dodawanie elementów jest bardzo proste, jeśli nie masz żadnego doświadczenia w modelowaniu, każda część modelu może mieć nazwę jako unikatowy identyfikator dla części.

dla łatwości użytkowania jest możliwe, aby dodać ukryte domyślnie komponenty poprzedzając tę ​​nazwę znakiem # w pliku modelu, choć to nie będzie działać na wszystkim, gra rozpoznaje na przykład koła, lecz nie mogą być domyślnie ukryte, więc to może być najlepsze, aby poprzedzić wszystko co chcesz dodać.

tak więc: #hellokitty

To może być ponownie przedstawione w każdej chwili.

Wszelkie części muszą być co najmniej pod manekinem podwozia.

Simple things

The scripting functions make things like adding wheels very easy it should be fairly easy to add and spin wheels by copying the rotation from others into your wheel each frame and you can hide the originals using the hide function if need be.

This could be useful for an insane amount of wheels on a tank!

or just making more than 2 props work on planes

Generally speaking things that spin are fairly easy to do it's more complex animations that require the hardest work but eventually there should be an animation library on google code when it's finished to help with this.

An interesting idea

It should be theoretically possible to add different types of doors to one model e.g. gull wings and scissor doors which could work like so:

Hide the original door

say the rotation of your normal door is between 0 and 45 degrees so you use that as a base for your movement

take that rotation and apply it on another axis for a different type of door or split it between axis each frame to get smooth door movement of the new door ( BONUS: it even works with swinging doors! )

Styl James bond

Pistolety, karabiny i ... rakiety? są na porządku dziennym tajnych paneli z ukrytymi rakietami? nie ma problemu!

More advanced

There are no limits on the amount of moving, hidden or showing parts and anything hidden will not be rendered so you can add thousands of parts hidden and you should not have to worry about them slowing anything down.

This means that there is nothing stopping anyone from making a fully transforming transformer robot which changes from a car to a robot but this will require a lot of work on both the modelling and scripting side.