KURUMA
Downloadダウンロード
KurumaMod / Car Pack Guideカーパック作成ガイド / Car車

Make a car車を作る

Body model, lights, glass and mirrors, file layout and JSON, sounds, and the spec.車体のモデル、灯火・ガラス・ミラー、置き場所と JSON、音、諸元(走り)。

最小の車を作る

Make a minimal car

新しい車を 1 台ゲームに出すのに、これだけは要るという流れです。各手順の詳しいことは、手順の最後にある章にあります。ここでは、パックの名前を mypack、車種の名前を ae86 とします。

The bare minimum to get one new car into the game. Each step links to the chapter with the details. Here the pack is called mypack and the car ae86.

手順

Steps

  1. Blenderゲージを置く。→ 1 章
  2. Blender車体をモデリングする。 → 2 章
  3. Blenderモデルを書き出す。 → 5 章
  4. ファイル車の JSON を配置する。 → 6 章
  5. ファイル車の諸元を設定する。 → 12 章
  6. ファイルフォルダの中身を jar に固めて、mods/ に入れる。 → 配布の 1 章

これで、自分の車体で、既定の諸元のまま走る車が 1 台増えます。

  1. BlenderPlace the gauge. → chapter 1
  2. BlenderModel the body. → chapter 2
  3. BlenderExport the model. → chapter 5
  4. FilePlace the car JSON. → chapter 6
  5. FileSet the car's spec. → chapter 12
  6. FileZip the folder's contents into a jar and put it in mods/. → chapter 1 of Shipping

You now have one more car: your body, driving on the default spec.

必要なときだけ

Only when you need it

jar を作らずに、まず見た目だけ確かめたい

リソースパックで KurumaMod の既定の車を自分の車体に差し替えれば、jar を作らずに F3+T で何度でも試せます。手順は6 章の「既定の車の見た目だけ差し替えたい(リソースパック)」にあります。

Check the looks first, without building a jar

Override KurumaMod's built-in car with your body using a resource pack. No jar needed, and F3+T reloads it as often as you like. See "Only replace the look of the built-in car (resource pack)" in chapter 6.

もっと作り込みたい
やりたいこと見る章
ライトを光らせる・窓を透けさせる・ミラーに映す3 章
テクスチャを描く・色違いを選べるようにする4 章
車体の大きさを直す6 章
タイヤの大きさ・幅を車体に合わせる7 章
ナンバーを付ける位置を直す8 章
座席の位置を直す9 章
ハンドルの位置・傾きを直す10 章
エンジン音を変える11 章
走り(重さ・エンジン・足まわり)を変える12 章
自分のホイールを履かせるホイールの 1 章
自分のタイヤを履かせるタイヤの 1 章
ウイングやバンパーを付け替えられるようにするパーツの 1 章
Go further
What you wantWhere
Working lights, see-through windows, reflecting mirrorsChapter 3
Paint a texture, or let players pick the colourChapter 4
Fix the body sizeChapter 6
Fit the tyre size and track to the bodyChapter 7
Fix where the licence plates goChapter 8
Fix the seat positionChapter 9
Fix the steering wheel position or angleChapter 10
Change the engine soundChapter 11
Change how it drives (weight, engine, suspension)Chapter 12
Fit your own wheelsChapter 1 of the Wheel guide
Fit your own tyresChapter 1 of the Tyre guide
Make wings or bumpers swappableChapter 1 of the Parts guide
直したものを入れ直したい
  • assets/ の中(モデル・テクスチャ・見た目の JSON・lang)を直したら、ゲームで F3+T
  • data/ の中(諸元)を直したら、ゲームで /reload

jar に入れて試しているときは、jar を作り直して入れ替え、ゲームを起動し直します。

Reload what you changed
  • After changing anything in assets/ (model, texture, look JSON, lang), press F3+T in game
  • After changing anything in data/ (the spec), run /reload in game

If you are testing from a jar, rebuild the jar, swap it in and restart the game.

うまくいかないとき
  • MOD 一覧に出ない … フォルダごと jar に固めた(META-INF/ が jar の直下にない)。または modId に - や . を使った
  • タブに車が出ない … data/mypack/cars/ae86.json の場所か、JSON の書き方が違う。理由はログに出る
  • 出てくるが、既定の車の姿のまま … 見た目の JSON のファイル名が諸元と違う。または body.model のパスか名前空間(mypack:)が違う

ほかの症状は6 章の「うまくいかないとき」と配布の 3 章にあります。

When it doesn't work
  • Not in the mod list — you zipped the folder itself (META-INF/ is not at the top of the jar), or modId contains - or .
  • No car in the tab — data/mypack/cars/ae86.json is in the wrong place or not valid JSON. The reason is in the log
  • It appears, but with the default car's body — the look JSON's file name differs from the spec's, or the body.model path or namespace (mypack:) is wrong

Other symptoms are in "When it doesn't work" in chapter 6 and in chapter 3 of Shipping.

1ゲージを置く

1Place the gauge

車体を作る前に、寸法の目安になる枠(ゲージ)を Blender に置きます。ゲージに合わせて作れば、JSON の寸法は既定のままで済みます。

Before you model, put a reference frame (the gauge) into Blender. Build to it and the sizes in the JSON can stay at their defaults.

やること

What to do

  1. Blender上の Scripting タブを開き、新規(New)を押す。
  2. Blendermodeling_tools/blender_gauge.py の中身を全部貼り付けて、実行する。▶ を押すか Alt+P

これで、タイヤ 4 つ・地面・シャシー基準面がワイヤーフレームで置かれます。

  1. BlenderOpen the Scripting tab at the top and press New.
  2. BlenderPaste the whole of modeling_tools/blender_gauge.py and run it. Press ▶ or Alt+P

Four wheels, the ground and the chassis plane now appear as wireframes.

Blender Scripting tab and the New button
図 3. 上部の Scripting タブ(左上)を開き、New を押してから貼り付けます
Fig. 3. Open the Scripting tab (top left), press New, then paste.

置かれるもの

What it places

名前何か
gauge_wheel_FL ほか 4 つタイヤの位置と大きさ。ここにタイヤハウスが来るように車体を作る
gauge_ground地面(Z = 0)。ワールド原点はこの高さ
gauge_chassis_planeシャシー基準面(Z = 0.632m)。ゲームが車の「位置」とする高さ。4 隅が車軸の真上
NameWhat it is
gauge_wheel_FL and 3 moreWhere the wheels sit and how big they are. Build the wheel arches around these
gauge_groundThe ground (Z = 0). The world origin is at this height
gauge_chassis_planeThe chassis plane (Z = 0.632 m), the height the game treats as the car's position. Its corners sit right above the axles

必要なときだけ

Only when you need it

ゲージを置き直したい

もう一度実行するだけです。前のゲージは消えてから置き直されます。

ゲージは選択できない設定になっています。作業中に間違って動かすことはなく、A で全部を選んでも入りません。

Place the gauge again

Just run it again. The old gauge is removed before the new one goes in.

The gauge cannot be selected. You cannot move it by accident, and A (select all) leaves it out.

ゲージの寸法を知りたい
ホイールベース3.12 m(前後輪の距離)
トレッド2.00 m(左右輪の距離)
タイヤ半径0.45 m(直径 90cm)
シャシー基準面0.632 m

実車より 2 割大きめです。Minecraft のプレイヤーはずんぐりしているので、実寸だと車が小さく見えるためです。

See the gauge's sizes
Wheelbase3.12 m (front axle to rear axle)
Track2.00 m (left wheel to right wheel)
Wheel radius0.45 m (90 cm diameter)
Chassis plane0.632 m

That is 20% bigger than a real car. Minecraft players are stocky, and a true-size car looks small next to them.

ゲージに合わせずに作りたい(作ってしまった)

それでも動きます。実際に作った寸法を、見た目の JSON の designWheelBase(ホイールアーチの前後の距離)に書きます(6 章)。ゲームがその比で車体を拡大・縮小して、ゲージの大きさに合わせます。

Build without matching the gauge (or you already did)

It still works. Write the sizes you actually built into designWheelBase (distance between the arches) in the look JSON (chapter 6). The game scales the body by that ratio to fit the gauge size.

実車と同じ大きさのゲージにしたい

スクリプトの先頭の SCALE = 1.2 を 1.0 にします。そのときは諸元(data/<pack>/cars/<car>.json)の wheel_base・track_width・wheel_radius も同じ寸法に揃えます(12 章)。揃えないと、タイヤだけが元の位置と大きさで出ます。

はじめての車では触らないでください。

Use a real-world-size gauge

Change SCALE = 1.2 at the top of the script to 1.0. Then set wheel_base, track_width and wheel_radius in the spec (data/<pack>/cars/<car>.json) to the same sizes (chapter 12). If you don't, the wheels still appear at the old positions and size.

Leave it alone for your first car.

ホイール・タイヤを作りたい

ホイールもタイヤも車体とは別のファイルで作り、それぞれ専用のゲージを使います。

作らなければ KurumaMod のホイールとタイヤが付きます。

Make wheels or tyres

Wheels and tyres are both made in files separate from the body, each with its own gauge.

If you make neither, the car gets KurumaMod's wheels and tyres.

2車体を作る

2Build the body

車体のメッシュを作る章です。決まりは原点の位置と向きだけで、大きさと形は自由です。

This chapter is about modelling the body. The only rules are where the origin is and which way the car faces; size and shape are up to you.

最小の車体を作る

Make a minimal body

  1. Blender前を −Y、上を +Z に向けて作る。Blender の標準の向きのまま(テンキー 1 で正面から見た向き)
  2. Blenderワールド原点が「地面の高さ・前後輪のちょうど中間・左右の中央」に来るように置く。ゲージのとおりに作れば、そうなっている
  3. Blenderタイヤハウスを、ゲージのタイヤに合わせて切る。

これで、書き出せばゲームのタイヤと車体が合います。

  1. BlenderFace the car towards −Y with +Z up. That is Blender's default (numpad 1 looks at the front)
  2. BlenderPut the world origin at ground level, exactly halfway between the axles, on the centreline. If you follow the gauge, it already is
  3. BlenderCut the wheel arches around the gauge wheels.

Once exported, the body and the in-game wheels line up.

前 front シャシー基準面 = Z 0.632 m chassis plane = Z 0.632 m 前後輪の中点 midpoint of the axles 地面 = Z 0 ground = Z 0 ワールド原点(0, 0, 0) world origin (0, 0, 0) ホイールベース 3.12 m wheelbase 3.12 m
図 4. 車体の原点は「地面の高さ・前後輪の中点・左右中央」。重心ではありません
Fig. 4. The body origin sits at ground level, midway between the axles, on the centreline — not at the centre of mass.
The S15 body in Blender, with the gauge wheels sitting in the wheel archesゲージのタイヤGauge wheelsタイヤハウスをこの輪に合わせるCut the archto fit this ringワールド原点(地面・前後輪の中間・左右の中央)World origin(ground, between the axles, centreline)
図 5. 見本の S15 の車体。ゲージのタイヤ(線で描かれた輪)が、ちょうどタイヤハウスに収まるように作ってあります
Fig. 5. The S15 body. The gauge wheels (the wire rings) sit right inside the wheel arches.

原点の 3 つの条件

The three origin rules

高さ地面(Z = 0)。車体の底ではない
前後前輪と後輪のちょうど中間。全長の中心とは限らない
左右中央
HeightGround level (Z = 0), not the underside of the body
Front–rearExactly halfway between the axles, not necessarily the middle of the overall length
Left–rightOn the centreline

合わせるのはワールド原点です。オブジェクトを選んだときに出るオレンジの点(オブジェクト原点)はどこにあっても構いません。

What matters is the world origin. The orange dot you see on a selected object (its object origin) can be anywhere.

必要なときだけ

Only when you need it

原点がずれていたので直したい

車体を全部選び(A)、G で動かします。ゲージは選択できないので一緒には動きません。

Fix an origin that is off

Select the whole body (A) and move it with G. The gauge cannot be selected, so it stays put.

左右対称に半分だけ作りたい

ミラーモディファイアを使います。書き出しのときに自動で適用されるので、「適用」は押さなくてかまいません。

ただし、左右のドアミラーの鏡だけは別々のオブジェクトにします(3 章のミラー)。

Model half and mirror it

Use a mirror modifier. The exporter applies it for you, so you don't need to press "Apply".

The one exception is the glass of the two door mirrors, which must be separate objects (mirrors in chapter 3).

ボンネットやバンパーを別のオブジェクトに分けたい

分けても分けなくても同じです。ゲームは名前の決まっていないオブジェクトを全部まとめて車体として描きます。同梱の S15 は、車体の大部分を body 1 つにまとめ、ドアミラーの筐体や車内などを作業のしやすさで別のオブジェクトにしています。

ライト・ガラス・ミラー・ハンドル・付け替える部品だけは名前で働きが決まるので、別のオブジェクト(または別のマテリアル)にします(3 章)。

Split the bonnet or bumpers into their own objects

Split or not, it makes no difference. The game draws every object without a special name as body. The bundled S15 keeps most of the body in one body object and splits off the mirror housings, the cabin and so on only for convenience while modelling.

Lights, glass, mirrors, the steering wheel and swappable parts are the exception: their names decide what they do, so they need their own objects (or materials) (chapter 3).

車内(内装)も作りたい

作らなくてもかまいません。何も作らなければ、車体の裏面がそのまま内装として見えます。作るなら、ふつうの車体として作れば描かれます。座席の位置は見た目の JSON の seat で決まり、座席のメッシュとは関係ありません(9 章)。

Model an interior

You don't have to. Without one, the back faces of the body show through and serve as the cabin. If you do model one, build it as ordinary body and it is drawn. Where the player sits comes from seat in the look JSON, not from any seat mesh (chapter 9).

ポリゴン数の目安を知りたい

あまり気にしなくてかまいません。同梱の S15 の車体は約 3,200 面、ホイール(TE37)は約 1,200 面、タイヤは約 380 面です。面は四角形のまま作って構いません(三角形に割る必要はありません。5 章)。

How many polygons?

Don't worry much about it. The bundled S15 body is about 3,200 faces, the wheel (TE37) about 1,200 and the tyre about 380. Model in quads as usual; there is no need to triangulate (chapter 5).

うまくいかないとき
  • 走るとタイヤがボディを突き抜ける … タイヤハウスがゲージのタイヤに合っていない
  • 車体が地面に埋まる・浮く … 原点を車体の底に置いている。地面の高さ(Z = 0)へ動かす
  • タイヤが前後にずれる … 原点が前後輪の中間にない。全長の中心に置いていないか見る
  • 前後が逆・左右が鏡像 … 車の前が −Y を向いていない。Wavefront で書き出したなら、書き出しの Forward Axis を触った(5 章)
When it doesn't work
  • Tyres poke through the body when driving — the arches don't match the gauge wheels
  • The body sinks into the ground or floats — the origin is at the underside of the body. Move it to ground level (Z = 0)
  • The wheels sit too far forward or back — the origin is not halfway between the axles. Check you didn't use the middle of the overall length
  • Front and back swapped, or mirrored — the front of the car is not facing −Y. If you exported Wavefront, Forward Axis was changed on export (chapter 5)

3ライト・ガラス・ミラー・ハンドル(名前で決まる機能)

3Lights, glass, mirrors and the steering wheel (names that do things)

オブジェクトに決まった名前を付けるだけで、ライトが光り、窓が透け、ミラーに後ろが映り、ハンドルが回ります。JSON には何も書きません。

Give an object one of a few set names and it lights up, turns see-through, reflects what is behind or turns with the steering. Nothing goes into the JSON.

前 front light_head mirror_left / mirror_right glass / glass_side light_tail light_reverse mirror_rear steering_wheel これら以外のオブジェクトは、名前が何であっても全部「車体」 every other object, whatever it is called, is body
図 6. 名前で機能が決まる部位。ルームミラー(mirror_rear)は室内のフロントガラス上端に、ハンドル(steering_wheel)は室内の運転席の前にあります
Fig. 6. Where the meaningful names sit. The rear-view mirror (mirror_rear) is inside the cabin at the top of the windscreen, and the steering wheel (steering_wheel) is inside the cabin in front of the driver's seat.
The S15 in Blender showing only its glass, light, mirror and steering wheel objects, selected in the outlinermirror_rearmirror_rearlight_headlight_headglass_frontglass_frontsteering_wheelsteering_wheelglass_rearglass_rearglass_side_…glass_side_…mirror_left / mirror_rightmirror_left / mirror_rightlight_tail / light_reverselight_tail / light_reverse選んだ行が、名前で役目の決まるオブジェクトThe selected rows are theobjects whose names set a role
図 7. 見本の S15 で、名前で役目が決まるオブジェクト(glass_…・light_…・mirror_…・steering_wheel)だけを表示したところ。アウトライナーの名前が、そのままゲームの中の役目になります
Fig. 7. The S15 with only its role objects shown (glass_…, light_…, mirror_…, steering_wheel). The names in the outliner are what the game reads.

ライトを光らせる

Make the lights work

オブジェクトの名前ランプ点くとき色
light_headヘッドライトL で点く・消える。路面を照らす電球色
light_tailテールランプいつもうっすら光り、ブレーキで明るくなる赤
light_reverseバックランプギアを R に入れたとき白
Object nameLampWhen it lightsColour
light_headHeadlightsOn and off with L; lights up the roadWarm white
light_tailTail lightsAlways glow dimly; brighten under brakingRed
light_reverseReverse lightsWhen the gear is in RWhite

色はゲームが付けます(レンズの UV を展開してテクスチャに色を塗れば、その色が出ます)。light_ で始まる名前は、この 3 つしか使えません。

The game adds the colour (unwrap the lens UVs and paint the texture to use your own). These three are the only light_ names.

  1. Blenderライトのレンズを別のオブジェクトにして、上の表の名前を付ける。左右で 1 つのオブジェクトでよい(ミラーモディファイアのままでよい)
  2. Blenderレンズの面を、車体から 1〜2mm 浮かせる。
  3. Blenderレンズの UV は展開せず、1 点に潰してテクスチャの白い画素に置く。色はゲームが付ける

これで、L でヘッドライトが点き、テールランプはいつもうっすら光ってブレーキで明るくなり、ギアを R に入れるとバックランプが点きます。

  1. BlenderMake each lens its own object and give it a name from the table above. One object for both sides is fine (a mirror modifier is fine)
  2. BlenderFloat the lens faces 1–2 mm proud of the body.
  3. BlenderDon't unwrap the lens: collapse its UVs to one point on a white pixel of the texture. The game adds the colour

L now turns the headlights on, the tail lights glow dimly and brighten under braking, and the reverse lights come on in R.

Blender: the light_tail object selected on the S15
図 8. テールランプのレンズを light_tail という名前のオブジェクトにしたところ(見本の S15)。light_head・light_reverse も同じく役目ごとに 1 つ。左右は 1 つのオブジェクトのままでよい
Fig. 8. The tail-light lenses as one object named light_tail (the S15 example). light_head and light_reverse are one object per role in the same way; both sides can stay in one object.
light_ で始まる名前はこの 3 つだけ

light_fog のような名前を付けると、そこが穴になって何も描かれません。フォグランプは light_head に含めるか、ふつうの車体として作ります。

ONLY THESE THREE light_ NAMES

Name something light_fog and it becomes a hole where nothing is drawn. Fold fog lights into light_head, or model them as plain body.

窓を透けさせる

Make the windows see-through

オブジェクトの名前ガラスになるか
glass・glass_front・glass.side などなる。glass のすぐ後ろが _ か . なら、何枚に分けてもよい
glasshouse のように続けた名前ならない(ふつうの車体)
Object nameIs it glass?
glass, glass_front, glass.side and so onYes. As long as glass is followed by _ or ., split it into as many as you like
A run-on name like glasshouseNo (plain body)

濃さは 0.35 です。変えたいときはマテリアルの Alpha で(下の「ガラスの濃さを変えたい」)。

