OMSI ge門其實做得相當唔錯,
玩得耐你會發覺每次開氣動門都好似有d唔同咁
但佢個script就相當覆雜......
睇極都睇唔明....

儘管點迫真,都做唔到外趟式下車門ge效果.....
以我架ATE為例,
用Translate x同translate y 兩個motion可以令到度門開到一個arm ge位置,
但個motion係直線motion,並不是"彈開"...

ATE 門ge motion應該係咁:

咁就唯有係script度出手,
我寫左段script,
以後大家可以就咁set度門幾時係乜position,
就可以做到彈出黎ge translate效果.....

請注意:以下教學只適用於外趟式下車門!

先開script\door.osc (最好backup左先,再去翻.bus度link翻你backup ge file)

{macro:Door_Frame} 度加幾行
(M.L.Door0_Calc)
(M.L.Door1_Calc)
(M.L.DoorAftCalc)
(M.L.Door2_Calc)
(M.L.Door3_Calc)
(M.L.Door2_framex) door 2係指落車門ge左門, door3係右門
(M.L.Door2_framey)
(M.L.Door3_framex)
(M.L.Door3_framey)

係{macro:Door2_Calc}之前加呢兩行:
{macro:Door2_framex}
(L.L.door_2) (F.L.door2_xposition) (S.L.door2_positionx)
{end}

{macro:Door2_framey}
(L.L.door_2) (F.L.door2_yposition) (S.L.door2_positiony)
{end}

係{macro:Door3_Calc}之前加呢兩行
{macro:Door3_framex}
(L.L.door_3) (F.L.door3_xposition) (S.L.door3_positionx)
{end}

{macro:Door3_framey}
(L.L.door_3) (F.L.door3_yposition) (S.L.door3_positiony)
{end}

以後開door_constfile,加呢幾行,並係度改數字:
Door2 Xpoition
[newcurve]
door2_xposition
***x position係指度門向外彈ge motion,你當佢係個x-y plane咁睇,
[pnt] ge第一個value係度門ge狀況,0係未開,1係全開,中間就係開緊
第二個value係彈出去ge position,0即係冇彈,1就彈到盡
set point ge數目視乎你ge motion,
我架ATE set左10個point,去做彈出去再收翻入少少ge效果

[pnt]
0
0
[pnt]
1
1

Door2 Ypoition
[newcurve]
door2_yposition
*** y係指度門y position ge movement,即係橫向係點郁.....
如果整AVBWU果類門,由開門0 - 0.1 ge 時間可以將x由0變到1,由開門0.1-1就將y由0變到1
[pnt]
0
0
[pnt]
1
1

Door3 Xpoition
[newcurve]
door3_xposition

[pnt]
0
0
[pnt]
1
1

Door3 Ypoition
[newcurve]
door3_yposition
[pnt]
0
0
[pnt]
1
1

改完之後,開door_varlist.txt,加翻呢4行:
door2_positionx
door3_positionx
door2_positiony
door3_positiony

最後,翻翻去model.cfg,
每度門加兩個newanim, 1個for _positionx, 1個for _positiony
落車門ge command改翻做 door2_positionx, door2_positiony, door3_positionx 同 door3_positiony

translate x ge animation 個command變左咁:
[newanim]
origin_trans
0
0
0
origin_rot_x
90
origin_rot_y
0
origin_rot_z
0
anim_trans
door2_positionx
-0.11 <= 呢個自己adjust la

順帶一提,origin_trans唔set都得,因為我係做緊translate,唔係rotate......

呢個係我ge門:

好!祝大家整好度門,出入平安!