Opacity is 0.35. To change it, use the material's Alpha (see "Change how dark the glass is" below).

  1. Blender窓を別のオブジェクトにして、上の表のとおり名前を glass で始める。

これで、窓が透けます(濃さは 0.35)。

  1. BlenderMake the windows their own object and start the name with glass, as in the table above.

The windows are now see-through (opacity 0.35).

Blender: the glass objects selected on the S15
図 9. 窓を glass_front・glass_rear・glass_side_front・glass_side_rear に分けたところ。名前が glass で始まっていればよく、1 つにまとめてもよい
Fig. 9. The windows split into glass_front, glass_rear, glass_side_front and glass_side_rear. Any name starting with glass works, and one object for all of them is fine too.

ミラーに後ろを映す

Make the mirrors reflect

オブジェクトの名前ミラー映すもの
mirror_rearルームミラー真後ろ(1 度下向き)
mirror_left左のドアミラー左後ろ(1.5 度下向き。内側に自分の車の横腹が少し映る)
mirror_right右のドアミラー右後ろ(同じ)
Object nameMirrorWhat it shows
mirror_rearRear-view mirrorStraight behind (1° down)
mirror_leftLeft door mirrorBehind on the left (1.5° down, with a little of your own car's flank on the inside)
mirror_rightRight door mirrorBehind on the right (likewise)

映す向きはゲームが決めるので、鏡の角度は合わせなくてかまいません。ミラーは既定で切なので、H のメニューで入れます。

The game decides where each mirror looks, so you don't need to aim the glass. Mirrors are off by default; turn them on in the H menu.

  1. Blender鏡を別のオブジェクトにして、上の表の名前を付ける。筐体ごとの箱 1 つでよい
  2. Blender左右のドアミラーは、別々のオブジェクトにする。ミラーモディファイアで 1 つにしたままにしない(適用してから分ける)
  3. Blender鏡になる面(いちばん広い平らな面)を、運転席のほうへ向ける。角度は合わせなくてよい
  4. ゲームH のメニューで、ミラーを入れる。既定は切

これで、ミラーに後ろの景色が実際に映ります。

  1. BlenderMake each mirror its own object and give it a name from the table above. One box for the whole housing is fine
  2. BlenderKeep the two door mirrors as separate objects. Don't leave them joined by a mirror modifier (apply it, then separate)
  3. BlenderTurn the mirror face (the largest flat face) towards the driver. You don't need to aim it
  4. GameTurn mirrors on in the H menu. They are off by default

The mirrors now show what is really behind you.

Blender: mirror_left, mirror_rear and mirror_right selected
図 10. mirror_left・mirror_rear・mirror_right を選んだところ。左右のドアミラーは別々のオブジェクト。鏡の面を運転席へ向けた箱でよい
Fig. 10. mirror_left, mirror_rear and mirror_right selected. The two door mirrors are separate objects; a box with its mirror face turned to the driver is enough.

ハンドルを回す

Make the steering wheel turn

オブジェクト名前動き
ハンドルの回る部分(リムとスポーク)steering で始まる(steering_wheel など。大文字小文字は問わない)切れ角に合わせて回り、運転している人の手が握る
ObjectNameWhat it does
The part of the wheel that turns (rim and spokes)Starts with steering (steering_wheel and so on; case doesn't matter)Turns with the steering; the driver's hands hold it
  1. Blenderハンドルの回る部分(リムとスポーク)を別のオブジェクトにして、名前を steering_wheel にする。
  2. Blenderコラム(ハンドルの付け根の筒)やメーターは入れない。実車でも回らない部分なので、車体のままにする

これで、ハンドルが切れ角に合わせて回り、運転している人の手がハンドルを握ります(一人称でも三人称でも)。回す中心と軸は形から自動で決まるので、原点の位置を合わせる必要も、JSON に書くこともありません。

  1. BlenderMake the part of the wheel that turns (rim and spokes) its own object and name it steering_wheel.
  2. BlenderLeave the column (the shroud the wheel sits on) and the gauges out of it. They don't turn in a real car either, so keep them as body

The wheel now turns with the steering, and the driver's hands hold it (in first and third person). The centre and axis it turns about are worked out from its shape, so you don't need to place the origin or write anything in the JSON.

Blender: the steering_wheel object selected in the S15 cabin
図 11. 回る部分(リムとスポーク)だけを steering_wheel にしたところ。コラムやダッシュボードは車体のまま
Fig. 11. Only the part that turns (rim and spokes) is steering_wheel. The column and dashboard stay as body.
回らないときはコラムの角度を設定する

回る軸は「いちばん薄い向き」から決めるので、形は丸くなくてもかまいません(F1 のような横長のハンドルも回ります)。ただ、コラムまで 1 つのオブジェクトに入れたハンドルや、ボタンや画面で厚みのあるハンドルは、形から軸が取れず、止まったまま描かれます(手も置かれません。ログに理由が出ます)。そのときは Ctrl+G でコラムの角度を設定すれば回ります(すぐ下)。リムとスポークだけに分けておけば、何も設定しなくても回ります。

IF IT DOESN'T TURN, SET THE COLUMN ANGLE

The axis is taken from the object's thinnest direction, so it doesn't have to be round (a wide F1-style wheel turns too). But a wheel with the column in the same object, or one made thick by buttons and a screen, gives no axis from its shape and is drawn without turning (no hands are placed either; the log says why). Then set the column angle with Ctrl+G and it turns (just below). Keep it to the rim and spokes and it turns with nothing to set.

形から軸が決まらないハンドル(コラムまで入っている、ボタンや画面で厚みがある)は、コラムの角度を設定すると回ります。乗ったまま Ctrl+G の「ハンドル」の「コラム」で合わせ、「JSON をコピー」で vehicles/<車>.json に貼ります。貼られるのはこの形です:

"steering": { "column": 10.0 }
  • column はコラム(ハンドルの付け根の筒)の角度 [度]。水平から、運転者へ向かって上がる向きが正。0 でハンドルの面が垂直(F1)、90 で面が水平(バス)。普通の乗用車は 20〜30 くらい(S15 は 25)
  • 角度は座席の調整画面(Ctrl+G)の「ハンドル」の「コラム」の行で、乗ったまま合わせられます。ハンドルを切りながら動かし、首を振らずに回るところが正しい角度です。「JSON をコピー」で column も一緒に書き出されます
  • 書いたときも、回す中心は形から決まります(外形の幅の真ん中)。形から測れたハンドルでは、コラムの行に「(形から)」と付いて測った角度が出ます

下が平らな D 型のハンドルや、上にだけ画面が付いたハンドルは、外形の真ん中が本当の中心からずれ、円を描くように揺れながら回ります。そのときは同じ画面の「中心 上下」の行で、揺れが止まるところまで中心を動かします(直径 37cm で下を 3cm 削った形なら -0.015 くらい)。JSON には "center": -0.015 のように書き出されます。

A wheel whose axis can't be found from its shape (the column is included, or buttons and a screen make it thick) turns once you set the column angle. Set it from the driver's seat with "Column" under "Steering" in Ctrl+G, then paste it into vehicles/<car>.json with "Copy JSON". It looks like this:

"steering": { "column": 10.0 }
  • column is the angle of the column (the shroud the wheel sits on) in degrees, measured from horizontal, positive as it rises towards the driver. 0 makes the wheel face vertical (F1), 90 makes it flat (a bus). Ordinary cars are around 20 to 30 (the S15 is 25)
  • You can set the angle from the driver's seat with the "Column" row under "Steering" in the seat screen (Ctrl+G). Move it while steering: the right angle is where the wheel turns without wobbling. "Copy JSON" writes column as well
  • The centre it turns about is still worked out from the shape (the middle of its outline). For a wheel whose shape can be measured, the Column row shows the measured angle marked "(from shape)"

A D-shaped wheel with a flat bottom, or one with a screen only on top, has its outline's middle away from the real centre, so it turns while circling. Then move the centre with the "Centre up" row in the same screen until the circling stops (about -0.015 for a 37 cm wheel with 3 cm cut off the bottom). It is written out as "center": -0.015.

名前の一覧

All the names

名前なるもの
light_headヘッドライト。L で点く。光の筋もここから出る
light_tailテールランプ。いつもうっすら、ブレーキで最大
light_reverseバックランプ。ギアが R のとき
glass で始まる半透明のガラス
mirror_rearルームミラー
mirror_left / mirror_rightドアミラー
steering で始まるハンドル。切れ角に合わせて回り、運転者の手が握る
part_ で始まる付け替える部品。その部品を付けているときだけ描かれる(パーツの 1 章)
gauge_ で始まる捨てられる(ゲージが混ざっても描かれない)
text_ で始まる描かれない(ナンバーの字の枠のための名前)。車体に付けると、そこが穴になる
susp で始まる車体として描かれるが、シェーダーパックの影に落ちない。ダンパーやバネなど足まわりに使う(大文字小文字は問わない)
それ以外車体
NameWhat it becomes
light_headHeadlight. L turns it on; the light beam starts here too
light_tailTail light. Dim at all times, full under braking
light_reverseReverse light. On in R
starts with glassTranslucent glass
mirror_rearRear-view mirror
mirror_left / mirror_rightDoor mirrors
starts with steeringSteering wheel. Turns with the steering; the driver's hands hold it
starts with part_A swappable part. Drawn only while that part is fitted (chapter 1 of the Parts guide)
starts with gauge_Discarded, so a stray gauge is never drawn
starts with text_Not drawn (reserved for licence plate text boxes). On the body it leaves a hole
starts with suspDrawn as body, but casts no shadow under shader packs. For dampers, springs and other suspension parts (case doesn't matter)
anything elseBody

必要なときだけ

Only when you need it

オブジェクトを分けずに、一部の面だけをライトやガラスにしたい

面に割り当てるマテリアルの名前を light_tail・glass・mirror_left などにします。その面だけがその働きになります。バンパーの一部の面をテールランプにする、といった使い方です。

  1. 編集モード(Tab)で面を選ぶ
  2. マテリアルタブでスロットを「+」で増やし、そのマテリアルを入れる
  3. 「割り当て」を押す
  • オブジェクト名とマテリアル名が違う働きを指すときは、マテリアル名が勝ちます。役目の名前でないマテリアル(body など)なら、オブジェクト名の働きのまま
  • 名前の後ろの .001 は無視されます。light_tail.001 もテールランプ
  • マテリアルの名前は、書き出した .glb にいつも入ります(Wavefront で書き出すときは、「マテリアル」の「書き出し」を入れたままにします。既定で入っています)
オブジェクト名面のマテリアルその面
light_headbodyヘッドライト
light_headglassガラス
Bumperlight_tailテールランプ
Bumperbody車体
Turn just some faces into a light or glass, without splitting the object

Name the material on those faces light_tail, glass, mirror_left and so on. Only those faces take the role. A few faces of a bumper can become a tail light this way.

  1. Select the faces in Edit Mode (Tab)
  2. On the Material tab, add a slot with "+" and put the material in it
  3. Press "Assign"
  • When the object name and the material name ask for different roles, the material wins. A material without a role name (body, say) leaves the object's role in place
  • A trailing .001 is ignored: light_tail.001 is still a tail light
  • Material names always go into the exported .glb (when exporting as Wavefront, keep "Export Materials" ticked; it is on by default)
Object nameFace materialThat face
light_headbodyHeadlight
light_headglassGlass
Bumperlight_tailTail light
BumperbodyBody
レンズの色を自分で塗りたい

レンズの UV を展開して、テクスチャに色を塗ります。展開したレンズは塗った色がそのまま出ます。

レンズの UV色
1 点に潰すゲームが付ける(ヘッドは電球色、テールは赤、バックは白)。UV の場所を取らない
展開するテクスチャの色

どちらでも、点いたときの明るさと消えたときの暗さはゲームが付けます。テクスチャで暗く塗る必要はありません。

Paint the lens colour yourself

Unwrap the lens and paint it in the texture. An unwrapped lens shows exactly the painted colour.

Lens UVsColour
Collapsed to one pointSet by the game (warm white head, red tail, white reverse). Uses no UV space
UnwrappedFrom the texture

Either way, the game handles how bright it is when on and how dim when off. Don't paint that into the texture.

ガラスの濃さを変えたい

窓にマテリアルを割り当てて、その Alpha を下げます(例 0.2 でもっと薄く、0.6 で濃く)。その値がそのまま濃さになります。Alpha が 1 のまま、またはマテリアルが無ければ 0.35 です。

濃さは .glb の中のマテリアルが運びます。読むのはマテリアルが半透明(alphaMode が BLEND)として書き出されたときだけで、そうでなければ 0.35 になります。Wavefront では .mtl が運ぶので、.obj と一緒に置いてください。

Change how dark the glass is

Give the window a material and turn its Alpha down (0.2 for lighter, 0.6 for darker). That value is the opacity. With Alpha left at 1, or no material at all, it is 0.35.

The opacity travels in the material inside the .glb. It is only read when the material is exported as transparent (alphaMode BLEND); otherwise it is 0.35. With Wavefront the .mtl carries it, so keep it next to the .obj.

窓を何枚かのオブジェクトに分けたい

全部 glass で始めれば、何枚でもかまいません(glass.front / glass.front_side / glass.rear など)。glass のすぐ後ろに _ か . を置きます。glasshouse のように続けた名前はガラスになりません。

light_ と違い、glass の名前は自由に増やしても穴は開きません。

Split the windows into several objects

Any number is fine as long as each starts with glass (glass.front, glass.front_side, glass.rear and so on). Put _ or . right after glass; a name that runs straight on, like glasshouse, is not glass.

Unlike light_, new glass names never leave a hole.

ミラーの筐体と鏡を分けたい

筐体はふつうの名前(見本では body_mirror_left)にして、鏡の板だけを mirror_left にします。こうすると、どの面が鏡になるか迷いません。

筐体ごと 1 つの mirror_ にした場合は、いちばん広い平らな面だけが鏡になり、ほかの面はふつうの車体として描かれます。

Separate the mirror housing from the glass

Give the housing an ordinary name (body_mirror_left in the sample) and name only the glass plate mirror_left. Then there is no doubt about which face reflects.

If the whole housing is one mirror_ object, only its largest flat face reflects; the other faces are drawn as ordinary body.

ウイングなどの部品にライトを付けたい

部品のオブジェクト(part_…)の中の面に、ライトのマテリアルを割り当てます。GT ウイングのハイマウントストップランプなら light_tail です。ウイングを外せばランプも消えます。

部品の中のミラーは映りません(ふつうの面として描かれます)。部品の作り方はパーツの 1 章にあります。

Put a light on a part such as a wing

Assign a light material to faces inside the part object (part_…). For a high-mounted brake light on a GT wing, use light_tail. Take the wing off and the lamp goes with it.

Mirrors inside a part don't reflect (they are drawn as plain faces). How to make parts is in chapter 1 of the Parts guide.

仕組みを知りたい(ミラーに何が映るか)
  • 何を映すかは、車に対して決まっています。板の角度は使いません。実車で乗った人がミラーを合わせるのと同じで、作った角度は「合わせる前の姿」です
  • ルームミラーは真後ろを、1 度だけ下向きに映します
  • ドアミラーは 1.5 度下向きで、地平線が鏡の中ほどより少し上に来ます。外へは、鏡の内側 15% に自分の車の横腹が映るところまで振ります
  • 横に映る幅は決まっています(ルームミラー 34 度、ドアミラー 22 度)。縦は鏡の縦横比で決まり、横長に作るほど縦に狭くなります
  • ルームミラーかドアミラーかは、名前ではなく鏡の位置で決まります。車の中心から左右 0.35m 以内ならルームミラーです。left / right の名前が実際の左右と逆でも正しく映ります
  • UV は要りません。面の中の位置がそのまま使われます
  • 鏡ごとに、その位置から世界をもう一度描いています。左右のドアミラーを 1 つのオブジェクトにすると、左右で同じ景色が映るのはこのためです
How it works (what a mirror shows)
  • What each mirror looks at is fixed relative to the car. The angle of the plate is not used. Like a real driver adjusting the glass after getting in, the angle you modelled is only the "before adjustment" pose
  • The rear-view mirror looks straight back, 1° down
  • Door mirrors look 1.5° down, putting the horizon a little above the middle of the glass. They are turned outward until your own car's flank fills the inner 15% of the glass
  • The horizontal field of view is fixed (34° rear-view, 22° door). The vertical follows the glass's aspect ratio: the wider you make it, the narrower the vertical view
  • Whether it is a rear-view or a door mirror is decided by where it is, not its name: within 0.35 m of the car's centreline it is the rear-view mirror. If left / right are swapped, it still reflects correctly
  • No UVs needed. The position within the face is used directly
  • Each mirror redraws the world from its own position. That is why two door mirrors joined into one object show the same view
うまくいかないとき
  • ライトを足したところが穴になる … light_head / light_tail / light_reverse 以外の light_ 名を付けた
  • レンズがチラつく … レンズの面が車体と同じ面にある。1〜2mm 浮かせる
  • レンズの色がおかしい … 展開した UV が、テクスチャの塗っていない場所を指している。1 点に潰して白い画素に置くか、テクスチャに色を塗る
  • 窓が透けない … 名前が glass で始まっていない(glasshouse のように続けていないか)。マテリアルの Alpha を使っているなら、マテリアルが半透明で書き出されているか(Wavefront なら .mtl を一緒に置いたか)
  • ミラーが映らない … H で入れたか。描画設定が「最高(Fabulous)」のときと、シェーダーパックを使っているときは映らない(暗いガラスになる)
  • 左右のミラーに同じ景色が映る … ミラーモディファイアで 1 つのオブジェクトのまま。適用してから分ける
  • ドアミラーが真後ろしか映さない … 鏡が車の中心から 0.35m 以内にあり、ルームミラーとして扱われている
  • ログに役目が食い違うと出る … オブジェクト名とマテリアル名が違う働きを指している。マテリアルのほうが使われている
When it doesn't work
  • A hole where you added a light — you used a light_ name other than light_head / light_tail / light_reverse
  • The lens flickers — the lens sits flush with the body. Float it 1–2 mm
  • The lens is the wrong colour — its unwrapped UVs point at an unpainted part of the texture. Collapse them onto a white pixel, or paint the texture
  • Windows aren't see-through — the name doesn't start with glass (or runs straight on, like glasshouse). If you use material Alpha, was the material exported as transparent? (For Wavefront, is the .mtl next to the .obj?)
  • Mirrors show nothing — did you turn them on in H? They don't reflect with graphics set to "Fabulous" or with a shader pack (you get dark glass)
  • Both door mirrors show the same view — they are still one object via a mirror modifier. Apply it and separate them
  • A door mirror only looks straight back — it is within 0.35 m of the centreline, so it is treated as the rear-view mirror
  • The log says roles disagree — the object name and the material name ask for different roles. The material's role is used

4テクスチャを貼る

4Add a texture

車体に色や模様を付ける章です。テクスチャが無くても車は走るので、形だけ先に作ってあとで貼ってもかまいません。

This chapter is about giving the body colour and detail. The car drives without a texture, so you can build the shape first and paint it later.

最小のテクスチャを貼る

Add a minimal texture

  1. Blender車体を UV 展開して、PNG のテクスチャに色を塗る。大きさは自由
  2. Blenderマテリアルを使っているなら、Base Color を白(1.0)にする。
  3. ファイルPNG を置き、見た目の JSON で指す。assets/mypack/textures/entity/mycar.png に置いて、assets/mypack/vehicles/mycar.json の body に書く:
    "body": { "model": "mypack:models/entity/mycar.glb",
              "texture": "mypack:textures/entity/mycar.png" }

これで、ゲームで F3+T を押すと車体にテクスチャが貼られます。

  1. BlenderUV-unwrap the body and paint a PNG texture. Any resolution
  2. BlenderIf you use materials, set Base Color to white (1.0).
  3. FilePut the PNG in place and point the look JSON at it. Save it as assets/mypack/textures/entity/mycar.png and write it into body in assets/mypack/vehicles/mycar.json:
    "body": { "model": "mypack:models/entity/mycar.glb",
              "texture": "mypack:textures/entity/mycar.png" }

Press F3+T in game and the body is textured.

色違いを選べるようにする(塗装)1.9.0〜

Let players pick the colour (paints)1.9.0+

車体のテクスチャを色違いで何枚か用意すると、プレイヤーが換装画面の「塗装」タブで色を選べるようになります。選んだ色はマルチプレイの他の人にも見え、車をアイテムにして回収しても残ります。モデルは 1 つのままで、テクスチャだけを差し替えます。

Make a few colour versions of the body texture and players can pick one on the Paint tab of the parts screen. The chosen colour is seen by everyone in multiplayer and stays when the car is picked up as an item. The model stays the same; only the texture is swapped.

  1. ファイルテクスチャを複製して、車体の色の部分だけを塗り替える。UV の配置は変えないこと(同じモデルに貼るため)。窓・ライト・ミラーも同じテクスチャから色を取るので、そこは元のまま残す
  2. ファイルPNG を並べて置く。例: assets/mypack/textures/entity/mycar_red.png、mycar_black.png
  3. ファイル見た目の JSON に paints を書く。並べた順に換装画面に出て、先頭が新車の色になります:
    "paints": [
      { "id": "blue",  "name": "Blue",  "texture": "mypack:textures/entity/mycar.png",       "swatch": "#051F8C" },
      { "id": "red",   "name": "Red",   "texture": "mypack:textures/entity/mycar_red.png",   "swatch": "#B41018" },
      { "id": "black", "name": "Black", "texture": "mypack:textures/entity/mycar_black.png", "swatch": "#0E0E10" }
    ]
  4. ゲームF3+T で読み直し、車に乗って G →「パーツ」→「塗装」タブ
  1. FileCopy the texture and repaint only the body colour. Keep the UV layout as it is (it goes on the same model). Windows, lights and mirrors take their colour from the same texture, so leave those parts alone
  2. FileSave the PNGs side by side. For example assets/mypack/textures/entity/mycar_red.png, mycar_black.png
  3. FileWrite paints into the looks JSON. They appear in the parts screen in this order, and the first one is the factory colour:
    "paints": [
      { "id": "blue",  "name": "Blue",  "texture": "mypack:textures/entity/mycar.png",       "swatch": "#051F8C" },
      { "id": "red",   "name": "Red",   "texture": "mypack:textures/entity/mycar_red.png",   "swatch": "#B41018" },
      { "id": "black", "name": "Black", "texture": "mypack:textures/entity/mycar_black.png", "swatch": "#0E0E10" }
    ]
  4. GameReload with F3+T, get in the car, then G → Parts → Paint tab
キー必須意味
id必須塗装の名前。車の中で重ならないこと。小文字・数字・_ - . だけ、64 字まで。車に保存されるので、配ったあとは変えない
texture必須車体のテクスチャ。body.texture と同じ書き方
nameタイルに出す名前。そのままの文字でも、lang ファイルの翻訳キーでもよい。書かなければ id
swatchタイルの色見本。"#RRGGBB"。書かなければ灰色の車に「?」
KeyRequiredMeaning
idyesThe paint's name, unique within the car. Lower-case letters, digits and _ - . only, up to 64 characters. It is saved on the car, so don't change it after release
textureyesThe body texture, written like body.texture
nameName shown on the tile. Plain text or a translation key from your lang file. Defaults to id
swatchColour sample on the tile, as "#RRGGBB". Without it the tile shows a grey car with “?”

必要なときだけ

Only when you need it

UV を張らずに、まず形だけ確かめたい

そのままでかまいません。UV 展開していない面は、テクスチャの 1 点の色で塗りつぶされます。絵がまだ無ければ、白く塗った小さな PNG を置いておけば足ります。

ライトのレンズは、UV を展開しないほうが都合がよいことがあります(3 章)。

Check the shape first, without UVs

That works as it is. Faces without UVs are filled with the colour of a single pixel of the texture. If you have no art yet, a small all-white PNG is enough.

For light lenses, leaving them unwrapped is often the better choice (chapter 3).

ホイールやタイヤにも自分のテクスチャを使いたい

ホイールとタイヤは車体とは別の部品で、テクスチャもそれぞれの部品の JSON に書きます。作り方はホイールの 1 章・タイヤの 1 章、部品にして車に履かせる方法はホイールの 2 章・タイヤの 2 章にあります。

車体のテクスチャとは関係しません。車体の色違い(塗装)を選んでも、ホイールとタイヤの色は変わりません。

Use your own texture on the wheels or tyres

Wheels and tyres are parts separate from the body, and each part's JSON names its own texture. How to make them is in chapter 1 of the Wheel guide and chapter 1 of the Tyre guide; how to make them parts and fit them to the car is in chapter 2 of the Wheel guide and chapter 2 of the Tyre guide.

They are independent of the body texture: picking a body colour (paint) does not change the wheels or tyres.

塗装について、もう少し詳しく
  • 「塗装」タブは、塗装を 2 つ以上書いた車にだけ出ます。1 つだけでは選ぶものが無いためです
  • paints を書いた車では、body.texture の代わりに先頭の塗装が使われます。先頭に元のテクスチャを置いておけば迷いません
  • 単色でなくてもかまいません。ストライプ・ゼッケン・ラッピングも、テクスチャを描き分けるだけで同じように足せます
  • 色の名前を翻訳したいときは、name に翻訳キー(例 paint.mypack.red)を書き、assets/mypack/lang/ja_jp.json などにそのキーを足します
  • パックを更新して塗装を消した・id を変えたとき、その色を選んでいた車は先頭の色で描かれます。id を戻せば元の色に戻ります
  • マルチプレイでは、見る人も同じカーパックを入れている必要があります。サーバーが配るのは選んだ塗装の id だけで、画像は各自のパックから読むためです。パックが古い人には先頭の色で見えます
More about paints
  • The Paint tab only appears for cars with two or more paints. With one there is nothing to choose
  • When a car has paints, the first paint is used instead of body.texture. Put your original texture first to avoid confusion
  • It doesn't have to be a solid colour. Stripes, race numbers and wraps work the same way: just draw them into the texture
  • To translate colour names, write a translation key in name (e.g. paint.mypack.red) and add that key to assets/mypack/lang/en_us.json and so on
  • If an update removes a paint or changes its id, cars that had it are drawn in the first colour. Restore the id and they get their colour back
  • In multiplayer, viewers need the same car pack. The server only sends the chosen paint's id; each player loads the image from their own pack. Players with an older pack see the first colour
テクスチャを使わず、マテリアルの色だけで塗り分けたい

できます。マテリアルの Base Color が、テクスチャの色に掛け合わされて出ます。テクスチャを白一色にしておけば、マテリアルの色がそのまま出ます。色は .glb の中に入ります(Wavefront なら .mtl が運ぶので、.obj と一緒に置いてください)。

Colour it with material colours only, no texture

You can. A material's Base Color is multiplied over the texture, so with an all-white texture the material colour comes through as is. The colours go inside the .glb (with Wavefront the .mtl carries them, so keep it next to the .obj).

うまくいかないとき
  • テクスチャが暗い … マテリアルの Base Color が Blender の既定の 0.8 グレーのまま。白にする
  • マテリアルの色が出ず、全体が白い … マテリアルが割り当たっていない(Wavefront なら、.mtl を .obj と一緒に置いていない)。マテリアルを使わないつもりなら、それで問題ない
  • テクスチャが変わらない … F3+T を押したか。texture のパスと名前空間(mypack:)が合っているか
  • 塗装を選んでも色が変わらない … 車体の色をマテリアルの Base Color で付けていると、テクスチャを替えても同じ色が掛け合わされたままになる。色はテクスチャ側に持たせ、Base Color は白にする
  • 「塗装」タブが出ない … paints が 2 つ以上あるか。id に大文字や空白が入っているとその塗装は読み飛ばされる(ログに理由が出る)
  • 窓やライトの色まで変わった … それらも同じテクスチャから色を取っている。塗り替えるのは車体の色の部分だけにする
When it doesn't work
  • The texture comes out dark — the material's Base Color is still Blender's default 0.8 grey. Set it to white
  • Material colours don't show; everything is white — no material is assigned (or, with Wavefront, the .mtl is not next to the .obj). If you don't use materials, that is fine
  • The texture doesn't change — did you press F3+T? Do the texture path and namespace (mypack:) match?
  • Picking a paint doesn't change the colour — if the body colour comes from the material's Base Color, it is still multiplied over the new texture. Keep the colour in the texture and set Base Color to white
  • No Paint tab — are there two or more paints? A paint whose id has capitals or spaces is skipped (the log says why)
  • Windows or lights changed colour too — they take their colour from the same texture. Repaint only the body colour

5モデルを書き出す

5Export the model

Blender の車体を、ゲームが読む glTF ファイル(.glb)にする章です。変える設定は 3 つだけで、あとは既定のままにします。

This chapter turns the Blender body into the glTF file (.glb) the game reads. You change three settings and leave everything else at its default.

Wavefront(.obj)でも大丈夫です

これまでの形式の Wavefront(.obj と .mtl)も、今までどおり読めます。作ってあるパックを書き出し直す必要はありません。見た目と重さはどちらも同じです。違いは 2 つだけです。

  • アニメーションを付けられるのは glTF だけ(13 章)
  • glTF を読めるのは KurumaMod 2.2.0 以降。それより前の版でも動かしたいパックは Wavefront にします

Wavefront での書き出し方は、下の「Wavefront(.obj)で書き出したい」にあります。

WAVEFRONT (.OBJ) STILL WORKS

The older format, Wavefront (.obj plus .mtl), is still read as before. You don't need to re-export a pack you have already made. Both look and perform the same. There are only two differences.

  • Only glTF can be animated (chapter 13)
  • glTF needs KurumaMod 2.2.0 or later. Use Wavefront for a pack that must also work on older versions

How to export Wavefront is under "Export as Wavefront (.obj)" below.

やること

What to do

  1. Blender車体を全部選ぶ(A)。ゲージは選ばれない
  2. Blenderファイル → エクスポート → glTF 2.0 (.glb/.gltf) を開く。
  3. Blender右のパネルで、下の表の 3 つを合わせる。ほかの設定は触らない。
  4. Blenderファイル名を付けて書き出す。例 mycar.glb
  5. ファイルできた .glb を assets/mypack/models/entity/ に置く。ファイルはこの 1 つだけ

これで、見た目の JSON(6 章)の body.model から指せる車体ができます。

  1. BlenderSelect the whole body (A). The gauge is not selected
  2. BlenderOpen File → Export → glTF 2.0 (.glb/.gltf).
  3. BlenderSet the three things in the table below in the right-hand panel. Don't touch anything else.
  4. BlenderName the file and export. For example mycar.glb
  5. FilePut the .glb in assets/mypack/models/entity/. It is the only file

You now have a body that body.model in the look JSON (chapter 6) can point at.

書き出しの設定

Export settings

項目どうする
FormatglTF Binary (.glb) にする(全部が 1 つのファイルに入る)
Include → Limit to → Selected Objects入れる(ゲージを書き出さないため)
Mesh → Apply Modifiers入れる(ミラーモディファイアがこれで適用される。入れないと片側しか出ない)
Material → Images触らなくてよい。None にするとファイルが軽くなる(テクスチャは JSON の body.texture から読むため)
Animation触らない(入ったまま)。付けたアクションがそのまま入る(13 章)
SettingDo this
FormatSet it to glTF Binary (.glb) (everything goes into one file)
Include → Limit to → Selected ObjectsTick it (keeps the gauge out)
Mesh → Apply ModifiersTick it (this applies the mirror modifier; without it only one half comes out)
Material → ImagesNo need to touch. None makes the file smaller (the texture comes from body.texture in the JSON)
AnimationLeave alone (on). Your actions go in as they are (chapter 13)

マテリアルの名前と色は .glb の中に入ります。テクスチャは glTF の中からはまだ読まないので、body.texture に書きます(4 章)。

Material names and colours go inside the .glb. Textures inside the glTF are not read yet, so set body.texture (chapter 4).

必要なときだけ

Only when you need it

ホイールやタイヤも書き出したい

ホイールとタイヤは車体とは別のファイルに書き出します(例 my_wheel.glb・my_tire.glb)。設定は車体と同じです。作り方はホイールの 1 章・タイヤの 1 章にあります。KurumaMod のホイールとタイヤを使うなら、書き出す必要はありません。

Export wheels or tyres too

Wheels and tyres go into files separate from the body (e.g. my_wheel.glb, my_tire.glb), with the same settings as the body. How to make them is in chapter 1 of the Wheel guide and chapter 1 of the Tyre guide. If you use KurumaMod's wheels and tyres, there is nothing to export.

Wavefront(.obj)で書き出したい

これまでの形式です。アニメーションの無い車や、2.2.0 より前の KurumaMod でも動かしたいパックに使えます。このガイドで .glb と書いてある所は、そのまま .obj に読み替えられます(JSON の model も .obj を指す)。

  1. Blender車体を全部選ぶ(A)。
  2. Blenderファイル → エクスポート → Wavefront (.obj) を開く。
  3. Blender右のパネルで Selected Only を入れる。ほかの設定は触らない。
  4. Blenderファイル名を付けて書き出す。例 mycar.obj
  5. ファイルできた .obj と .mtl を、両方 assets/mypack/models/entity/ に置く。
項目どうする
Selected Only
(古い版では Selection Only)
入れる(ゲージを書き出さないため)
Forward Axis / Up Axis触らない(−Z / Y のまま)
Apply Modifiers触らない(入ったまま)。ミラーモディファイアがこれで適用される
Triangulated Mesh
(古い版では Triangulate Faces)
触らない(入れない)
マテリアルの「書き出し」触らない(入ったまま)。マテリアルの名前と色が .mtl に入る
  • .mtl は .obj と同じ場所に置く。マテリアルの色・ガラスの濃さ・マテリアル名で付けたライトなどの働きは、このファイルが運びます。どれも使っていなければ消してもかまいません(全体がテクスチャの色そのままになります)
  • Forward Axis を触らない。設定には −Z Forward と書いてありますが、Blender の前(−Y)は +Z になって出てきます。この読み替えは MOD が済ませています。変えると前後と左右がまとめて裏返り、車体は左右対称なので気づけず、あとで「タイヤの向きだけおかしい」という形で出てきます
Export as Wavefront (.obj)

This is the older format. Use it for cars with no animations, or for packs that must also work on KurumaMod older than 2.2.0. Wherever this guide says .glb, you can read .obj instead (and point the JSON model at the .obj).

  1. BlenderSelect the whole body (A).
  2. BlenderOpen File → Export → Wavefront (.obj).
  3. BlenderTick Selected Only in the right-hand panel. Don't touch anything else.
  4. BlenderName the file and export. For example mycar.obj
  5. FilePut both the .obj and the .mtl in assets/mypack/models/entity/.
SettingDo this
Selected Only
(older versions: Selection Only)
Tick it (keeps the gauge out)
Forward Axis / Up AxisLeave alone (−Z / Y)
Apply ModifiersLeave alone (on). This applies the mirror modifier
Triangulated Mesh
(older versions: Triangulate Faces)
Leave alone (off)
Materials: ExportLeave alone (on). Material names and colours go into the .mtl
  • Keep the .mtl next to the .obj. It carries material colours, glass opacity, and roles given by material names (lights and so on). If you use none of those, you may delete it (everything then shows the texture as is)
  • Don't touch Forward Axis. The dialog says −Z Forward, but Blender's front (−Y) actually comes out as +Z, and the mod already accounts for that. Changing it flips front–back and left–right together; a symmetric body gives no clue it has been mirrored, and it shows up later as "only the wheels point the wrong way"
三角形や凹んだ面が気になる

glTF は三角形しか持てないので、Blender が面を三角形に割って書き出します。MOD が読み込むときに四角形へ組み直すので、重くはなりません。自分で三角形にしておく必要はありません。5 角形以上の面は、凹んでいても正しく割られます。

Triangles and concave faces

glTF only holds triangles, so Blender splits faces into triangles on export. The mod puts them back into quads when loading, so nothing gets heavier, and there is no need to triangulate yourself. Faces with five or more corners are split correctly, even concave ones.

うまくいかないとき
  • 片側しかない … ミラーモディファイアが適用されていない。Apply Modifiers を入れて書き出し直す
  • ゲージが一緒に書き出された … Selected Objects を入れ忘れた。ゲージ(gauge_)は描かれないので害はないが、入れて書き出し直す
  • 付け替える部品(part_…)が出ない … 非表示のまま書き出した。非表示のオブジェクトは選べないので書き出したファイルに入らない。全部表示にしてから選ぶ(パーツの 1 章)
  • 車が出ない・読めない … KurumaMod が 2.2.0 より前。glTF を読めないので、MOD を上げるか Wavefront で書き出す
  • 面がねじれる・抜ける … 平面から大きく曲がった面か、辺が交差した面がある。Blender でその面だけ割る
  • (Wavefront)前後が逆・左右が鏡像 … Forward Axis を変えた。既定(−Z / Y)へ戻して書き出し直す
  • (Wavefront)マテリアルの色やガラスの濃さが出ない … .mtl を .obj と同じ場所に置いていない
When it doesn't work
  • Only one half of the car — the mirror modifier was not applied. Tick Apply Modifiers and export again
  • The gauge was exported too — Selected Objects was off. Gauge objects (gauge_) are never drawn, so it is harmless, but tick it and export again
  • A swappable part (part_…) never appears — it was hidden when you exported. Hidden objects cannot be selected, so they are left out of the exported file. Unhide everything before selecting (chapter 1 of the Parts guide)
  • The car doesn't appear or load — KurumaMod is older than 2.2.0 and can't read glTF. Update the mod or export as Wavefront
  • Faces twist or disappear — a face is badly non-planar or has crossing edges. Split just that face in Blender
  • (Wavefront) Front and back swapped, or mirrored — Forward Axis was changed. Put it back to −Z / Y and export again
  • (Wavefront) Material colours or glass opacity missing — the .mtl is not next to the .obj

6ファイルを配置する

6Place the files

作ったモデルを、ゲームで走る車種にします。見本のパックをコピーして、名前と中身を入れ替えるのがいちばん早い道です。

This turns your model into a car you can drive in game. The quickest way is to copy the example pack and swap in your own names and files.

最小のカーパックを作る

Make a minimal car pack

ここでは、パックの名前を mypack、車種の名前を ae86 とします。

Here the pack is called mypack and the car ae86.

  1. ファイル自分のカーパックフォルダを用意する。 → 準備の 1 章
  2. ファイルモデルとテクスチャを置く。assets/mypack/models/entity/ae86.glb と assets/mypack/textures/entity/ae86.png
  3. ファイル見た目の JSON を書く。assets/mypack/vehicles/sample.json を ae86.json に改名して、中身をこうする:
    {
      "body":  { "model": "mypack:models/entity/ae86.glb",
                 "texture": "mypack:textures/entity/ae86.png" }
    }
  4. ファイル諸元の JSON を書く。data/mypack/cars/sample.json を ae86.json に改名して、中身をこうする(走りは12 章で詰める):
    {
      "values": { "mass": 1200.0 }
    }
  5. lang表示名を lang に書く。assets/mypack/lang/ja_jp.json と en_us.json に "car.mypack.ae86": "AE86"
  6. ファイルjar に固めて mods/ に入れる。固め方は配布の 1 章

これで、クリエイティブタブに「AE86」が並び、自分の車体で走ります。

  1. FileSet up your own car pack folder. → chapter 1 of Setup
  2. FileAdd the model and texture: assets/mypack/models/entity/ae86.glb and assets/mypack/textures/entity/ae86.png
  3. FileWrite the looks JSON. Rename assets/mypack/vehicles/sample.json to ae86.json and make it:
    {
      "body":  { "model": "mypack:models/entity/ae86.glb",
                 "texture": "mypack:textures/entity/ae86.png" }
    }
  4. FileWrite the spec JSON. Rename data/mypack/cars/sample.json to ae86.json and make it (tune the handling in chapter 12):
    {
      "values": { "mass": 1200.0 }
    }
  5. langAdd the display name to lang: "car.mypack.ae86": "AE86" in assets/mypack/lang/en_us.json and ja_jp.json
  6. FilePack it into a jar and put it in mods/. See chapter 1 of the Shipping guide

"AE86" now appears in the creative tab and drives with your body.

できあがりの形:

What you end up with:

mypack.jar
├── META-INF/
│   ├── mods.toml                 ← Forge 用
│   └── neoforge.mods.toml        ← NeoForge 用
├── fabric.mod.json               ← Fabric 用
├── pack.mcmeta
├── assets/                       ← 見た目
│   └── mypack/
│       ├── lang/
│       │   ├── en_us.json
│       │   └── ja_jp.json
│       ├── models/
│       │   └── entity/
│       │       └── ae86.glb
│       ├── textures/
│       │   └── entity/
│       │       └── ae86.png
│       └── vehicles/
│           └── ae86.json
└── data/                         ← 走り
    └── mypack/
        └── cars/
            └── ae86.json
mypack.jar
├── META-INF/
│   ├── mods.toml                 <- for Forge
│   └── neoforge.mods.toml        <- for NeoForge
├── fabric.mod.json               <- for Fabric
├── pack.mcmeta
├── assets/                       <- looks
│   └── mypack/
│       ├── lang/
│       │   ├── en_us.json
│       │   └── ja_jp.json
│       ├── models/
│       │   └── entity/
│       │       └── ae86.glb
│       ├── textures/
│       │   └── entity/
│       │       └── ae86.png
│       └── vehicles/
│           └── ae86.json
└── data/                         <- handling
    └── mypack/
        └── cars/
            └── ae86.json

名前がずれてもエラーは出ません。車種 id mypack:ae86 から、次の 3 つが決まります。1 つでもずれると、黙って既定の姿や名前になります。

A mismatched name gives no error. The car id mypack:ae86 fixes these three names; if one is off, the car quietly gets the default body or name.

名前
諸元data/mypack/cars/ae86.json
見た目assets/mypack/vehicles/ae86.json
表示名の翻訳キーcar.mypack.ae86
Name
Specdata/mypack/cars/ae86.json
Looksassets/mypack/vehicles/ae86.json
Display-name translation keycar.mypack.ae86

必要なときだけ

Only when you need it

既定の車の見た目だけ差し替えたい(リソースパック)

新しい車種は増やさず、KurumaMod 付属の車を自分のモデルで上書きします。jar を作らずに済み、F3+T で何度でも入れ直せるので、モデルを試すのにも向いています。

  1. 次の形でフォルダを作る:
    .minecraft/resourcepacks/MyCar/
    ├── pack.mcmeta
    └── assets/kurumamod/
        ├── models/entity/car.glb      ← 自分の車体
        ├── models/entity/tire.obj     ← 自分のタイヤ(全車に効く。付属のタイヤを上書きするので、この名前のまま Wavefront で)
        ├── textures/entity/car.png
        └── vehicles/car.json          ← 見た目の JSON(書き方は最小のカーパックと同じ)
  2. pack.mcmeta を書く:
    {
      "pack": { "description": "MyCar", "pack_format": 15 }
    }
  3. ゲームの設定でリソースパックを有効にする

開発環境で試すときは run/resourcepacks/ に置きます。人に配るなら、最小のカーパックの形にします。

vehicles/car.json を上書きすると、既定の車の塗装(paints)・部品の対応(parts)・ナンバーの位置(plates)も、書いたものに置き換わります。残したいものは書き写してください。

Only replace the look of the built-in car (resource pack)

Instead of adding a car, override KurumaMod's own car with your model. No jar to build, and F3+T reloads it as often as you like, so it is also handy for trying out a model.

  1. Make this folder:
    .minecraft/resourcepacks/MyCar/
    ├── pack.mcmeta
    └── assets/kurumamod/
        ├── models/entity/car.glb      <- your body
        ├── models/entity/tire.obj     <- your tyre (applies to every car; it replaces the bundled tyre, so keep this name and export it as Wavefront)
        ├── textures/entity/car.png
        └── vehicles/car.json          <- looks JSON (written as in the minimal car pack)
  2. Write pack.mcmeta:
    {
      "pack": { "description": "MyCar", "pack_format": 15 }
    }
  3. Enable the pack in the game's settings

In a development environment it goes in run/resourcepacks/. To hand the car to others, use the minimal car pack layout instead.

Overriding vehicles/car.json also replaces the built-in car's paints (paints), part mapping (parts) and plate positions (plates) with whatever you write. Copy over anything you want to keep.

車体の大きさ・位置を合わせたい

ゲージ(1 章)にぴったり合わせて作ったなら、何も書かなくて済みます。合わせられなかったときは、見た目の JSON(assets/mypack/vehicles/ae86.json)のいちばん外側に、メッシュを実際に作った寸法を書きます。

{
  "body":  { "model": "mypack:models/entity/ae86.glb",
             "texture": "mypack:textures/entity/ae86.png" },

  "designWheelBase": 3.12,
  "designRideHeight": 0.632
}
  • designWheelBase … メッシュの前後のホイールアーチが何 m 離れているか(既定 3.12)。5.2m で作ってしまったなら 5.2 と書けば、ゲージの大きさに縮みます
  • designRideHeight … 車体をシャシー基準面から下げる量 [m](既定 0.632)。車体が埋まる・浮くときに直す
  • どれも「この車の寸法」ではなく「メッシュの寸法」です。実際の寸法は諸元にあり、ゲームはその比でメッシュを拡大します

あとは body の中で細かく直せます:

"body": { "model": "...", "texture": "...",
          "offset": [0.0, 0.02, 0.0],
          "scale": 1.05 }
  • offset … 車体をずらす [m]。[x, y, z] で +X 右・+Y 上・−Z 前
  • scale … 大きさの微調整。数字 1 つでも [x, y, z] でもよい。原点が地面なので上へ伸びる

大きい車にしたいときは、ここではなく諸元を変えます。ゲームの調整画面でホイールベースとトレッドを広げ、body.scale を同じ倍率にします(1.2 倍なら 3.12→3.74m、2.0→2.4m、scale 1.2)。

Make the body the right size and position

If you built exactly to the gauge (chapter 1), there is nothing to write. If not, write the sizes you actually built the mesh at at the top level of the looks JSON (assets/mypack/vehicles/ae86.json):

{
  "body":  { "model": "mypack:models/entity/ae86.glb",
             "texture": "mypack:textures/entity/ae86.png" },

  "designWheelBase": 3.12,
  "designRideHeight": 0.632
}
  • designWheelBase — how far apart the front and rear arches are in your mesh, in m (default 3.12). If you built it at 5.2 m, write 5.2 and it shrinks to the gauge's size
  • designRideHeight — how far to drop the body below the chassis plane, in m (default 0.632). Change it if the body sinks or floats
  • These describe the mesh, not the car. The car's real sizes are in the spec, and the game scales the mesh by the ratio

Then fine-tune inside body:

"body": { "model": "...", "texture": "...",
          "offset": [0.0, 0.02, 0.0],
          "scale": 1.05 }
  • offset — shift the body, in m. [x, y, z] with +X right, +Y up, −Z forward
  • scale — fine size adjustment; one number or [x, y, z]. The origin is on the ground, so it grows upward

For a bigger car, change the spec instead. Widen the wheelbase and track in the game's tuning screen, and set body.scale to the same ratio (for 1.2×: 3.12→3.74 m, 2.0→2.4 m, scale 1.2).

タイヤが車体からはみ出す・引っ込む・前後にずれる

見た目の JSON にはホイールの項目がありません。タイヤの位置は諸元の寸法が決めます。物理はその位置にタイヤがあるものとして走りを解いているので、見た目だけでタイヤを動かすことはできません。

  • 幅 … 諸元のトレッド(data/mypack/cars/<車>.json の track_width。前後で変えるなら front_track_width・rear_track_width)。幅の広い車は、物理的にもトレッドが広い
  • 前後 … 諸元のホイールベース(wheel_base)。車体のほうを合わせるなら designWheelBase(上の「車体の大きさ・位置を合わせたい」)
  • 大きさ … 諸元のタイヤ半径(wheel_radius)。ゲージのタイヤは実車の比率より大きめなので、実車の比率で車体を作ると、タイヤがタイヤハウスに収まらないことがある。そのときは wheel_radius と track_width を車体に合わせて書く(7 章)
  • どれもゲームの調整画面(G)で、見ながら動かせる。決まったら諸元に書く(12 章)
  • どのホイールを履かせるか、太さ、ツラ(少し出す・引っ込める)は、ホイールの JSON に書く(ホイールの 1 章・2 章)。プレイヤーは換装画面で変えられる
  • キャンバーは諸元(front_camber・rear_camber)。グリップが変わり、タイヤもその角度で傾いて描かれる。プレイヤーはセッティング画面(G)で変えられる
The wheels stick out, sit too far in, or are off front to back

The looks JSON has no wheel entries. Where the wheels sit is set by the spec's dimensions. The physics solves the driving with the wheels at that position, so they cannot be moved for looks alone.

  • Width — the spec's track (track_width in data/mypack/cars/<car>.json, or front_track_width and rear_track_width to set each end). A wide car has a wide track in physics too
  • Front to back — the spec's wheelbase (wheel_base). To fit the body instead, use designWheelBase ("Make the body the right size and position" above)
  • Size — the spec's tyre radius (wheel_radius). The gauge tyres are larger than real-car proportions, so a body built to real proportions may not fit them in its wheel arches. Then write wheel_radius and track_width to suit the body (chapter 7)
  • All of them can be moved while watching in the game's tuning screen (G). Write them into the spec once they look right (chapter 12)
  • Which wheel to fit, width and the offset (pushing it slightly in or out) go in the wheel's JSON (Wheel guide chapter 1 and 2). Players can change them in the parts screen
  • Camber is part of the spec (front_camber, rear_camber). It changes the grip, and the wheels are drawn leaning by it. Players can change it in the tuning screen (G)
見た目の JSON に書ける項目を全部見たい

置き場所は assets/<パック>/vehicles/<車>.json。書かなかった項目は既定値になります。

キー既定値意味
body.model既定の車車体のモデル(.glb。Wavefront の .obj も可)
body.texture既定の車車体のテクスチャ
body.offset[0,0,0]車体をずらす [m](+X 右・+Y 上・−Z 前)
body.scale1.0車体の大きさの微調整。数字 1 つか [x,y,z]。上へ伸びる
wheel(model・texture・offset・camber・scale・rimRadius)、designWheelRadius—以前の書き方(読める)。いまはホイールの JSON に書き、諸元の default_parts.wheel で指す(書かなければ TE37)。タイヤの位置は諸元のトレッド・ホイールベース
designWheelBase3.12メッシュのホイールアーチが何 m 離れているか
designRideHeight0.632車体をシャシー基準面から下げる量 [m]
seat[0.5, -0.55, 0.2]運転席の位置 [m]。右ハンドル。助手席は左右反転(9 章)
steeringなしハンドルの位置・傾き(offset・tilt・column・center)(10 章)
shadowRadius1.4影の大きさ
icon車のモデルから作るアイテムのアイコンの画像。テクスチャのパスを .png まで書く(例 mypack:textures/item/kei.png)
soundsKurumaMod の音音の差し替え(11 章)
parts名前の決まりどおり外装パーツの部品 id → 出すオブジェクト(パーツの 1 章)
plates車体の形から自動で置くナンバーを付ける位置の候補(前・後ろ)。8 章
paintsなし選べる色違いのテクスチャ。先頭が新車の色(4 章)

アイコンは用意しなくても構いません。icon を書かなければ、車のモデルを斜め前から写した絵が自動で作られます。自分で描いた絵にしたいときだけ、PNG を assets/<パック>/textures/item/ に置いて icon に書きます。正方形で、32×32 か 64×64 がおすすめ。持ち物・手に持ったとき・地面に落ちたときのどれにもこの絵が出ます。パスを間違えると、自動で作った絵に戻ってログに残ります。

走りを決める値(車重・トルクなど)はここには書けません。data/ の諸元に書きます(12 章)。

See every key in the looks JSON

The file is assets/<pack>/vehicles/<car>.json. Anything you leave out takes the default.

KeyDefaultMeaning
body.modelbuilt-in carBody model (.glb; a Wavefront .obj works too)
body.texturebuilt-in carBody texture
body.offset[0,0,0]Shift the body [m] (+X right, +Y up, −Z forward)
body.scale1.0Fine size adjustment; one number or [x,y,z]. Grows upward
wheel (model, texture, offset, camber, scale, rimRadius), designWheelRadius—The older way (still read). Now write them in the wheel's JSON and point to it with default_parts.wheel in the spec (left out, the TE37). Wheel position comes from the spec's track and wheelbase
designWheelBase3.12How far apart the arches are in your mesh
designRideHeight0.632How far to drop the body below the chassis plane [m]
seat[0.5, -0.55, 0.2]Driver's seat [m]. Right-hand drive; the passenger seat is mirrored (chapter 9)
steeringnoneSteering wheel position and angle (offset, tilt, column, center) (chapter 10)
shadowRadius1.4Size of the shadow
iconmade from the car modelImage for the item icon. Write the texture path including .png (e.g. mypack:textures/item/kei.png)
soundsKurumaMod's soundsReplace sounds (chapter 11)
partsfollows the naming ruleBody part id → objects to show (chapter 1 of the Parts guide)
platesplaced from the body shapeCandidate licence plate positions (front and rear). See chapter 8
paintsnoneColour versions of the body texture players can pick. The first is the factory colour (chapter 4)

You do not have to make an icon. Without icon, a picture of your car model seen from the front corner is made automatically. Only if you want your own drawing, put a PNG under assets/<pack>/textures/item/ and name it in icon. Make it square; 32×32 or 64×64 works well. The same picture is used in the inventory, in the hand and when dropped on the ground. If the path is wrong, the automatic picture is used and the log says so.

Handling values (mass, torque and so on) cannot go here. They go in the spec under data/ (chapter 12).

外装パーツを付け替えられるようにしたい

部品のオブジェクトを車体のモデルに入れ、必要なら見た目の JSON の parts でオブジェクト名と部品を対応させます。書き方はパーツの 1 章にあります。出したときから付けておくなら12 章の「最初から部品を付けておきたい」。

Make body parts swappable

Put the part objects inside the body model and, if needed, map object names to parts with parts in the looks JSON. See chapter 1 of the Parts guide. To have them fitted when the car is spawned, see "Fit parts from the start" in chapter 12.

名前の決まりを詳しく知りたい
  • 大文字と空白は使えない。名前空間(mypack)は a-z 0-9 _ . -、車種名はこれに / を加えたもの
  • modId は名前空間より狭く、- も . も使えない(^[a-z][a-z0-9_]{1,63}$)。外れると読み込みが Invalid modId で落ちる。区切りは _ だけにする
  • 名前空間は modId と同じにする。違っても動くが、ほかのパックとぶつかったときにどちらが読まれるか分からなくなる
  • サブフォルダは使わない。cars/toyota/ae86.json は id が mypack:toyota/ae86、翻訳キーが car.mypack.toyota/ae86 になる
  • lang を書かなければ、表示名は ae86 とそのまま出る
  • MOD 一覧に出る画像は mods.toml の logoFile で指す。neoforge.mods.toml は bannerFile にする(logoFile だと NeoForge 26.3 が起動のたびに警告の画面を出す。代わりに NeoForge 1.21.1 の MOD 一覧には画像が出ない)
Naming rules in detail
  • No uppercase, no spaces. Namespaces (mypack) allow a-z 0-9 _ . -; car names allow those plus /
  • modId is stricter: no -, no . (^[a-z][a-z0-9_]{1,63}$). Breaking that fails the load with Invalid modId. Use _ as the only separator
  • Make the namespace the same as modId. It works either way, but if two packs collide you cannot tell which one won
  • No subfolders. cars/toyota/ae86.json becomes the id mypack:toyota/ae86 and the key car.mypack.toyota/ae86
  • Without a lang entry, the display name is simply ae86
  • The image in the mod list is logoFile in mods.toml. Use bannerFile in neoforge.mods.toml (with logoFile, NeoForge 26.3 shows a warning screen at every launch; in exchange, the NeoForge 1.21.1 mod list shows no image)
見本の中身を知りたい・要らないものを消したい
id何の見本か
kurumamod_example_carpack:sample車体メッシュ・テクスチャ・灯火まで自前で持つ、一通り揃った車
kurumamod_example_carpack:sample_wheel自前のメッシュを持つホイールの部品(ホイールの 2 章)

ホイールの部品が要らなければ、assets/mypack/car_parts/ と data/mypack/car_parts/ のファイル、wheel-sample.obj・.mtl、lang の part.… の行を消します。使わなくなった sample.glb なども消してかまいません。

隣の carpack/basic/ はプレイヤーへ配っている公式パックで、作りは同じです。出来上がったパックに何が入るかを見るのに向いています。

What is in the example, and what you can delete
IdWhat it demonstrates
kurumamod_example_carpack:sampleA complete car — its own body mesh, texture and lights
kurumamod_example_carpack:sample_wheelA wheel part with its own mesh (chapter 2 of the Wheel guide)

If you do not want the wheel part, delete the files in assets/mypack/car_parts/ and data/mypack/car_parts/, wheel-sample.obj and its .mtl, and the part.… lines in lang. Unused files such as sample.glb can go too.

carpack/basic/ next door is the official pack that ships to players, built the same way — a good look at what a finished pack contains.

仕組みを知りたい(なぜ見た目と走りでフォルダが分かれるのか)

assets/ はプレイヤーのゲームだけが読み、data/ はサーバーが読みます。誰も乗っていない車はサーバーが動かすので、走りを決める値は data/ に置きます。もし assets/ に置けたら、無人の車の動きが各プレイヤーのリソースパック次第になってしまいます。そのため、見た目の JSON に書けるのは見た目だけです。

jar 1 つにすれば、assets/ と data/ の両方が一緒に読まれます。

How it works (why looks and handling live in different folders)

assets/ is read only by each player's game; data/ is read by the server. The server drives cars nobody is in, so handling values belong in data/. If they could live in assets/, a driverless car would behave according to each player's resource pack. That is why the looks JSON can only describe appearance.

In a single jar, both assets/ and data/ are read together.

うまくいかないとき
  • MOD 一覧に出ない … modId に - や . を使っていないか。META-INF/ が jar の直下にあるか(配布の 1 章)
  • 車種が増えない … data/mypack/cars/ae86.json の場所と、JSON の書き間違い。ログに理由が出る
  • 走るのに姿が既定の車のまま … vehicles/ の JSON のファイル名が車種名と同じか。model の名前空間(mypack:)が合っているか
  • 表示名が ae86 のまま … lang のキーが car.mypack.ae86 になっているか
  • 車体だけ大きい・小さい … designWheelBase がメッシュの実寸か
  • 車体が埋まる・浮く … designRideHeight。メッシュの原点が地面の高さにあるか
  • タイヤが大きすぎる・小さすぎる … ゲージと違う大きさのホイールなら、wheel の中の designRadius がメッシュの実寸か
  • 調整画面で寸法を変えたらタイヤがフェンダーからはみ出した … 仕様。タイヤは諸元に合わせて動き、車体は動かない。車体も合わせるなら body.scale
  • 見た目の JSON に mass などを書いても効かない … 走りの値は data/ の諸元に書く(12 章)

ほかの症状は配布の 3 章にあります。

When it doesn't work
  • Not in the mod list — does modId contain - or .? Is META-INF/ at the top of the jar (chapter 1 of the Shipping guide)?
  • No new car — check where data/mypack/cars/ae86.json is, and the JSON for typos. The reason is in the log
  • It drives but wears the default body — is the vehicles/ JSON named the same as the car? Does the namespace in model (mypack:) match?
  • The display name is just ae86 — is the lang key car.mypack.ae86?
  • Only the body is too big or small — is designWheelBase the real size of your mesh?
  • The body sinks or floats — designRideHeight. Is the mesh origin at ground level?
  • Wheels too big or small — for a wheel not built to the gauge, is designRadius inside wheel the real size of your mesh?
  • After changing sizes in the tuning screen, the wheels stick out of the fenders — expected. Wheels follow the spec; the body does not. Use body.scale to match the body
  • mass and the like in the looks JSON do nothing — handling values go in the spec under data/ (chapter 12)

More symptoms in chapter 3 of the Shipping guide.

7タイヤを車体に合わせる

7Fit the tyres to the body

ゲージどおりに作った車は、寸法を何も書かなくてもタイヤがタイヤハウスの位置に付きます。ただ、ゲージのタイヤは実車の比率より大きめです。実車の比率で車体を作ると、図 13 のようにタイヤがタイヤハウスいっぱいになったり、フェンダーからはみ出したりします。そのときは、諸元のタイヤ半径とトレッドを車体に合わせます。

A car built to the gauge gets its wheels in the arches without writing any sizes. But the gauge tyres are larger than real-car proportions. Build the body to real proportions and, as in Fig. 13, the tyres fill the arches or poke out of the fenders. Then fit the spec's tyre radius and track to the body.

A blue S15 built to real-car proportions, with gauge-sized tyres that fill the wheel arches
図 13. 調整する前の S15。車体は実車の比率で作ってあり、ホイールベースはゲージどおりなので前後の位置はほぼ合っています。一方でタイヤが大きすぎ、タイヤハウスいっぱいになっています
Fig. 13. The S15 before fitting. The body is built to real proportions and the wheelbase matches the gauge, so front-to-back is nearly right. The tyres, though, are too big and fill the arches.
  1. ゲーム車を出して乗り、Ctrl+G を押す。車に水色の線でゲージが重なる。タイヤハウスがこの輪から上や外へ十分に離れていれば、ここで終わり
  2. ゲームG の調整画面で、「タイヤ」の「タイヤ半径」と「車体」の「フロント トレッド」「リア トレッド」を動かす。2 本の間の鍵が閉じていれば、前後の差を保ったまま一緒に動きます。前後で幅を変えるときは鍵を開けます。タイヤがタイヤハウスに収まり、フェンダーから出なくなるところを探す。三人称(F5)で横と前から見る
  3. ファイル決まった値を data/mypack/cars/<車>.json の values に書く。
    "values": {
      "wheel_base": 3.15,
      "track_width": 1.9,
      "wheel_radius": 0.4
    }
    調整画面の項目values のキー単位上の例
    ホイールベースwheel_basem3.15
    タイヤ半径wheel_radiusm0.4
    フロント トレッド・リア トレッド(前後が同じとき)track_widthm1.9
    フロント トレッド(前後で違うとき)front_track_widthm—
    リア トレッド(前後で違うとき)rear_track_widthm—

    前後で違う車は、track_width の代わりに front_track_width と rear_track_width を書きます。両方書いたときは前後別のキーが優先されます。

  4. ゲーム/reload を打ち、クリエイティブタブから出し直して確かめる。
  1. GameSpawn the car, get in and press Ctrl+G. The gauge is drawn over the car in cyan lines. If the arches clear these rings comfortably above and outside, you are done
  2. GameIn the G tuning screen, move "Tyre radius" under "Tires" and "Front track width" and "Rear track width" under "Chassis". While the lock between the two is closed they move together and keep their difference. Open it to give the front and rear different widths. Find where the tyres sit inside the arches and stop poking out of the fenders. Check from the side and the front in third person (F5)
  3. FileWrite the values into values in data/mypack/cars/<car>.json.
    "values": {
      "wheel_base": 3.15,
      "track_width": 1.9,
      "wheel_radius": 0.4
    }
    Tuning screen itemKey in valuesUnitExample above
    Wheelbasewheel_basem3.15
    Tyre radiuswheel_radiusm0.4
    Front and rear track width (when both are the same)track_widthm1.9
    Front track width (when they differ)front_track_widthm—
    Rear track width (when they differ)rear_track_widthm—

    For a car with different widths, write front_track_width and rear_track_width instead of track_width. If you write both, the separate keys win.

  4. GameRun /reload, take a fresh car from the creative tab and check.
The same S15 after fitting, with smaller tyres sitting inside the wheel arches
図 14. 調整した後の S15(wheel_base 3.15・track_width 1.9・wheel_radius 0.4)。タイヤがタイヤハウスに収まり、上に余裕ができました
Fig. 14. The S15 after fitting (wheel_base 3.15, track_width 1.9, wheel_radius 0.4). The tyres sit inside the arches with room above them.
  • 上の値は、既定の車(S15)が実際に書いている値です。S15 はこの 3 つだけを書いていて、ほかは既定のままです
  • ホイールベースは、ゲージどおりに作っていればほぼ合っています。タイヤハウスの中で前後にずれて見えるときだけ、「車体」の「ホイールベース」を少し動かす(S15 は 3.12 → 3.15)
  • タイヤハウスの上には余裕を残す。段差でサスが縮むと、タイヤは車体に対して上がります
  • タイヤ半径を変えても、加速と最高速はほとんど変わりません(ファイナルが半径に合わせて決まるため)。変わるのは車高です
  • Those are the values the default car (the S15) actually writes. It writes only these three and leaves everything else at the default
  • If you built to the gauge, the wheelbase is already nearly right. Only if the tyres look off front to back in the arches, nudge "Wheelbase" under "Chassis" (the S15 goes from 3.12 to 3.15)
  • Leave room above the tyre in the arch. When the suspension compresses over bumps, the tyre rises relative to the body
  • Changing the tyre radius barely changes acceleration or top speed (the final drive follows the radius). What changes is the ride height

8ナンバープレートの位置を調整する2.0.0〜

8Adjust the licence plate positions2.0.0+

何も書かなくても、ナンバーは車体の形から自動で置かれます(前は中央・左・右、後ろは中央)。ずれているときだけ、乗ったまま Ctrl+G で動かして、コピーした JSON を貼ります。数字を手で探す必要はありません。

Even if you write nothing, plates are placed from the body shape (centre, left and right at the front; centre at the rear). Only when they are off, move them with Ctrl+G while sitting in the car and paste the JSON it copies. No need to hunt for numbers by hand.

位置を合わせる

Line them up

  1. ゲーム車に乗り、G →「パーツ」→「ナンバー」でナンバーを付ける。付いていないと何も見えない
  2. ゲームCtrl+G を開き、「車の JSON」の「ナンバー前」か「ナンバー後」を選ぶ。
  3. ゲーム「候補」で動かす位置(中央・左・右)を選ぶ。車に付くナンバーもその位置へ移る
  4. ゲームX・Y・Z・ピッチ・ヨー・大きさ・揃える端を動かして、バンパーやナンバーのくぼみに合わせる。
  5. ファイル「JSON をコピー」を押し、vehicles/<車>.json のいちばん外側に貼る。前後の両方がまとめて plates としてコピーされる。前からあれば置き換える
  1. GameGet in the car and fit a plate under G → "Parts" → "Licence plate". Without one there is nothing to see
  2. GameOpen Ctrl+G and pick "Plate front" or "Plate rear" under "Car JSON".
  3. GamePick the position to move (centre, left or right) under "Mount". The fitted plate moves there too
  4. GameMove X, Y, Z, pitch, yaw, scale and "Align" until it sits on the bumper or in the plate recess.
  5. FilePress "Copy JSON" and paste it at the top level of vehicles/<car>.json. Front and rear are copied together as plates; replace it if it is already there

画面で動かした値は自分の画面だけで、ゲームを閉じると消えます。貼るまでは JSON に残りません。「全部戻す」で JSON の値(書いていなければ自動の位置)に戻ります。

Changes made on the screen apply only on your screen and only until you quit; nothing is saved to the JSON until you paste it. "Reset all" goes back to the JSON (or to the automatic positions if you wrote none).

The Plate front tab of the in-game look adjustment screen, with X, Y, Z, pitch, yaw and scale sliders above a blue S15 wearing a Japanese plate
図 15. Ctrl+G の「ナンバー前」。上から X・Y・Z・ピッチ・ヨー・大きさ、その下で候補と揃える端を選びます。動かしている候補の JSON がその下に出て、「JSON をコピー」で前後の plates がまとめてコピーされます。ゲームは止まらないので、車を見ながら合わせられます
Fig. 15. "Plate front" on Ctrl+G. X, Y, Z, pitch, yaw and scale from the top, then the candidate ("Mount") and the edge to line up ("Align"). The JSON of the candidate you are moving is shown below them, and "Copy JSON" copies plates for both front and rear. The game keeps running, so you can watch the car as you adjust.

必要なときだけ

Only when you need it

候補を足したい・消したい(JSON を直接書く)

貼られる JSON はこの形です。候補の数や名前を変えるときは、ここを直接書き換えます:

"plates": {
  "front": [
    { "id": "center", "pos": [0.0, 0.635, -2.404] },
    { "id": "left",   "pos": [-0.5377, 0.88, -2.404], "yaw": -14, "anchor": "left" }
  ],
  "rear": [
    { "id": "center", "pos": [0.0, 0.595, 2.504], "pitch": -8 }
  ]
}
  • 候補の先頭が既定で、どれに付けるかはプレイヤーが換装画面で選ぶ
  • pos … プレートの原点(取り付け面の中心)を置く位置 [m]。基準は seat と同じ(+X 右・+Y 上・−Z 前)
  • yaw … 上から見て時計回りが正 [度]。pitch … 表が上を向くのが正 [度]。scale … この位置だけの大きさの倍率(0.1〜3)
  • anchor … pos に揃える端。center・left・right(車から見た左右)。角に寄せた候補は角の側の端を揃えると、横に長いプレート(EU など)は内側へ伸びる
  • id … center・left・right は換装画面に「中央」「左」「右」と出る。ほかの名前はそのまま出る(lang に "screen.kurumamod.plate.mount.<id>" を書けば訳せる)
  • 片側を書かなければ、その側には付かない(後ろにしか付かない車なら rear だけ)
Add or remove candidates (write the JSON yourself)

The pasted JSON looks like this. To change how many candidates there are or what they are called, edit it directly:

"plates": {
  "front": [
    { "id": "center", "pos": [0.0, 0.635, -2.404] },
    { "id": "left",   "pos": [-0.5377, 0.88, -2.404], "yaw": -14, "anchor": "left" }
  ],
  "rear": [
    { "id": "center", "pos": [0.0, 0.595, 2.504], "pitch": -8 }
  ]
}
  • The first candidate is the default; players pick which one to use in the parts screen
  • pos — where the plate's origin (the centre of its mounting face) goes [m]. Same reference as seat (+X right, +Y up, −Z forward)
  • yaw — clockwise seen from above is positive [degrees]. pitch — face tilted up is positive [degrees]. scale — size multiplier for this position only (0.1 to 3)
  • anchor — which edge lines up with pos: center, left or right (as seen from the car). For a corner position, anchor the corner-side edge so long plates (EU and the like) grow inwards
  • id — center, left and right show as "Centre", "Left" and "Right" in the parts screen. Other names are shown as written (add "screen.kurumamod.plate.mount.<id>" to your lang to translate them)
  • Leave a side out and no plate goes on that side (for a rear-only car, write just rear)
出したときからナンバーを付けておきたい

諸元の default_parts にナンバーを書きます(12 章の「最初から部品を付けておきたい」)。書かなければ、プレイヤーが選ぶまでナンバーは付きません。

Have a plate fitted when the car is spawned

Add it to default_parts in the spec (chapter 12, "Fit parts from the start"). Otherwise there is no plate until the player picks one.

自分のデザインのナンバーを作りたい

ナンバーの種類(形・絵・字の決まり)は部品として作ります。パーツの 4 章にあります。どの種類のナンバーも、この章で決めた位置に付きます。

Make a plate of your own design

Plate styles (shape, picture and text rules) are made as parts; see chapter 4 of the Parts guide. Every style goes on the positions you set in this chapter.

うまくいかないとき
  • ナンバーが見えない … G の「パーツ」でナンバーを付けていない。または plates でその側を書いていない
  • 「この側には付ける位置がありません」と出る … plates にその側(front / rear)が無い。候補を書き足す
  • 横に長いプレートが車体からはみ出す … 角に寄せた候補なら、anchor を角の側の端にする
  • 動かした位置が、次に起動すると戻っている … JSON を貼っていない。画面の値はゲームを閉じると消える
When it doesn't work
  • No plate to be seen — no plate is fitted under "Parts" in G, or plates leaves that side out
  • The screen says there is no position on this side — plates has no front / rear for that side. Add a candidate
  • A long plate sticks out past the body — for a corner position, set anchor to the corner-side edge
  • The position is back where it was after a restart — the JSON was not pasted. On-screen values are lost when you quit

9シートの位置を調整する

9Adjust the seat position

運転席の位置です。助手席は左右反転で自動的に置かれます。何も書かなければ既定の位置(右ハンドル)に座ります。乗ったまま Ctrl+G で動かして、コピーした JSON を貼ります。

Where the driver sits; the passenger seat is mirrored automatically. Write nothing and the default position (right-hand drive) is used. Move it with Ctrl+G while sitting in the car, then paste the JSON it copies.

位置を合わせる

Line it up

  1. ゲーム車に乗り、Ctrl+G を開いて、「車の JSON」の「座席」を選ぶ。
  2. ゲームX(右)・Y(上)・Z(後ろ)を動かす。一人称(F5 で切り替え)で前の見え方を、三人称で座った姿を確かめる
  3. ファイル「JSON をコピー」を押し、vehicles/<車>.json のいちばん外側に貼る。"seat": [0.5, -0.55, 0.2] の形でコピーされる。前からあれば置き換える
  1. GameGet in the car, open Ctrl+G and pick "Seat" under "Car JSON".
  2. GameMove X (right), Y (up) and Z (back). Check the view ahead in first person and how the driver sits in third person (switch with F5)
  3. FilePress "Copy JSON" and paste it at the top level of vehicles/<car>.json. It is copied as "seat": [0.5, -0.55, 0.2]; replace it if it is already there

画面で動かした値は自分の画面だけで、ゲームを閉じると消えます。貼るまでは JSON に残りません。座席を動かしたら、ハンドルも合わせ直します(10 章)。

Changes made on the screen apply only on your screen and only until you quit; nothing is saved to the JSON until you paste it. After moving the seat, set the steering wheel to match (chapter 10).

The Seat tab of the in-game look adjustment screen, with X, Y and Z sliders above a blue S15 seen from the front with the driver sitting inside
図 16. Ctrl+G の「座席」。X(右)・Y(上)・Z(後ろ)の下に、コピーされる seat の行が出ます。いちばん上の「目線の高さ(車の原点から)」で、一人称の視線の高さも分かります
Fig. 16. "Seat" on Ctrl+G. Below X (right), Y (up) and Z (back) is the seat line that gets copied. "Eye height above the car origin" at the very top tells you where the first-person view sits.

必要なときだけ

Only when you need it

数字の意味を知りたい(JSON を直接書く)
  • [x, y, z] [m]。+X 右・+Y 上・−Z 前。既定は右ハンドル(x が正)。左ハンドルなら x を負にする
  • 前後(z)は前後輪の中点から、左右(x)と高さ(y)はシャシー基準面の中心から測る
  • 座る位置で、目線ではありません。一人称の視点はここから約 1.27m 上に来ます。目線で決めたいなら 1.27 を引く。Ctrl+G の画面の上に「目線の高さ(車の原点から)」が出るので、それで確かめるのが確実
  • 座面に合わせると視線が高くなり、目線に合わせると足が床下へ潜ります。どちらにするかは車ごとの好み
  • メッシュから測るときは、designWheelBase などで拡大・縮小された後の大きさで測る
What the numbers mean (write the JSON yourself)
  • [x, y, z] in m, with +X right, +Y up, −Z forward. The default is right-hand drive (positive x); make x negative for left-hand drive
  • Front-to-back (z) is measured from the midpoint of the axles; side (x) and height (y) from the centre of the chassis plane
  • It is where the driver sits, not the eyes. The first-person camera sits about 1.27 m above it; subtract 1.27 to place the eye line instead. The top of the Ctrl+G screen shows "Eye height above the car origin", which is the surest check
  • Match the cushion and the view sits high; match the eye line and the feet sink through the floor. Pick per car
  • If you measure from the mesh, measure it after the scaling from designWheelBase and friends
うまくいかないとき
  • 座った人の足が床から突き出る・頭が屋根を抜ける … Y(上)を動かす。目線ではなく座面に合わせる
  • 一人称で前が見えない … 目線は座席から約 1.27m 上(画面の上の「目線の高さ」で分かる)。Y を下げるか、Z を前へ
  • 動かした位置が、次に起動すると戻っている … JSON を貼っていない。画面の値はゲームを閉じると消える
When it doesn't work
  • The driver's feet poke through the floor or the head through the roof — move Y (up). Match the cushion, not the eyes
  • Nothing to see ahead in first person — the eyes are about 1.27 m above the seat (shown as "Eye height" at the top of the screen). Lower Y or move Z forward
  • The position is back where it was after a restart — the JSON was not pasted. On-screen values are lost when you quit

10ステアリングの位置を調整する

10Adjust the steering wheel position

ハンドル(steering で始まるオブジェクト。3 章)を、座席に合わせて動かしたり傾けたりします。モデルを直すより手早く合わせられます。先に座席を決めてから(9 章)、乗ったまま Ctrl+G で動かします。

Move or tilt the steering wheel (the object starting with steering; chapter 3) to suit the seat. It is quicker than editing the model. Set the seat first (chapter 9), then move it with Ctrl+G while sitting in the car.

位置を合わせる

Line it up

  1. ゲーム車に乗り、Ctrl+G を開いて、「車の JSON」の「ハンドル」を選ぶ。
  2. ゲームX・Y・Z で位置を、「角度」で傾きを合わせる。角度は正でコラムが起きる(ハンドルの面が寝る)。ハンドルを切りながら動かし、首を振らずに回るところを探す
  3. ファイル「JSON をコピー」を押し、vehicles/<車>.json のいちばん外側に貼る。前からあれば置き換える。貼られるのはこの形:
    "steering": { "offset": [0.0, 0.02, 0.05], "tilt": 3.0 }
  1. GameGet in the car, open Ctrl+G and pick "Steering" under "Car JSON".
  2. GameSet the position with X, Y and Z, and the angle with "Tilt". A positive tilt stands the column up (the wheel face lies flatter). Move it while steering and look for where it turns without wobbling
  3. FilePress "Copy JSON" and paste it at the top level of vehicles/<car>.json, replacing any that is already there. It looks like this:
    "steering": { "offset": [0.0, 0.02, 0.05], "tilt": 3.0 }

画面で動かした値は自分の画面だけで、ゲームを閉じると消えます。貼るまでは JSON に残りません。

Changes made on the screen apply only on your screen and only until you quit; nothing is saved to the JSON until you paste it.

The Steering tab of the in-game look adjustment screen in first person, with X, Y, Z, tilt, column and centre sliders above the S15's dashboard and steering wheel
図 17. Ctrl+G の「ハンドル」。上から X・Y・Z・角度・コラム・中心 上下。角度の横の括弧が足したあとのコラムの角度、コラムの「(形から)」はメッシュから測った値です。一人称で、ハンドルを切りながら合わせます
Fig. 17. "Steering" on Ctrl+G. X, Y, Z, tilt, column and centre from the top. The bracket next to tilt is the resulting column angle, and "(from shape)" on the column means it was measured from the mesh. Line it up in first person while steering.

必要なときだけ

Only when you need it

数字の意味を知りたい(JSON を直接書く)
  • offset … ハンドルをずらす量 [m]。seat と同じ向き(+X 右・+Y 上・−Z 前)。回す中心も一緒に動くので、ずらしても振れずに回る
  • tilt … コラムの傾きの足し分 [度]。正でコラムが起きる
  • column … コラムの角度そのもの [度]。形から軸が決まらないハンドルのためのもの(3 章)。Ctrl+G の「コラム」でも動かせる
  • center … 回す中心を面に沿って上へずらす量 [m]。下が平らな D 型のハンドルのため。Ctrl+G の「中心 上下」でも動かせる
What the numbers mean (write the JSON yourself)
  • offset — how far to move the wheel [m], in the same directions as seat (+X right, +Y up, −Z forward). The centre it turns about moves too, so it still turns without wobbling
  • tilt — extra column angle [degrees]. Positive stands the column up
  • column — the column angle itself [degrees], for wheels whose axis can't be found from the shape (chapter 3). Also adjustable with "Column" in Ctrl+G
  • center — moves the turning centre up along the face [m], for flat-bottomed D-shaped wheels. Also adjustable in Ctrl+G
ハンドルが何回転するか

どの車もフルロックで 1 回転半(540 度)です。比は最大切れ角から自動で決まり、35 度の車で 15.4、90 度まで切れる車で 6.0 になります。書く項目はありません。

How far the wheel turns

Every car reaches full lock at one and a half turns (540°). The ratio follows the car's maximum steering angle: 15.4 for 35°, 6.0 for a car that steers to 90°. There is nothing to set.

うまくいかないとき
  • 「ハンドル」を選んでも何も動かない … 車体にハンドルのオブジェクトが無い。名前が steering で始まっているか(3 章)
  • 切ると首を振るように回る … 回す中心が合っていない。Ctrl+G の「コラム」と「中心 上下」を、首を振らなくなるところまで動かす
  • 手がハンドルから離れて見える … 座席を先に決め、そのあとでハンドルの位置を合わせる
When it doesn't work
  • Picking "Steering" moves nothing — the body has no steering wheel object. Check its name starts with steering (chapter 3)
  • It wobbles as it turns — the turning centre is off. Move "Column" and "Centre up" in Ctrl+G until it stops wobbling
  • The hands look detached from the wheel — set the seat first, then line up the wheel

11音を作るオプション

11Make soundsOptional

エンジン音は車ごとに変えられます。この章はオプションです。何も設定しなければ、S15 と同じ音が鳴ります。

Each car can have its own engine sound. This chapter is optional: set nothing and the car sounds the same as the S15.

やり方は 2 通りあります。まずは A を試し、足りないときだけ B へ進んでください。

やり方要るもの
A. 音源を使わない(おすすめ)KurumaMod の合成音から、エンジンの種類を選んで高さなどを変える。種類と高さだけで、車ごとの違いはかなり出せる → 音源を作らずに変えるJSON だけ。値は乗ったまま Ctrl+H で決められる
B. 音源を付ける自分で録った音・作った音を鳴らす → 最小のエンジン音を付けるOGG の音源と、高回転用の音源(Python の道具で作る)

There are two ways. Try A first, and go on to B only if it is not enough.

HowWhat you need
A. No audio files (recommended)Pick an engine type from KurumaMod's synthesised sounds and adjust pitch and the like. Type and pitch alone already set cars apart → Change sounds without making audioOnly JSON. Set the values from the driver's seat with Ctrl+H
B. Your own audioPlay sounds you recorded or made → Add a minimal engine soundOGG audio, plus a high-rev copy (made with a Python tool)

A. 音源を作らずに変える(数字だけ)1.10.0〜

A. Change sounds without making audio (numbers only)1.10.0+

  1. ゲーム自分の車に乗り、Ctrl+H を押す。「車の音のデバッグ」が開き、その車種の音が並ぶ
  2. ゲームエンジンの「種類」「高さ」「踏んだときの荒さ」、ターボ・変速音などの「高さ」を動かす。ゲームは止まらないので、走りながらその場で聞き比べられる
  3. ゲーム決まったら「JSON をコピー」を押す。
  4. ファイルvehicles/ae86.json のいちばん外側に貼る。前から sounds があれば置き換える。貼られるのはこの形:
    "sounds": {
      "engine": { "type": "i4", "pitch": 1.05, "load": 0.9 },
      "turbo":  { "pitch": 1.2 },
      "shift":  { "pitch": 0.9 }
    }

画面で動かした値は自分の画面だけで、ゲームを閉じると消えます。貼って F3+T で読み直せば、パックの音になります。もちろん、JSON を手で書いて F3+T で聞いてもかまいません。

  1. GameGet in your car and press Ctrl+H. "Car sound debug" opens with that model's sounds
  2. GameMove the engine's "Type", "Pitch" and "Roughness on throttle", and the "Pitch" of the turbo, shifts and so on. The game keeps running, so you can compare them while driving
  3. GameWhen it sounds right, press "Copy JSON".
  4. FilePaste it at the top level of vehicles/ae86.json, replacing any sounds already there. It looks like this:
    "sounds": {
      "engine": { "type": "i4", "pitch": 1.05, "load": 0.9 },
      "turbo":  { "pitch": 1.2 },
      "shift":  { "pitch": 0.9 }
    }

Changes made on the screen apply only on your screen and only until you quit. Paste them and reload with F3+T to make them the pack's sounds. Writing the JSON by hand and listening after F3+T works too.

The car sound debug screen opened over the car, with the engine type, pitch and roughness on throttle at the top and a pitch slider for each sound below
図 18. Ctrl+H の「車の音のデバッグ」。いちばん上が合成したエンジン音の種類・高さ・踏んだときの荒さ、その下にターボ・タイヤの鳴き・路面音・変速音などの高さが並びます。各行の「R」で元の値に戻り、下の「JSON をコピー」で sounds をコピーします。ゲームは止まらないので、走りながら聞き比べられます
Fig. 18. "Car sound debug" on Ctrl+H. The synthesised engine's type, pitch and roughness on throttle are at the top, with the pitch of the turbo, tyre squeal, surface noise, gear changes and so on below. "R" on each row resets it, and "Copy JSON" at the bottom copies sounds. The game keeps running, so you can compare them while driving.

エンジンの type に書ける種類(どれも KurumaMod が合成した音で、回転数ごとに作り分けてあります):

Engine type values (all synthesised by KurumaMod, with separate audio for each rpm range):

typeエンジン音の感じ
i4_turbo直 4 ターボ(既定)SR20DET が手本。乾いて低く、タービンで丸い
i4直 4 NAタービンが無いぶん鋭く、高回転で澄む
i6直 6 ターボRB・JZ のような滑らかなストレート 6
flat6水平対向 6 NA左右のバンクが交互に吹く 911 の唸り
v8クロスプレーン V8低く「ドロドロ」した不等間隔の拍
diesel4ディーゼルターボバスやトラックのような低い「ゴロゴロ」に、燃焼の「ガラガラ」が乗る
typeEngineCharacter
i4_turboTurbo inline-4 (default)Modelled on the SR20DET. Dry and low, rounded off by the turbine
i4Naturally aspirated inline-4Sharper without a turbine; clears up at high rpm
i6Turbo inline-6A smooth straight six in the RB/JZ mould
flat6Naturally aspirated flat-6The 911 howl of two banks firing in turn
v8Cross-plane V8Low, uneven "burble"
diesel4Turbo dieselA low bus-or-truck rumble with a combustion clatter on top

どの音にも書ける値:

Values every sound accepts:

値意味範囲(既定)
pitch高さの倍率。エンジンなら回転数に対する高さをまるごとずらす0.5〜2.0(1)
sound音源の差し替え(下の「B. 最小のエンジン音を付ける」と同じ。文字列だけで書いてもよい)—
type(engine だけ)エンジンの種類(上の表)。種類だけなら "engine": "flat6" のように文字列で書いてもよいi4_turbo
load(engine だけ)アクセルを踏んだときの荒い音の出方。下げると上品に、上げると荒く0〜1.5(1)
ValueMeaningRange (default)
pitchPitch multiplier. For the engine it shifts the whole note against rpm0.5–2.0 (1)
soundReplace the audio (same as "B. Add a minimal engine sound" below; a plain string works too)—
type (engine only)Engine type (table above). For the type alone, a plain string works: "engine": "flat6"i4_turbo
load (engine only)How much the rough on-throttle sound comes through. Lower is smoother, higher is rawer0–1.5 (1)
  • engine は合成したエンジン音のための項目です。exhaust に音源を書くと、合成した音の代わりにその音が鳴ります(engine の値は効かなくなる)
  • slip_chatter と exhaust_high は、書かなければ slip・exhaust の pitch を引き継ぎます
  • 大きさ(volume)は書けません。音量は聞く人が H キーの設定画面の「サウンド」で、音の種類ごとに決めます
  • engine is for the synthesised engine. If you put audio in exhaust, that plays instead (and the engine values no longer apply)
  • slip_chatter and exhaust_high inherit pitch from slip and exhaust unless you write them
  • You can't set volume. Players choose the volume of each kind of sound themselves under "Sound" in the H settings screen

B. 最小のエンジン音を付ける

B. Add a minimal engine sound

  1. ファイル音源を置く。assets/mypack/sounds/ae86_exhaust.ogg。OGG・モノラルで、継ぎ目なくループするもの
  2. ファイル高回転用の音源を作って、同じ場所に置く。同梱の道具を使う(Python が要る):
    pip install numpy soundfile
    python sound_tools/make_octave_up.py ae86_exhaust.ogg
    # → ae86_exhaust_high.ogg
  3. ファイル音に名前を付ける。assets/mypack/sounds.json:
    {
      "ae86_exhaust": {
        "category": "neutral",
        "subtitle": "subtitles.kurumamod.car_exhaust",
        "sounds": [{ "name": "mypack:ae86_exhaust", "attenuation_distance": 64 }]
      },
      "ae86_exhaust_high": {
        "category": "neutral",
        "subtitle": "subtitles.kurumamod.car_exhaust",
        "sounds": [{ "name": "mypack:ae86_exhaust_high", "attenuation_distance": 64 }]
      }
    }
  4. ファイル車の見た目の JSON から指す。assets/mypack/vehicles/ae86.json(6 章)のいちばん外側に、手順 3 で付けた名前を書く:
    "sounds": {
      "exhaust": "mypack:ae86_exhaust",
      "exhaust_high": "mypack:ae86_exhaust_high"
    }
  5. ゲームF3+T を押す。

これで、乗っている車のエンジン音がその場で入れ替わります。

  1. FileAdd the sound assets/mypack/sounds/ae86_exhaust.ogg: Ogg Vorbis, mono, a seamless loop
  2. FileMake the high-rpm copy and put it next to it, with the bundled tool (needs Python):
    pip install numpy soundfile
    python sound_tools/make_octave_up.py ae86_exhaust.ogg
    # → ae86_exhaust_high.ogg
  3. FileName the sounds in assets/mypack/sounds.json:
    {
      "ae86_exhaust": {
        "category": "neutral",
        "subtitle": "subtitles.kurumamod.car_exhaust",
        "sounds": [{ "name": "mypack:ae86_exhaust", "attenuation_distance": 64 }]
      },
      "ae86_exhaust_high": {
        "category": "neutral",
        "subtitle": "subtitles.kurumamod.car_exhaust",
        "sounds": [{ "name": "mypack:ae86_exhaust_high", "attenuation_distance": 64 }]
      }
    }
  4. FilePoint the car's looks JSON at them. At the top level of assets/mypack/vehicles/ae86.json (chapter 6), write the names from step 3:
    "sounds": {
      "exhaust": "mypack:ae86_exhaust",
      "exhaust_high": "mypack:ae86_exhaust_high"
    }
  5. GamePress F3+T.

The car you are in switches to the new engine sound on the spot.

ほかの音も同じやり方で差し替えられます。sounds に書ける名前:

Other sounds are replaced the same way. Names you can use in sounds:

名前音鳴り方
engine合成したエンジン音音源は書けない。type・pitch・load だけ(上の「数字だけ」)
exhaustエンジン音(低〜中回転)ループ。回転数で音程、回転数とアクセルで音量が変わる。書くと合成したエンジン音の代わりに鳴る
exhaust_highエンジン音(高回転)ループ。exhaust を 1 オクターブ上げたもの
roadロードノイズループ。車速
wind風切り音ループ。車速
slip / slip_chatterタイヤの悲鳴(伸ばし/刻み)ループ。舗装路で滑ったとき。滑り始めの 0.6 秒だけ刻みが鳴る
gravel / sand砂利・土/砂・雪の路面音ループ。未舗装を走っているとき
turboターボの過給音(ヒュイーン)ループ。ブーストで音程と音量が上がる。ターボの部品を付けたときだけ
shift変速音1 回
crash衝突音1 回
blowoffブローオフ(プシュッ)1 回。ブーストが掛かった状態でアクセルを抜いたときとシフトアップのとき。ブローオフバルブの部品を付けたときだけ
NameSoundHow it plays
engineSynthesised engineNo audio; only type, pitch and load (see "numbers only" above)
exhaustEngine (low to mid rpm)Loop. Pitch follows rpm, volume follows rpm and throttle. Plays instead of the synthesised engine
exhaust_highEngine (high rpm)Loop. exhaust shifted up one octave
roadRoad noiseLoop. Speed
windWindLoop. Speed
slip / slip_chatterTyre squeal (sustained / chatter)Loop. Sliding on tarmac; the chatter plays for the first 0.6 s of a slide
gravel / sandGravel & dirt / sand & snowLoop. Driving on loose ground
turboTurbo spool whistleLoop. Pitch and volume rise with boost. Only with a turbo part fitted
shiftGear changeOne-shot
crashImpactOne-shot
blowoffBlow-off valveOne-shot. On a throttle lift or upshift under boost. Only with a blow-off valve part fitted

必要なときだけ

Only when you need it

音源をうまく作りたい
  • OGG Vorbis のモノラルにする。Audacity なら「トラック → ミックス → ステレオをモノラルにミックスダウン」してから OGG で書き出す
  • ループ音は末尾を先頭へクロスフェードして、継ぎ目を消す。長さは 1 秒ほどあれば十分。短すぎると繰り返しが耳につく
  • 音量は一定にする。ゲームがアクセルや車速で音量を動かすので、素材の中の強弱は二重に掛かって「うねる」
  • エンジン音は少し高めに作る。アイドルで元の 0.65 倍、レブで約 3.9 倍の音程で鳴る。実車のアイドリングをそのまま使うと低すぎる
Make good source audio
  • Ogg Vorbis, mono. In Audacity: Tracks → Mix → Mix Stereo Down to Mono, then export as OGG
  • Cross-fade the tail of a loop into its head so there is no seam. About a second is plenty; much shorter and the repetition becomes audible
  • Keep the level steady. The game drives volume from throttle and speed, so any swell inside the file is applied twice and the sound "wobbles"
  • Build the engine a little high. It plays at 0.65× the original pitch at idle and about 3.9× at the redline; a straight recording of a real idle ends up too low
音の届く距離や字幕を変えたい
  • attenuation_distance … 音が届く距離 [ブロック]。書かなければ 16。KurumaMod はエンジン音 64・スキール 48・ロードノイズ 32
  • subtitle … 字幕の翻訳キー。KurumaMod のもの(subtitles.kurumamod.car_exhaust など)をそのまま借りられる。自分の lang に書いたキーでもよい
  • "name" は sounds/ からのパスで、拡張子を付けない
Change how far a sound carries, or its subtitle
  • attenuation_distance — how far it carries, in blocks (16 if left out). KurumaMod uses 64 for the engine, 48 for squeal, 32 for road noise
  • subtitle — the subtitle's translation key. You can borrow KurumaMod's (subtitles.kurumamod.car_exhaust and so on) or use one from your own lang
  • "name" is the path under sounds/, without the extension
ターボやブローオフの音を変えたい

sounds に "turbo" / "blowoff" を書きます。変わるのは音だけです。鳴るかどうかは、その車にターボやブローオフバルブの部品が付いているかで決まります(パーツの 3 章)。

Change the turbo or blow-off sound

Write "turbo" / "blowoff" in sounds. Only the sound changes. Whether it plays depends on the car having a turbo or blow-off valve part fitted (chapter 3 of the Parts guide).

仕組みを知りたい(なぜ高回転用の音源が要るのか)

Minecraft は音程を 0.5〜2.0 倍までしか変えられません。1 つの音源ではレブまで音程が上がりきらないので、1 オクターブ上の音源を exhaust_high として並べ、回転に合わせて 2 つを入れ替えています。

make_octave_up.py は長さを半分にして 1 オクターブ上げます。ループはループのまま出てきます(継ぎ目は増えません)。ステレオを渡してもモノラルにして書きます。

How it works (why a high-rpm sound is needed)

Minecraft can only shift pitch between 0.5× and 2.0×, so one file cannot climb all the way to the redline. The game plays a one-octave-up copy as exhaust_high and cross-fades between the two with rpm.

make_octave_up.py halves the length to go up an octave. A seamless loop comes out seamless, and stereo input is written as mono.

うまくいかないとき
  • 鳴らない … mp3 や wav になっていないか(OGG だけ鳴る)。"name" に拡張子を付けていないか
  • いつもの音のまま … sounds に書いた名前が sounds.json に無い。ログに警告が 1 行出ている。直したら F3+T
  • 離れても音が小さくならない … 音源がステレオ。モノラルにする
  • 音がうねる … 音源の中で音量が揺れている。一定にする
  • レブ付近で音程が上がりきらない … exhaust_high を書いていない。書かないと高回転側にも同じ音源を使い、音程が 2 倍で頭打ちになる
When it doesn't work
  • No sound — is it MP3 or WAV? Only OGG plays. Did you put the extension in "name"?
  • Still the usual sound — the name in sounds is missing from sounds.json. A warning is in the log. Press F3+T after fixing
  • It stays loud far away — the file is stereo. Make it mono
  • The sound wobbles — the level swells inside the file. Keep it steady
  • The pitch stops rising near the redline — exhaust_high is missing. Without it the same file plays on the high side, and the pitch caps at 2×

12諸元(走り)を書く

12Write the spec (how it drives)

加速・ブレーキ・曲がりかたを決める値(諸元)を書きます。置き場所は data/mypack/cars/<車>.json です。

This sets the values that decide acceleration, braking and cornering (the spec). They go in data/mypack/cars/<car>.json.

最小の諸元を作る

Make a minimal spec

  1. ゲーム車に乗り、G で調整画面を開いて、走りを詰める。
  2. ゲーム「プリセット」から名前を付けて保存する。
  3. ファイルconfig/kurumamod-setups.json を開き、付けた名前の { … } の中身をコピーする。中に "parts": { … } があれば、そこは除く
  4. ファイルdata/mypack/cars/ae86.json の values に貼る。
    {
      "order": 10,
      "values": {
        "mass": 1500.0,
        "peak_torque": 200.0,
        "peak_torque_rpm": 3200.0,
        "redline_rpm": 5600.0
      }
    }
  5. ゲーム/reload を打つ。(F3+T ではない)

これで、クリエイティブタブから出したその車が、調整画面で詰めたとおりに走ります。

  1. GameGet in a car, press G to open the tuning screen, and dial in the handling.
  2. GameSave it under a name from "Preset".
  3. FileOpen config/kurumamod-setups.json and copy what is inside the { … } under your name. If there is a "parts": { … } inside, leave that out
  4. FilePaste it into values in data/mypack/cars/ae86.json.
    {
      "order": 10,
      "values": {
        "mass": 1500.0,
        "peak_torque": 200.0,
        "peak_torque_rpm": 3200.0,
        "redline_rpm": 5600.0
      }
    }
  5. GameRun /reload. (Not F3+T.)

The car, taken fresh from the creative tab, now drives the way you tuned it.

必要なときだけ

Only when you need it

変えたい項目だけ書きたい

書かなかった項目は既定値になります。既定値から変えたいところだけ残せば十分です。KurumaMod の項目が増えても、古いパックはそのまま読めます。

  • 書ける項目の全リストは付録 A。ここに無い項目(バネ定数や重心高のように、車重などから自動で決まる値)は書いても読まれない
  • values を使わず、いちばん外側に直接書いてもよい
Write only what you change

Anything you leave out takes the default, so keep only what differs from the defaults. Old packs keep loading when KurumaMod adds parameters.

  • Every key is listed in Appendix A. Anything not there (such as spring rates or the centre of gravity height, which follow from mass and the like) is ignored even if written
  • You may skip values and write the keys at the top level instead
手で数字を書きたい(単位)

ファイルには内部単位で書きます。角度はラジアンです。調整画面が度で見せている項目でも同じです。

種類単位
長さm(cm ではない)
質量kg
角度rad(度ではない)
バネ定数N/m
トルクN·m
回転数rpm
  • 例: 最大切れ角 35 度は "max_steer": 0.6109。32.0 と書くと 32 ラジアンと読まれる
  • 調整画面の範囲から外れた値は、範囲の端に丸められる(ログに警告が出る)
Type the numbers by hand (units)

The file takes internal units. Angles are radians, even for parameters the tuning screen shows in degrees.

QuantityUnit
Lengthm (not cm)
Masskg
Anglerad (not degrees)
Spring rateN/m
TorqueN·m
Engine speedrpm
  • Example: 35° of steering lock is "max_steer": 0.6109. Writing 32.0 is read as 32 radians
  • Values outside the tuning screen's range are clamped to the nearest end (the log warns you)
メモを残したい

_ で始まるキーは読み飛ばされます。JSON にはコメントが書けないので、これで理由を残せます。

{
  "values": {
    "_comment_mass": "バンなので既定より重くする",
    "mass": 1500.0
  }
}
Leave notes

Keys starting with _ are skipped. JSON has no comments, so this is how you leave a note.

{
  "values": {
    "_comment_mass": "A van, so heavier than the default",
    "mass": 1500.0
  }
}
クリエイティブタブでの並び順を変えたい

いちばん外側の order で決まります。小さいほど前(既定 100)。

Change the order in the creative tab

Set order at the top level. Smaller comes first (default 100).

最初から部品を付けておきたい

いちばん外側の default_parts に、場所ごとに部品の id を書きます(values と同じ階層)。換装画面ではこれが「純正」になります。

{
  "values": { ... },
  "default_parts": {
    "wheel": "mypack:my_wheel",
    "plate": "kurumamod:plate_jp_private",
    "front_bumper": { "part": "mypack:stock_bumper", "removable": false }
  }
}

外すと穴が開く部品は "removable": false にします。場所ごとの書き方:

Fit parts from the start

Write a part id per slot in default_parts at the top level (next to values). These become "Stock" in the parts screen.

{
  "values": { ... },
  "default_parts": {
    "wheel": "mypack:my_wheel",
    "plate": "kurumamod:plate_jp_private",
    "front_bumper": { "part": "mypack:stock_bumper", "removable": false }
  }
}

Use "removable": false for a part whose removal would leave a hole. Per slot:

うまくいかないとき
  • 直したのに走りが変わらない … /reload を打ったか。すでに置いてある車は置いたときの諸元のまま。クリエイティブタブから出し直す
  • その車種がタブから消えた … JSON が壊れている。values に "parts" のような数でないものが混ざっていないか。理由はログに出る
  • 舵が異常に切れる・効かない … 角度を度で書いていないか(ラジアンで書く)
  • 書いた値が効かない … 付録 A に無い項目かもしれない(車重などから自動で決まる値は書けない)。見た目の JSON(assets/)に書いていないか
When it doesn't work
  • An edit changes nothing — did you run /reload? A car already placed keeps the spec it was placed with; take a fresh one from the creative tab
  • The car vanished from the tab — the JSON is broken. Is something that is not a number, like "parts", inside values? The reason is in the log
  • Steering is wild or dead — did you write an angle in degrees? Use radians
  • A value has no effect — it may not be in Appendix A (values that follow from mass and the like cannot be written). Or did you put it in the looks JSON under assets/?

13アニメーションを付ける(glTF)オプション2.2.0〜

13Add animations (glTF)Optional2.2.0+

glTF(.glb)のモデルは、Blender で付けたアニメーションを、車の状態に合わせて再生できます。リトラクタブルヘッドライト、シフトレバー、ペダル、メーターの針などです。この章はオプションです。Wavefront(.obj)の車にはアニメーションを付けられません。

A glTF model (.glb) can play the animations you made in Blender along with the car: pop-up headlights, the gear lever, the pedals, gauge needles and so on. This chapter is optional. Wavefront (.obj) cars cannot be animated.

見本のサンプルカー(models/entity/sample.glb)がこの章の見本です。元の .blend は modeling_tools/sample_car.blend にあります。

The example pack's sample car (models/entity/sample.glb) is the worked example for this chapter. Its .blend is in modeling_tools/sample_car.blend.

glTF で書き出す

Export as glTF

書き出し方は 5 章のとおりです。付けたアクションはそのままアニメーションとして書き出され、アクションの名前がクリップの名前になります(NLA に載せる必要はありません)。

Export as in chapter 5. Your actions are exported as animations as they are, and each action's name becomes the clip name (you don't need to push them to the NLA).

  • 左右で別のオブジェクトにして light_head.001 のように番号が付いても、light_head で始まれば同じ役目です
  • アニメーションで動く部品の子にした Empty(beam_head)も、選んでから書き出します
  • If left and right are separate objects and Blender numbers them (light_head.001), anything that starts with light_head still counts
  • Select the Empties (beam_head) parented to animated parts as well before exporting

vehicles/<車>.json の body.model は .glb を指します。

body.model in vehicles/<car>.json points at the .glb.

"body": {
  "model": "mypack:models/entity/ae86.glb",
  "texture": "mypack:textures/entity/ae86.png"
}
"body": {
  "model": "mypack:models/entity/ae86.glb",
  "texture": "mypack:textures/entity/ae86.png"
}
テクスチャは今も JSON から

glTF のマテリアルに貼ったテクスチャはまだ読みません。body.texture を書き、書き出しの「画像」は「なし」にしておくとファイルが軽くなります。塗装(paints)もこれまでどおり JSON で差し替えます。

TEXTURES STILL COME FROM THE JSON

Textures on glTF materials are not read yet. Write body.texture, and set the exporter's "Images" to "None" to keep the file small. Paints (paints) still swap the texture from the JSON as before.

再生できるのは固い物が回る・動く・伸び縮みするアニメーションだけです。骨で頂点を曲げるもの(スキン)と形の変形(シェイプキー)は読みません。ドア・ボンネット・リトラ・ウイング・レバー・針は、どれも固い物が蝶番で動くだけなので足ります。

Only rigid animation is played: objects that rotate, move or scale. Skinning (bones bending vertices) and shape keys are not read. Doors, bonnets, pop-ups, wings, levers and needles are all rigid things on a hinge, so this covers them.

アニメーションを作る

Make the animation

  1. Blender動かす部分を別のオブジェクトにし、原点を回転の中心(蝶番)に置く。glTF はこの原点を回す中心として持ちます
  2. Blender一緒に動くものはそのオブジェクトの子にする。リトラなら、ふたの子にレンズ(light_head)を入れると一緒に上がります
  3. Blenderアクションの最初のキーを「0」、最後のキーを「1」の姿にする。リトラなら最初が閉じ、最後が全開。名前を付けます(PopUp)
  1. BlenderMake the moving piece its own object and put its origin on the pivot (the hinge). glTF keeps the origin as the point it turns about
  2. BlenderParent whatever moves with it to that object. For a pop-up, parent the lens (light_head) to the lid and it rises with it
  3. BlenderMake the first key the "0" pose and the last key the "1" pose. For a pop-up, closed first and fully open last. Give the action a name (PopUp)

ゲームの中では、クリップの長さを 0〜1 にならした位置で動きを扱います。0 が最初のキー、1 が最後のキーです。

In the game a clip is handled as a position from 0 to 1 along its length: 0 is the first key and 1 is the last.

アニメーションを何で動かすかを書く

Say what drives the animation

vehicles/<車>.json に animations を足し、クリップごとに 1 つずつ書きます。動かし方(mode)は 3 つです。

Add animations to vehicles/<car>.json, one entry per clip. There are three ways to drive one (mode).

mode動き例
target入力が入っているか切れているかで決まる行き先へ、クリップの速さで向かう。途中で変わればその場から折り返すリトラ、ドア
map入力の値の範囲(range)を、クリップの 0〜1 に写すレバー、ペダル、針
loop入力が入っている間、繰り返し回る。切れたらその位置で止まる回るもの
modeWhat it doesFor
targetHeads at the clip's own speed to a target set by whether the input is on or off. If that changes halfway, it turns back from where it isPop-ups, doors
mapMaps a range of the input's value (range) onto 0 to 1 of the clipLevers, pedals, needles
loopPlays over and over while the input is on, and stops where it is when it goes offThings that spin

input に書けるもの:

What input can be:

input中身使える mode
headlightヘッドライト(L)target・loop
brakeブレーキランプ(map ではブレーキの踏み込み)全部
reverseR に入っているtarget・loop
speed速度 [km/h](前後を問わない)map
rpmエンジンの回転数map
throttle・brake_pedalアクセル・ブレーキの踏み込み(0〜1)map
clutchクラッチの踏み込み(0〜1)。動くのは、マニュアルでクラッチペダルを割り当てた運転者の手元だけ(周りの人には動かない)map
boostターボのブースト(0〜1)。ターボが無ければ 0map
steer前輪の切れ角 [度](右が正)map
gear段(R が −1、N が 0、1 速から上)map
inputWhat it ismode
headlightHeadlights (L)target, loop
brakeBrake lights (with map, how far the brake is pressed)All
reverseIn reversetarget, loop
speedSpeed in km/h (either direction)map
rpmEngine rpmmap
throttle, brake_pedalHow far the throttle and brake are pressed (0 to 1)map
clutchHow far the clutch is pressed (0 to 1). It only moves for a driver who has a clutch pedal bound on a manual car, and only on their screenmap
boostTurbo boost (0 to 1). 0 without a turbomap
steerFront wheel angle in degrees (right is positive)map
gearGear (R is −1, N is 0, then 1 and up)map

input を書かなければ、いつも入っていることになります(loop ならずっと回る)。

Leave input out and it counts as always on (a loop spins all the time).

見本のサンプルカーの書き方:

How the sample car does it:

"animations": [
  { "clip": "PopUp", "mode": "target", "input": "headlight",
    "targets": { "off": 0.0, "on": 1.0 }, "lights_from": 0.6 },
  { "clip": "Shift", "mode": "map", "input": "gear", "range": [-1, 5] },
  { "clip": "Accel", "mode": "map", "input": "throttle", "range": [0.0, 1.0] },
  { "clip": "Boost", "mode": "map", "input": "boost", "range": [0.0, 1.0] }
]
"animations": [
  { "clip": "PopUp", "mode": "target", "input": "headlight",
    "targets": { "off": 0.0, "on": 1.0 }, "lights_from": 0.6 },
  { "clip": "Shift", "mode": "map", "input": "gear", "range": [-1, 5] },
  { "clip": "Accel", "mode": "map", "input": "throttle", "range": [0.0, 1.0] },
  { "clip": "Boost", "mode": "map", "input": "boost", "range": [0.0, 1.0] }
]
項目意味
clipBlender のアクションの名前
targetstarget の行き先。off が入力が切れているとき、on が入っているとき(0〜1)。書かなければ 0 と 1
rangemap の、位置 0 と位置 1 になる入力の値。[200, 80] のように逆向きにも書ける
speed再生の速さの倍率(target の向かう速さ、loop の回る速さ)。既定は 1(Blender で付けた長さのまま)
lights_frominput が headlight の target だけ。ここまで開いたらライトが点く(0〜1)。書かなければスイッチを入れた瞬間に点く
KeyMeaning
clipThe name of the action in Blender
targetsWhere a target heads: off while the input is off, on while it is on (0 to 1). 0 and 1 if left out
rangeFor map, the input values that land on position 0 and position 1. It can run backwards, as in [200, 80]
speedPlayback speed multiplier (how fast a target moves and a loop spins). 1 by default, the length you gave it in Blender
lights_fromOnly for a target whose input is headlight. The lamps come on once it is open this far (0 to 1). Without it they come on the moment the switch goes on

ライトはスイッチを切った瞬間に消え、それからふたが閉じます。車が見えた瞬間(乗り込んだとき・遠くから近づいたとき)は、開く途中を見せずに行き先の姿から始まります。

The lamps go out the moment the switch goes off, and then the lids close. When a car first comes into view (you get in, or it comes in from far away) it starts in its target pose rather than playing the opening.

開き具合をプレイヤーに決めさせる(半目)

Let players choose how far it opens (sleepy eyes)

targets の off か on を数ではなく player で書くと、その行き先をプレイヤーが換装画面(G のパーツ)で決められます。サンプルカーは、点けたときにどこまで開くか(半目)を選ばせています。

Write off or on in targets as a player entry instead of a number, and players set that target in the parts screen (G). The sample car lets players choose how far the pop-ups open when lit ("sleepy eyes").

"targets": {
  "off": 0.0,
  "on": { "player": "mypack:popup", "range": [0.3, 1.0], "default": 1.0 }
}
"targets": {
  "off": 0.0,
  "on": { "player": "mypack:popup", "range": [0.3, 1.0], "default": 1.0 }
}
  • player … 名前。パックの名前空間を付ける(mypack:popup)。64 字まで
  • range … プレイヤーが動かせる範囲(0〜1)。蝶番は等速で開くとは限らないので、見た目で決めてください
  • default … まだ決めていないときの位置。書かなければ range の下の端
  • 画面の名前は lang に anim.<名前空間>.<名前> で書きます("anim.mypack.popup": "リトラの開き")
  • player — the name. Prefix it with your pack's namespace (mypack:popup). Up to 64 characters
  • range — how far the player can move it (0 to 1). Hinges don't always open evenly, so pick it by eye
  • default — where it sits until the player picks. The low end of range if left out
  • Put the on-screen name in lang as anim.<namespace>.<name> ("anim.mypack.popup": "Pop-up height")

換装画面では動く部分に札が立ち、押すとスライダーが出ます。調整している間は、ライトの状態にかかわらずその位置で見せます。決めた値は車・回収したアイテム・プリセットに残り、周りの人にも同じに見えます。1 台につき 16 個までです。

In the parts screen a tag stands on the moving piece, and pressing it brings up a slider. While adjusting, the piece is shown at that position whatever the lights are doing. The choice is kept in the car, the picked-up item and presets, and other players see it too. Up to 16 per car.

lights_from より手前に開き幅を決めた場合は、そこまで開いたところでライトが点きます。

If the player sets the opening below lights_from, the lamps come on once the lids reach it.

光の向きを部品に付ける(beam_head)

Aim the light with the part (beam_head)

光の出る位置に Empty(表示は「単一の矢印」)を置き、名前を beam_head で始めると、そこがヘッドライトの光源になります。左右で 2 つ置けます(beam_head・beam_head.001)。

Put an Empty (display "Single Arrow") where the light comes out and give it a name that starts with beam_head, and it becomes a headlight source. You can have one each side (beam_head, beam_head.001).

  1. Blender全開の姿勢で、矢印を水平・真正面に向ける
  2. Blenderアニメーションで動く部品(リトラのふた)の子にする
  1. BlenderIn the fully open pose, point the arrow level and straight ahead
  2. BlenderParent it to the animated piece (the pop-up lid)

こうすると、霧の中に見える光の筋がふたと一緒に傾きます(開く途中は振り上がり、半目なら下を向く)。路面を照らす向きはいつも車の正面で、プレイヤーが Ctrl+L で決めた下向きがさらに足されます。

The light shafts you see in fog then tilt with the lid (swinging up as it opens, pointing down when half open). The light on the road always points straight ahead of the car, plus the downward aim each player sets with Ctrl+L.

  • beam_head が 1 つでもあれば、ヘッドライトの光源の位置はすべて Empty で決まります(レンズの形からは測りません)
  • 無ければこれまでどおり、位置はレンズの形から、向きは車の正面です
  • light_head の名前にしないこと。light_ で始まる名前は光る面(レンズ)の決まりです
  • テール・バックの beam_tail・beam_reverse はまだありません
  • If there is any beam_head, every headlight source is placed by the Empties (nothing is measured from the lens shape)
  • Without one, things work as before: the position comes from the lens shape and the direction is straight ahead
  • Don't name it light_head. Names that start with light_ are for glowing surfaces (lenses)
  • beam_tail and beam_reverse don't exist yet

決まりと、まだできないこと

Rules, and what it can't do yet

  • ハンドルにはアニメーションを付けない。steering で始まるオブジェクトは、MOD が形から軸を読んで回します(ハンドルを回す)
  • アニメーションで動くのは見た目だけです。当たり判定・札の位置・ナンバーの自動配置は、動かす前の姿で測ります
  • アニメーションで動く部品の上のミラーは、映す向きが動きません
  • スイッチ(好きなキーでアニメーションを動かす)はまだありません
  • 書き間違い(glTF に無いクリップ、知らない input、0〜1 の外の値)はログに 1 行ずつ出ます。直したら F3+T
  • glTF の車は、glTF を読める版(2.2.0 以降)の KurumaMod でしか出ません。配るときは依存する版を上げてください(配布の 1 章)
  • Don't animate the steering wheel. Objects that start with steering are turned by the mod from their shape (Make the steering wheel turn)
  • Only the looks move. Collision, tag positions and automatic plate placement use the pose before anything moves
  • A mirror on an animated piece doesn't change where it looks
  • There are no switches (driving a clip from a key of your choice) yet
  • Mistakes (a clip missing from the glTF, an unknown input, a value outside 0 to 1) each get a line in the log. Press F3+T after fixing
  • A glTF car only shows up on a KurumaMod that reads glTF (2.2.0 or later). Raise the version your pack depends on before you ship it (Shipping, chapter 1)

14チェックリスト

14Checklist

見落としやすいところを並べます。症状が出てから探すときは配布の 3 章へ。

What is easy to miss. If something is already wrong, go to chapter 3 of Shipping.

書き出す前(Blender)

Before exporting (in Blender)

  • ワールド原点が「地面の高さ・前後輪の中点・左右中央」にある
  • 車の前が −Y を向いている
  • フェンダーがゲージのタイヤに合っている
  • ライトの名前(オブジェクト名かマテリアル名)が light_head / light_tail / light_reverse のどれか。ほかの light_ は無い
  • レンズ面が車体から 1〜2mm 浮いている
  • 窓の名前(オブジェクト名かマテリアル名)が glass で始まる
  • 左右のドアミラーが別のオブジェクトになっている
  • マテリアルの Base Color が白
  • The world origin is at ground level, midway between the axles, on the centreline
  • The front of the car points along −Y
  • The arches line up with the gauge wheels
  • Light names (object or material) are light_head, light_tail or light_reverse. No other light_ exists
  • Lens faces float 1–2 mm proud of the body
  • Window names (object or material) start with glass
  • The two door mirrors are separate objects
  • Material Base Color is white

書き出しの画面

In the export dialog

  • 形式が glTF Binary (.glb) になっている
  • Selected Objects を入れた(ゲージが混ざらない)
  • Apply Modifiers を入れた(ミラーモディファイアが適用される)
  • 車体とタイヤを別のファイルに書き出した
  • Wavefront で書き出したときは、Selected Only を入れ、Forward Axis / Up Axis を触らず、.mtl も一緒に置いた
  • The format is glTF Binary (.glb)
  • Selected Objects ticked, so the gauge stays out
  • Apply Modifiers ticked, so the mirror modifier is applied
  • Body and wheel exported to separate files
  • If you exported Wavefront: Selected Only ticked, Forward Axis / Up Axis untouched, and the .mtl kept alongside

ゲームで見る前

Before loading it in game

  • JSON に書いたパスが、実際のファイル名と同じ
  • designWheelBase がメッシュの実寸
  • リソースパックで試すなら、ゲームで有効にした
  • 見た目を直したら F3+T、data/ を直したら /reload
  • The paths in the JSON match the actual file names
  • designWheelBase is your mesh's real size
  • If testing with a resource pack, it is enabled in game
  • F3+T after changing looks, /reload after changing data/

音を付けたとき

If you added sounds

  • ogg・モノラル・継ぎ目の無いループ
  • exhaust_high を sound_tools/make_octave_up.py で作って並べた
  • sounds.json の "name" に拡張子を付けていない
  • vehicles/<car>.json の sounds(マフラーなら部品の見た目の exhaust.sound)が sounds.json の名前を指している
  • Ogg, mono, seamless loops
  • exhaust_high made with sound_tools/make_octave_up.py and put alongside
  • No extension on "name" in sounds.json
  • sounds in vehicles/<car>.json (for an exhaust part, exhaust.sound in its looks JSON) points at names from sounds.json

ゲームの中で調整したとき

If you adjusted things in game

  • Ctrl+G(ナンバー・座席・ハンドル)と Ctrl+H(音)で決めた値を、「JSON をコピー」で vehicles/<車>.json に貼った(画面の値はゲームを閉じると消える)
  • 調整画面(G)で決めた走りの値を、諸元の values に書いた。角度はラジアン
  • Values set with Ctrl+G (plates, seat, steering) and Ctrl+H (sounds) were pasted into vehicles/<car>.json with "Copy JSON" (on-screen values are lost when you quit)
  • Handling values tuned in the G screen are written into the spec's values, with angles in radians

付録 A. 諸元の全項目(data/<pack>/cars/<car>.json)

Appendix A. Every spec key (data/<pack>/cars/<car>.json)

これで全部(66 項目と、前後のトレッドをまとめて書く track_width)。書き方は 12 章。範囲は調整画面のスライダーの範囲と同じです。外れた値は、上に外れれば上限、下に外れれば下限へ丸めて読み込み、ログに 範囲(… 〜 …)の外なので … に丸めました と残します。

既定は、何も書かなかったときの値です。寸法(wheel_base・track_width・wheel_radius)の既定はゲージの寸法と同じです。KurumaMod の既定の車(S15)は、車体を実車の比率で作ってあり、ゲージのタイヤでは大きすぎるので wheel_base 3.15・track_width 1.9・wheel_radius 0.4 だけ書いています。そのほかは既定のままです。

That is all of them (66 keys, plus track_width, which sets both track widths at once). How to write them is in chapter 12. The ranges are the same as the tuning screen's sliders. A value above the range is loaded as the maximum and one below as the minimum, and the log records 範囲(… 〜 …)の外なので … に丸めました ("outside the range, clamped to …").

A default is the value used when you leave the key out. The size defaults (wheel_base, track_width, wheel_radius) match the gauge. KurumaMod's default car (the S15) is built to real-car proportions, where the gauge tyres are too big, so it writes only wheel_base 3.15, track_width 1.9 and wheel_radius 0.4; everything else is at the default.

サスペンション

名前調整画面での名前単位既定範囲
strokeストロークm0.30.15 – 1.0
static_sag沈み込み率(バネの硬さ)割合0.39240.2 – 0.7
body_clearanceボディの地上高(当たり判定)m0.250.1 – 1.2
front_anti_rollフロント スタビライザーN/m25000 – 20000
rear_anti_rollリア スタビライザーN/m15000 – 20000
front_solid_axleフロントのサス形式0 = 独立・1 = リジッドアクスル00 – 1
rear_solid_axleリアのサス形式0 = 独立・1 = リジッドアクスル00 – 1
front_roll_centerフロント ロールセンター重心高に対する割合0.40 – 0.8
rear_roll_centerリア ロールセンター重心高に対する割合0.40 – 0.8

バネの硬さは N/m ではなく static_sag(停車時にストロークの何割沈むか)で書きます。バネ定数は車重とストロークからこの割合になるよう KurumaMod が計算するので、mass を変えても車高は変わりません。大きいほど柔らかく、段差でタイヤが下へ伸びる余裕が増えて車高が下がります(オフロード車は 0.5 前後)。小さいほど硬くなります。stroke を短くしてもバネは硬くなり、ダンパーの係数もそれに合わせて上がります。

ダンパー

名前調整画面での名前単位既定範囲
front_bump_dampingフロント 縮み側減衰減衰比0.450.1 – 1.5
front_rebound_dampingフロント 伸び側減衰減衰比0.450.1 – 1.5
rear_bump_dampingリア 縮み側減衰減衰比0.450.1 – 1.5
rear_rebound_dampingリア 伸び側減衰減衰比0.450.1 – 1.5

N·s/m ではなく減衰比(臨界減衰に対する割合)で書きます。係数はその輪のバネと荷重から KurumaMod が計算するので、stroke や mass を変えても効き方は変わりません。1 で揺り返しがちょうど出なくなる硬さ。実車は伸び側を縮み側の 1.5〜3 倍にすることが多く、そうすると段差を柔らかくいなしつつ揺れがすぐ収まります。

ステアリング ジオメトリ

名前調整画面での名前単位既定範囲
ackermannアッカーマン率割合(1 で幾何どおり)0.5−0.5 – 1.2
front_toeフロント トーrad(正でイン)0−0.02618 – 0.02618
rear_toeリア トーrad(正でイン)0−0.02618 – 0.02618
front_roll_steerフロント ロールステアrad/rad(正でアンダー)0.05−0.2 – 0.3
rear_roll_steerリア ロールステアrad/rad(正でアンダー)0.08−0.2 – 0.3
front_compliance_steerフロント コンプライアンスステアrad/G(正でアンダー)0.00873(=0.5°/G)−0.00873 – 0.0262
rear_compliance_steerリア コンプライアンスステアrad/G(正でアンダー)0.00349(=0.2°/G)−0.00873 – 0.0262
casterキャスターrad0.104720 – 0.17453
front_camberフロント キャンバーrad(負で上が内側)-0.01745-0.52360 – 0.17453
rear_camberリア キャンバーrad(負で上が内側)-0.01745-0.52360 – 0.17453

タイヤ

名前調整画面での名前単位既定範囲
frictionグリップμ10.3 – 1.5
tire_falloff滑ったときのグリップ低下割合00 – 0.5
tire_load_sensitivityタイヤの荷重感度—0.150 – 0.4
cornering_stiffness横すべり剛性—124 – 25
longitudinal_stiffness縦すべり剛性—185 – 40
wheel_radiusタイヤ半径m0.450.25 – 1.1

friction に書くのは実際の摩擦係数(μ)です。調整画面は既定を 1.00 とした相対値で出しています(いまは基準が 1.0 なので同じ数字)。

車体

名前調整画面での名前単位既定範囲
mass車重kg1200500 – 2500
weight_distribution前後の荷重配分前軸の割合0.560.35 – 0.7
wheel_baseホイールベースm3.122 – 7
track_widthトレッド(前後を同じ値に)m21.2 – 4
front_track_width前のトレッド(track_width より優先)m21.2 – 4
rear_track_width後ろのトレッド(track_width より優先)m21.2 – 4

エンジン

名前調整画面での名前単位既定範囲
peak_torque最大トルクN·m35060 – 700
peak_torque_rpm最大トルク回転数rpm42001500 – 8000
peak_power_rpm最高出力回転数rpm最大トルク回転数の 1.59 倍(6676.4)2500 – 12000
idle_rpmアイドル回転数rpm800500 – 2000
redline_rpmレブリミットrpm70004000 – 12000
engine_brakeエンジンブレーキN·m900 – 200
engine_inertiaエンジンの慣性kg·m²0.250.05 – 1

変速機

名前調整画面での名前単位既定範囲
gear_count前進の段数段53 – 8
first_gear1速のギア比—4.21.5 – 5
top_gear最高段のギア比—0.850.4 – 1.5
drivetrain_efficiency駆動系の伝達効率—0.90.7 – 1
shift_time変速にかかる時間秒0.350 – 1.5
manual_transmission変速0 = AT・1 = MT00 – 1
rev_match回転合わせ0 = 切・1 = 入(MT のシフトダウンで回転を合わせる。AT は常に入)10 – 1

駆動系・デフ

名前調整画面での名前単位既定範囲
drive_layout駆動方式0 = FF・1 = FR・2 = 4WD20 – 2
torque_split前後トルク配分後輪の割合(4WD のみ)0.50.1 – 0.9
diff_preloadデフ イニシャルトルクN·m00 – 300
diff_lock_ratioデフ 差動制限率—00 – 1
diff_coast_ratioデフ 戻し側の効き—0.50 – 1
center_diff_lockセンターデフ 締結の強さ—00 – 1

diff_lock_ratio と diff_preload がどちらも 0 ならオープンデフ。diff_coast_ratio は 0 で 1way、0.5 で 1.5way、1 で 2way。

torque_split と center_diff_lock は 4WD(drive_layout が 2)のときだけ効きます。torque_split は前後へ配る駆動力の割合で、後ろへ寄せるほど踏んだときに尻が出やすくなります(FR 寄り)。center_diff_lock が 0 ならオープンで配分どおり、上げると前後の回転差を揃えにいき、空転しかけた軸から掴んでいる軸へトルクが移ります(1 で直結)。締めるほど配分の意味は薄れ、低速で小さく回ったときに止まろうとします(タイトコーナーブレーキング)。サイドブレーキを引いている間は自動で切れます。古い drive_bias(0 = FF・1 = FR・間は 4WD の配分)と torque_falloff(トルク曲線の落ち方)も読めます。

ブレーキ・走行抵抗

名前調整画面での名前単位既定範囲
absABS強さ(0 で無効)0.70 – 1
rolling_resistance転がり抵抗—0.150 – 1

最高速の項目はありません。実際の最高速はトルクと抵抗から決まり、最高段でレブまで回した速度より速くは走れません。

空力

名前調整画面での名前単位既定範囲
drag_area空気抵抗(CdA)m²(Cd×前面投影面積)0.780.2 – 5
front_downforceダウンフォース(前)m²(−Cl×面積)00 – 3
rear_downforceダウンフォース(後)m²(−Cl×面積)00 – 3

空気抵抗は力として掛かるので、同じ値でも重い車ほど減速しにくくなります。目安はスポーツカー 0.5、乗用車 0.7、SUV 1.0。以前の drag(減速度の係数)を書いたパックは、その車の車重で自動的に換算され、走りは変わりません。

ダウンフォースは前軸・後軸の位置で車体を下へ押し、速度の 2 乗で増えます。前を強くするとオーバー、後ろを強くするとアンダー。押し付けるぶん空気抵抗も増える(ダウンフォースの 1/6 が CdA に足される)ので、付けるほど最高速は落ちます。目安はウイング付きの市販車で前後合わせて 0.3〜0.6、GT 系のレーシングカーで 2〜3。

操作と補助

名前調整画面での名前単位既定範囲
max_steer最大切れ角rad0.6109(=35°)0.1745 – 1.5708
steer_grip_margin切れ角の余裕(大で滑らせやすい)—10.8 – 8
visual_slip_limit見た目のタイヤ角rad(0 で無効)0.7854(=45°)0 – 1.5708
steer_rate舵が入るまでの時間秒0.250 – 1
steer_return舵が中立へ戻る時間秒0.250 – 1
self_aligning舵の自己復元—(0 で中立へ戻る)00 – 1
pedal_pressペダルを踏みきる時間秒0.150 – 1
pedal_releaseペダルを戻しきる時間秒0.150 – 1
handbrake_pressサイドブレーキが効ききる時間秒0.150 – 1
traction_controlトラクションコントロール強さ(0 で無効)10 – 1

Suspension

NameOn the tuning screenUnitDefaultRange
strokeTravelm0.30.15 – 1.0
static_sagSpring sagfraction0.39240.2 – 0.7
body_clearanceBody clearance (collision)m0.250.1 – 1.2
front_anti_rollFront anti-roll barN/m25000 – 20000
rear_anti_rollRear anti-roll barN/m15000 – 20000
front_solid_axleFront suspension type0 = independent, 1 = solid axle00 – 1
rear_solid_axleRear suspension type0 = independent, 1 = solid axle00 – 1
front_roll_centerFront roll centrefraction of CG height0.40 – 0.8
rear_roll_centerRear roll centrefraction of CG height0.40 – 0.8

Set spring stiffness with static_sag (the fraction of the stroke the car sinks at rest), not N/m. KurumaMod works out the spring rate from the mass and stroke to hit that fraction, so changing mass keeps the ride height. Higher is softer: more droop to follow the ground over steps, and a lower ride (off-roaders sit around 0.5). Lower is stiffer. A shorter stroke also stiffens the springs, and the damper coefficients rise with them.

Dampers

NameOn the tuning screenUnitDefaultRange
front_bump_dampingFront bump dampingdamping ratio0.450.1 – 1.5
front_rebound_dampingFront rebound dampingdamping ratio0.450.1 – 1.5
rear_bump_dampingRear bump dampingdamping ratio0.450.1 – 1.5
rear_rebound_dampingRear rebound dampingdamping ratio0.450.1 – 1.5

Write a damping ratio (a fraction of critical damping), not N·s/m. KurumaMod works out the coefficient from that wheel's spring and load, so changing stroke or mass keeps the feel the same. At 1 the car just stops bouncing back. Real cars often run rebound at 1.5–3 times bump, which soaks up bumps softly but settles quickly.

Steering geometry

NameOn the tuning screenUnitDefaultRange
ackermannAckermannfraction (1 = true Ackermann)0.5−0.5 – 1.2
front_toeFront toerad (positive = toe-in)0−0.02618 – 0.02618
rear_toeRear toerad (positive = toe-in)0−0.02618 – 0.02618
front_roll_steerFront roll steerrad/rad (positive = understeer)0.05−0.2 – 0.3
rear_roll_steerRear roll steerrad/rad (positive = understeer)0.08−0.2 – 0.3
front_compliance_steerFront compliance steerrad/G (positive = understeer)0.00873 (= 0.5°/G)−0.00873 – 0.0262
rear_compliance_steerRear compliance steerrad/G (positive = understeer)0.00349 (= 0.2°/G)−0.00873 – 0.0262
casterCasterrad0.104720 – 0.17453
front_camberFront camberrad (negative = top leans in)-0.01745-0.52360 – 0.17453
rear_camberRear camberrad (negative = top leans in)-0.01745-0.52360 – 0.17453

Tires

NameOn the tuning screenUnitDefaultRange
frictionGripμ10.3 – 1.5
tire_falloffGrip loss when slidingfraction00 – 0.5
tire_load_sensitivityTyre load sensitivity—0.150 – 0.4
cornering_stiffnessLateral slip stiffness—124 – 25
longitudinal_stiffnessLongitudinal slip stiffness—185 – 40
wheel_radiusTyre radiusm0.450.25 – 1.1

friction is the actual coefficient of friction (μ). The tuning screen shows it relative to the default (the reference is 1.0 for now, so the numbers match).

Chassis

NameOn the tuning screenUnitDefaultRange
massMasskg1200500 – 2500
weight_distributionWeight distributionfraction on the front axle0.560.35 – 0.7
wheel_baseWheelbasem3.122 – 7
track_widthTrack width (same front and rear)m21.2 – 4
front_track_widthFront track width (overrides track_width)m21.2 – 4
rear_track_widthRear track width (overrides track_width)m21.2 – 4

Engine

NameOn the tuning screenUnitDefaultRange
peak_torquePeak torqueN·m35060 – 700
peak_torque_rpmPeak torque rpmrpm42001500 – 8000
peak_power_rpmPeak power rpmrpm1.59 × peak torque rpm (6676.4)2500 – 12000
idle_rpmIdle rpmrpm800500 – 2000
redline_rpmRedlinerpm70004000 – 12000
engine_brakeEngine brakingN·m900 – 200
engine_inertiaEngine inertiakg·m²0.250.05 – 1

Gearbox

NameOn the tuning screenUnitDefaultRange
gear_countForward gearsgears53 – 8
first_gear1st gear ratio—4.21.5 – 5
top_gearTop gear ratio—0.850.4 – 1.5
drivetrain_efficiencyDrivetrain efficiency—0.90.7 – 1
shift_timeShift times0.350 – 1.5
manual_transmissionTransmission0 = AT, 1 = MT00 – 1
rev_matchRev matching0 = off, 1 = on (matches revs on MT downshifts; always on for AT)10 – 1

Driveline & Differential

NameOn the tuning screenUnitDefaultRange
drive_layoutDrive layout0 = FWD, 1 = RWD, 2 = AWD20 – 2
torque_splitFront/rear torque splitrear share (AWD only)0.50.1 – 0.9
diff_preloadDiff preloadN·m00 – 300
diff_lock_ratioDiff lock ratio—00 – 1
diff_coast_ratioDiff coast ratio—0.50 – 1
center_diff_lockCentre diff lock—00 – 1

With diff_lock_ratio and diff_preload both at 0 it is an open diff. diff_coast_ratio is 1-way at 0, 1.5-way at 0.5, 2-way at 1.

torque_split and center_diff_lock only apply to AWD (drive_layout 2). torque_split is the share of drive sent to each axle; the more goes to the rear, the more the tail steps out on the throttle (RWD-like). With center_diff_lock at 0 the centre is open and the split holds exactly; raising it pulls the front and rear speeds together and moves torque from an axle that starts to spin to the one that still grips (1 is fully locked). The tighter it is, the less the split matters, and the car resists tight turns at low speed (tight-corner braking). It opens automatically while the handbrake is pulled. The old drive_bias (0 = FWD, 1 = RWD, anything between = AWD split) is still read.

Brakes & Resistance

NameOn the tuning screenUnitDefaultRange
absABSstrength (0 = off)0.70 – 1
rolling_resistanceRolling resistance—0.150 – 1

There is no top-speed field. The real top speed comes out of torque versus resistance, and the car can never go faster than top gear at the redline.

Aerodynamics

NameOn the tuning screenUnitDefaultRange
drag_areaDrag area (CdA)m² (Cd × frontal area)0.780.2 – 5
front_downforceFront downforcem² (−Cl × area)00 – 3
rear_downforceRear downforcem² (−Cl × area)00 – 3

Drag is applied as a force, so the same value slows a heavier car less. Rough guide: sports car 0.5, saloon 0.7, SUV 1.0. Packs that still write the old drag (a deceleration coefficient) are converted using that car's mass, so they drive exactly as before.

Downforce pushes the body down at the front and rear axles and grows with the square of speed. More at the front gives oversteer, more at the rear gives understeer. It costs drag too (one sixth of the downforce is added to CdA), so the more you add, the lower the top speed. Rough guide: 0.3–0.6 in total for a road car with a wing, 2–3 for a GT-class race car.

Controls & Aids

NameOn the tuning screenUnitDefaultRange
max_steerMax steering anglerad0.6109 (= 35°)0.1745 – 1.5708
steer_grip_marginSteering margin (higher = slides more)—10.8 – 8
visual_slip_limitVisual wheel anglerad (0 = off)0.7854 (= 45°)0 – 1.5708
steer_rateSteering lock-to-lock times0.250 – 1
steer_returnSteering return times0.250 – 1
self_aligningSelf-aligning torque— (0 = returns to centre)00 – 1
pedal_pressPedal press times0.150 – 1
pedal_releasePedal release times0.150 – 1
handbrake_pressHandbrake press times0.150 – 1
traction_controlTraction controlstrength (0 = off)10 – 1

KurumaMod — 諸元の全項目は車の付録 A。ゲージスクリプトは modeling_tools/blender_gauge.py・modeling_tools/blender_wheel_gauge.py・modeling_tools/blender_tire_gauge.py、ナンバーは modeling_tools/blender_plate_gauge_*.py。

KurumaMod — every spec key is in Appendix A of the Car guide. The gauge scripts are modeling_tools/blender_gauge.py, modeling_tools/blender_wheel_gauge.py and modeling_tools/blender_tire_gauge.py, plus modeling_tools/blender_plate_gauge_*.py for plates.