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

Make a wheelホイールを作る

The wheel model, and turning it into a part players can pick.ホイールのモデルと、換装画面で選べる部品にする方法。

1ホイールのモデルを作る

1Model the wheel

ホイールを作るのは必須ではありません

カーパックでホイールを用意しなければ、KurumaMod 標準のホイール(TE37)が自動で付きます。このガイドは、自分でホイールをデザインしたい人のためのものです。

Making a wheel is optional

If your car pack has no wheel of its own, KurumaMod's standard wheel (the TE37) is fitted automatically. This guide is for those who want to design their own wheel.

ホイールを Blender で作り、glTF(.glb)で書き出すまでです。ホイールは車体とは別のファイルで作ります。

This chapter takes a wheel from Blender to an exported glTF file (.glb). Wheels are built in a separate file from the body.

最小のホイールを作る

Make a minimal wheel

  1. Blender新しいファイルで、ゲージを置く。Scripting タブで modeling_tools/blender_wheel_gauge.py を実行する。寸法は同梱の TE37 に合わせてあり、リムの外形(半径 0.352m・幅 0.32m)・デザイン面の限界・嵌まるタイヤの断面(外側の半径 0.45m)・車軸の線・地面・表を示す矢印が置かれる。リムは外形の円柱の中へ収める
  2. Blender円柱に収まるように、リムだけを作る。両端のフランジを円柱の端の面に合わせる。幅はどのホイールも同じ 0.32m(規格)なので、細い・太いを作り分けない(太さは換装画面のスライダーで変える)。原点は車軸の中心、つまりリムの幅の真ん中に置く。円柱から作るなら、先に R Y 9 0 で回して軸を左右(X)へ向ける
  3. Blenderホイールの表(デザイン面)を +X へ向ける。ゲージの矢印の側。作るのは左側用の 1 つだけ
  4. Blenderタイヤは作らない。タイヤは描くときに自動で嵌まる(換装画面で選んだタイヤ、選んでいなければ KurumaMod 標準のタイヤ)
  5. Blenderゲージを除いてホイールだけを選び、glTF(.glb)で書き出す。「Selected Objects」と「Apply Modifiers」を入れる(設定の全体は車の 5 章と同じ。Wavefront でも書き出せる)。ホイールにアニメーションを付けても動かない(回すのは MOD)
  6. ファイル書き出したファイルとテクスチャを置く。assets/mypack/models/entity/my_wheel.glb と assets/mypack/textures/entity/my_wheel.png

これで、ホイールのモデルができました。換装画面で選べるようにするのは 2 章、自分の車に最初から履かせるのは下の「自分の車に最初から履かせたい」です。

  1. BlenderIn a new file, place the gauge. Run modeling_tools/blender_wheel_gauge.py from the Scripting tab. Sized after the bundled TE37, it places the rim envelope (0.352 m radius, 0.32 m wide), the limit for the design face, the section of the tyre that fits on it (0.45 m outer radius), the axle line, the ground and an arrow marking the outer face. Keep the rim inside the envelope
  2. BlenderModel only the rim, inside the cylinder, with both flanges on the cylinder's end faces. Every wheel has the same 0.32 m width (a fixed standard), so do not build narrow or wide rims; width is set with the slider in the parts screen. Put the origin at the axle centre, which is the middle of the rim's width. If you start from a cylinder, first rotate it with R Y 9 0 so its axis runs left–right (X)
  3. BlenderPoint the face of the wheel (the design side) towards +X, the side the gauge arrow points to. Build the left-hand wheel only
  4. BlenderDo not model a tyre. One is fitted automatically when drawn: the tyre picked in the parts screen, or KurumaMod's standard tyre if none is picked
  5. BlenderSelect only the wheel (not the gauge) and export it as glTF (.glb). Tick "Selected Objects" and "Apply Modifiers" (the full settings are the same as chapter 5 of the Car guide; Wavefront works too). Animations on a wheel are not played (the mod spins it)
  6. FilePut the exported file and the texture in your pack: assets/mypack/models/entity/my_wheel.glb and assets/mypack/textures/entity/my_wheel.png

The wheel model is done. To make it selectable in the parts screen, go to chapter 2; to fit it to your own car from the start, see "Fit it to my own car" below.

横から見た図 side view 断面(上から見た図) cross-section, from above 地面 ground 半径 radius 回転軸 = X(左右) spin axis = X +X = 表 +X = outer face −X = 内側 −X = inboard 原点は車軸の中心(底ではない) origin at the axle centre, not the bottom 左側用を 1 つだけ作る build the left-hand wheel only
図 12. ホイールに求められるのはこの 3 つ(原点・回転軸・表の向き)だけです
Fig. 12. Only three things are required of a wheel: origin, spin axis, and which way the outer face points.

必要なときだけ

Only when you need it

自分の車に最初から履かせたい

ホイールを部品にして(2 章)、車の諸元の JSON data/mypack/cars/<車>.json の default_parts で指します。換装画面ではこれが「純正」になります:

{
  "values": { ... },
  "default_parts": { "wheel": "mypack:my_wheel" }
}
  • 書かなければ、KurumaMod の TE37 が純正になる
  • ほかの車には履かせたくないなら、部品の data/mypack/car_parts/my_wheel.json に "cars": ["mypack:<車>"] を書く
  • 車の見た目の JSON(vehicles/)にはホイールのモデルを書かない。ホイールの項目は何も書かない(タイヤの位置は諸元のトレッド・ホイールベースが決める)
Fit it to my own car

Make the wheel a part (chapter 2) and point to it from default_parts in the car's spec JSON data/mypack/cars/<car>.json. It becomes "Stock" in the parts screen:

{
  "values": { ... },
  "default_parts": { "wheel": "mypack:my_wheel" }
}
  • Left out, KurumaMod's TE37 is the stock wheel
  • To keep it off other cars, add "cars": ["mypack:<car>"] to the part file data/mypack/car_parts/my_wheel.json
  • Do not name the wheel model in the car's looks JSON (vehicles/). No wheel entries go there at all (the spec's track and wheelbase decide where the wheels sit)
ゲージと違う大きさで作りたい

大きさは自由です。作った半径(m)を、ホイールの見た目のファイル assets/mypack/car_parts/my_wheel.json(2 章)の wheel の中に "designRadius" で書きます。ゲームは、この値と車のタイヤ半径の比で拡大して描きます。書かなければゲージの 0.45 とみなします。

"wheel": { "model": "mypack:models/entity/my_wheel.glb",
           "texture": "mypack:textures/entity/my_wheel.png",
           "designRadius": 0.30 }

ゲーム内の調整画面でタイヤ半径を変えると、見た目もそのまま追従します。タイヤは接地したまま、車体だけが上がります(リフトアップ)。

ゲージごと大きさを変えたいときは、blender_wheel_gauge.py(タイヤは blender_tire_gauge.py)の先頭の SCALE を変えて実行します。ゲージがその倍率で置き直されます。ホイールのゲージは、書くべき designRadius もスクリプトの出力に出します。

Build it at a different size from the gauge

Any size is fine. Write the radius you built at (in m) as "designRadius" inside wheel in the wheel's looks file assets/mypack/car_parts/my_wheel.json (chapter 2). The game scales the mesh by the ratio between this value and the car's tyre radius. Left out, it is taken as the gauge's 0.45.

"wheel": { "model": "mypack:models/entity/my_wheel.glb",
           "texture": "mypack:textures/entity/my_wheel.png",
           "designRadius": 0.30 }

Change the tyre radius in the in-game tuning screen and the model follows: the tyres stay on the ground and the body rises (a lift-up).

To scale the whole gauge, change SCALE at the top of blender_wheel_gauge.py (or blender_tire_gauge.py for tyres) and run it. The gauge is placed at that scale; the wheel gauge also prints the designRadius to write.

ホイールごと KurumaMod のものを使いたい

何も書かなければ、KurumaMod の TE37(部品の id は kurumamod:te37)が純正になります。

Use KurumaMod's whole wheel

Write nothing: KurumaMod's TE37 (part id kurumamod:te37) is the stock wheel.

仕組みを知りたい(なぜリムだけでよいのか)

リムもタイヤも、ビードからビードまでの幅を同じ 0.32m(ゲージの円柱)で作る約束になっています。だから、どのリムにどのタイヤを嵌めても幅が合います。

  • タイヤは、内径がリムのいちばん外側の半径の 95% へ、外径が車のタイヤ半径へ来るように伸び縮みして描かれる。リムを大きく作るほどサイドウォールが薄くなる(インチアップ)
  • 太さのスライダーは、リムとタイヤに一緒に効く。だからメッシュで太さを作り分ける必要がない
  • シェーダーパックの影は、タイヤだけが落とす。地面にスポークの模様が出ない

以前は、ホイールにタイヤも一緒に作り、名前を Tire にする作り方でした。この作り方のホイールも読めますが、tire で始まる名前のオブジェクトは描かれず、選んだタイヤ(選んでいなければ KurumaMod 標準のタイヤ)が嵌まります。付属のタイヤの内径は、タイヤを嵌める位置としてだけ使われます。

How it works (why the rim alone is enough)

Rims and tyres are both built to the same 0.32 m bead-to-bead width (the gauge cylinder). So any tyre fits any rim.

  • The tyre is stretched so its inner edge sits at 95% of the rim's outermost radius and its outer edge at the car's tyre radius. A bigger rim gives thinner sidewalls (plus-sizing)
  • The Width slider acts on the rim and tyre together, so there is no need to build different widths into the mesh
  • With shader packs, only the tyre casts a shadow, so no spoke pattern appears on the ground

Wheels used to be built with their own tyre as a separate object named Tire. Such wheels still load, but objects whose name starts with tire are not drawn; the picked tyre (or KurumaMod's standard tyre) is fitted instead. The built-in tyre's inner edge is only used to place the fitted tyre.

ゲームの中で、キャンバー・太さ・半径を合わせたい

Ctrl+G の「ホイールの JSON」で、乗ったまま動かせます。手順は2 章の「ゲームの中で調整する」にあります。タイヤの位置(幅・前後)は諸元のトレッド・ホイールベースで決まるので、調整画面(G)で動かします。

Set camber, width and radii in game

The "Wheel JSON" tab of Ctrl+G moves them while you sit in the car. The steps are in "Adjust it in game" in chapter 2. Wheel position (width, front to back) comes from the spec's track and wheelbase, so move those in the tuning screen (G).

うまくいかないとき
  • タイヤが大きすぎる・小さすぎる … ゲージと違う大きさで作ったのに、wheel の中に designRadius を書いていない(または作った半径になっていない)
  • 回るとぶれる・地面に埋まる・浮く … 原点が車軸の中心にない。タイヤの底に置いていないか見る
  • タイヤが横倒しで転がる … 回転軸が左右(X)を向いていない。R Y 9 0 で回す
  • 右側のタイヤの表が内側を向く … 表が +X を向いていない。左側用として作り直す(右側は MOD が鏡像にして描く)
  • 1 か所にタイヤが 2 本描かれる … 左右 2 つ作っている。左側用の 1 つだけにする
  • タイヤがリムに食い込む・リムとの間に隙間がある … リムの幅がゲージの円柱と合っていない。フランジを円柱の両端の面に合わせる
  • タイヤが二重に描かれる … リムと一緒にタイヤも作っている。タイヤを消してリムだけにする
  • 全体が白い … マテリアルが無い(Wavefront なら .mtl を置いていない)。形が正しければ問題ない(色の付け方は車の 4 章)
When it doesn't work
  • Wheels too big or too small — you built at a size other than the gauge but did not write designRadius inside wheel (or it is not the radius you built at)
  • Wobbles as it spins, sinks into the ground, or floats — the origin is not at the axle centre. Check it is not at the bottom of the tyre
  • Rolls on its side — the spin axis does not run left–right (X). Rotate with R Y 9 0
  • The right-hand wheels face inward — the face is not towards +X. Rebuild it as the left-hand wheel (the mod mirrors it for the right)
  • Two tyres drawn in one place — you modelled both sides. Keep only the left-hand one
  • The tyre cuts into the rim, or there is a gap between them — the rim's width does not match the gauge cylinder. Put the flanges on the cylinder's end faces
  • Two tyres drawn on one wheel — you modelled a tyre along with the rim. Delete it and keep only the rim
  • Everything is white — no material (or, with Wavefront, no .mtl). Harmless if the shape is right (colouring is in chapter 4 of the Car guide)

2ホイールを部品にする

2Make a wheel a part

作ったホイールを、ゲームの換装画面で選べるようにします。見た目だけの部品で、走りは変わりません。

Make your wheel selectable in the in-game parts screen. It changes the looks only; driving stays the same.

最小のホイール部品を作る

Make a minimal wheel part

  1. Blenderホイールのモデルを作って置く。作り方は 1 章。ここでは assets/mypack/models/entity/my_wheel.glb と assets/mypack/textures/entity/my_wheel.png に置いたとする
  2. ファイル部品のファイルを置く。data/mypack/car_parts/my_wheel.json(ファイル名が部品名):
    { "slot": "wheel" }
  3. ファイル見た目のファイルを置く。assets/mypack/car_parts/my_wheel.json(部品と同じファイル名)。ゲージどおりに作ったなら、大きさは書かなくてよい:
    {
      "wheel": {
        "model": "mypack:models/entity/my_wheel.glb",
        "texture": "mypack:textures/entity/my_wheel.png"
      }
    }
  4. lang表示名を lang に書く。"part.mypack.my_wheel": "マイホイール"

これで、ゲームの G →「パーツ」→「ホイール」のタブに並びます。

  1. BlenderBuild the wheel model and put it in your pack. See chapter 1. Here it is at assets/mypack/models/entity/my_wheel.glb and assets/mypack/textures/entity/my_wheel.png
  2. FileAdd the part file data/mypack/car_parts/my_wheel.json (the file name is the part name):
    { "slot": "wheel" }
  3. FileAdd the looks file assets/mypack/car_parts/my_wheel.json (same file name as the part). If you built to the gauge, there is no size to write:
    {
      "wheel": {
        "model": "mypack:models/entity/my_wheel.glb",
        "texture": "mypack:textures/entity/my_wheel.png"
      }
    }
  4. langAdd the display name to lang. "part.mypack.my_wheel": "My Wheels"

It now appears under G → "Parts" → the "Wheels" tab.

できあがりの形:

What you end up with:

mypack.jar
├── assets/                       ← 見た目
│   └── mypack/
│       ├── car_parts/
│       │   └── my_wheel.json     ← 見た目のファイル("wheel" の中)
│       ├── lang/
│       │   ├── en_us.json        ← "part.mypack.my_wheel"
│       │   └── ja_jp.json
│       ├── models/
│       │   └── entity/
│       │       └── my_wheel.glb
│       └── textures/
│           └── entity/
│               └── my_wheel.png
└── data/                         ← 素性
    └── mypack/
        ├── car_parts/
        │   └── my_wheel.json     ← 部品のファイル("slot": "wheel")
        └── cars/
            └── <車>.json         ← 純正にするなら default_parts.wheel(任意)
mypack.jar
├── assets/                       <- looks
│   └── mypack/
│       ├── car_parts/
│       │   └── my_wheel.json     <- looks file (inside "wheel")
│       ├── lang/
│       │   ├── en_us.json        <- "part.mypack.my_wheel"
│       │   └── ja_jp.json
│       ├── models/
│       │   └── entity/
│       │       └── my_wheel.glb
│       └── textures/
│           └── entity/
│               └── my_wheel.png
└── data/                         <- what it is
    └── mypack/
        ├── car_parts/
        │   └── my_wheel.json     <- part file ("slot": "wheel")
        └── cars/
            └── <car>.json         <- default_parts.wheel to make it stock (optional)

assets/ と data/ の car_parts/ に、同じファイル名で 1 つずつ置きます。

One file each in the car_parts/ folders of assets/ and data/, with the same file name.

見本パックの sample_wheel が、この形そのものです。

The example pack's sample_wheel is exactly this setup.

Blender: the TE37 rim inside the wheel gauge, seen from the top, front, right and in perspective
図 19. 同梱の TE37 をゲージ(blender_wheel_gauge.py)に重ねたところ。リムが円柱の中に収まり、両端のフランジが円柱の端の面に来ています。原点は車軸の中心(リムの幅の真ん中)、表は +X。センターキャップ(WeelCap)は別オブジェクトでかまいません。タイヤは作らず、ゲームが嵌めます
Fig. 19. The bundled TE37 laid over the gauge (blender_wheel_gauge.py). The rim sits inside the cylinder, with its flanges on the cylinder's end faces. The origin is the axle centre (the middle of the rim's width) and the face points to +X. The centre cap (WeelCap) may be a separate object. No tyre is modelled; the game fits one.

ゲームの中で調整する

Adjust it in game

太さの最初の値や、タイヤの嵌まり具合は、ゲームの中で見ながら決められます。JSON を書き換えて読み直すのを繰り返す必要はありません。

The starting width, and how the tyre sits on the rim, can be set while watching in game. No need to keep editing the JSON and reloading.

ゲージどおりに作ったなら、基本的に変更は要りません

この調整は、ゲージ(blender_wheel_gauge.py)どおりの大きさで作られなかったメッシュのためのものです。ゲージに収めて作ったホイールなら、スケールもビード半径もそのままで標準のタイヤがぴったり嵌まります。太さは好みの最初の値を決めたいときだけ動かします。

Built to the gauge? You normally change nothing here

This is for meshes that were not built at the gauge's size (blender_wheel_gauge.py). A wheel kept inside the gauge takes the standard tyre exactly with the scale and bead radius left as they are. Move width only if you want a different starting value.

  1. ゲーム車を出して乗り、自分のホイールを履かせる。G →「パーツ」→「ホイール」で選ぶ(純正にしてあれば、そのままでよい)
  2. ゲームCtrl+G を押し、上の「ホイールの JSON」のタブを開く。タブに貼り先のファイル名(my_wheel.json)が出る
  3. ゲームスライダーか −/+ で動かし、その場で見る。Shift を押しながらだと 10 刻み。三人称(F5)ならドラッグで車のまわりを回して見られる
    • 太さ … 換装画面のスライダーの最初の値になる
    • キャンバー … 描くときに足す角度。メッシュが傾いて作られているときの補正で、ふつうは 0 のまま。走りのキャンバーは諸元(front_camber・rear_camber)で、タイヤはそれにこの角度を足して描かれる
    • スケール … ホイールの大きさ(designRadius)。ゲージどおりに作ったなら 0.45 のまま
    • ビード半径 … タイヤの内側を置く半径。タイヤがリムに食い込む・浮くときだけ動かす。書いていなければ「測定」と出る
  4. ゲーム「JSON をコピー」を押す。モデルとテクスチャも入った "wheel" のブロックがコピーされる
  5. ファイルassets/mypack/car_parts/my_wheel.json の "wheel" のブロックと置き換えて貼る。F3+T で読み直して確かめる
  1. GameSpawn a car, get in and fit your wheel. Pick it under G → "Parts" → "Wheels" (skip this if it is already the stock wheel)
  2. GamePress Ctrl+G and open the "Wheel JSON" tab at the top. The tab shows the file to paste into (my_wheel.json)
  3. GameMove the sliders or −/+ and watch the result. Hold Shift for steps of 10. In third person (F5) you can drag to look around the car
    • Width — becomes the starting value of the parts-screen slider
    • Camber — an angle added when drawing, to correct a mesh built tilted. Normally leave it at 0. The driving camber is in the spec (front_camber, rear_camber), and the wheel is drawn at that angle plus this one
    • Scale — the wheel's size (designRadius). Leave it at 0.45 if you built to the gauge
    • Bead radius — where the tyre's inner edge sits. Move it only if the tyre cuts into or floats off the rim. Shows "measured" when not written
  4. GamePress "Copy JSON". It copies the "wheel" block, model and texture included
  5. FileReplace the "wheel" block in assets/mypack/car_parts/my_wheel.json with it. Press F3+T to reload and check
The Wheel JSON tab of the in-game look adjustment screen, with camber, width, scale and bead radius sliders over the car
図 20. Ctrl+G の「ホイールの JSON」のタブ。上がキャンバー・太さ・スケール・ビード半径、その下がコピーされる JSON、いちばん下に貼り先のファイル名が出ます。ゲームは止まらないので、車を見ながら動かせます
Fig. 20. The "Wheel JSON" tab of Ctrl+G. Camber, width, scale and bead radius at the top, the JSON that gets copied below them, and the file to paste into at the bottom. The game keeps running, so you can watch the car as you move them.
  • 動かした値は自分の画面だけ・ゲームを閉じるまで。ほかの人や保存データには影響しない
  • 各行の「R」で JSON の値に戻る(JSON に書いていない項目は、書いていない状態に戻る)。下の「全部戻す」で、このタブの全部を戻す
  • 車の見た目の JSON にホイールを直接書いた以前の車では、スライダーは動かせない(画面に理由が出る)
  • 灰色の行は、換装画面で変えた値や部品の指定が勝っていて、動かしても見えない。換装画面で「R」を押して戻すと動くようになる
  • Changes apply on your screen only, until you close the game. Other players and saves are not affected
  • "R" on a row goes back to the JSON's value (an entry the JSON does not write goes back to unwritten). "Reset all" at the bottom resets the whole tab
  • On older cars whose looks JSON writes the wheel directly, the sliders are disabled (the screen says why)
  • Grey rows are overridden by values changed in the parts screen or by the part itself, so moving them shows nothing. Press "R" in the parts screen to clear the override

必要なときだけ

Only when you need it

オフセット・太さの最初の値を決めたい

見た目のファイル assets/mypack/car_parts/my_wheel.json の wheel に書きます。換装画面のスライダーの最初の位置になり、プレイヤーが「R」を押すとここへ戻ります。

{
  "wheel": {
    "model": "mypack:models/entity/my_wheel.glb",
    "texture": "mypack:textures/entity/my_wheel.png",
    "offset": [0.02, 0.0, 0.0],
    "scale": [1.3, 1.0, 1.0]
  }
}
  • offset … X が外へ出す量 [m](−0.05〜0.10。換装画面のスライダーの最初の値)。Y(上下)・Z(前後)も平行移動として効くので、ふつうは 0 にする
  • scale … X が太さの倍率(0.5〜2.5)。Y・Z は 1.0 のままにする(変えると直径が変わり、接地が崩れる)。数字 1 つで書くと 3 軸とも同じ値になるので、太さだけなら [1.2, 1, 1] のように書く
  • camber … 描くときに足すキャンバー角 [度]。負で上が内側(−30〜10)。メッシュの補正用で、走りには効かない。プレイヤーは変えられない。キャンバーを付けたいなら諸元の front_camber・rear_camber に書く
  • 範囲の外に書いた値は、端に丸めて読む
  • 書かなかった項目は、その車のホイールの値になる
Set the starting offset and width

Write them under wheel in the looks file assets/mypack/car_parts/my_wheel.json. They become where the parts-screen sliders start, and "R" returns to them.

{
  "wheel": {
    "model": "mypack:models/entity/my_wheel.glb",
    "texture": "mypack:textures/entity/my_wheel.png",
    "offset": [0.02, 0.0, 0.0],
    "scale": [1.3, 1.0, 1.0]
  }
}
  • offset — X is how far out to push the wheel [m] (−0.05 to 0.10; the starting value of the parts-screen slider). Y (up) and Z (along the car) also shift it, so normally leave them at 0
  • scale — X is the width multiplier (0.5 to 2.5). Leave Y and Z at 1.0 (changing them alters the diameter and breaks ground contact). A single number sets all three axes, so for width only write e.g. [1.2, 1, 1]
  • camber — camber added when drawing, in degrees. Negative leans the top inward (−30 to 10). It corrects the mesh and does not change the driving; players cannot change it. To give the car camber, write front_camber and rear_camber in the spec
  • Values outside the range are clamped to the nearest end
  • Anything you leave out takes the car's own wheel value
メッシュを作らず、太さだけ変えた部品にしたい

model と texture を書かなければ、その車のホイールのまま、書いた値だけが変わります。たとえば assets/mypack/car_parts/my_wide.json:

{
  "wheel": {
    "scale": [1.6, 1.0, 1.0]
  }
}

ただし、スライダーで作れる状態に名前を付けるだけになるので、ふつうはメッシュを持つホイールを作ります。

A part with no mesh, only a different width

Leave out model and texture; the car's own wheel is kept and only the values you write change. For example, assets/mypack/car_parts/my_wide.json:

{
  "wheel": {
    "scale": [1.6, 1.0, 1.0]
  }
}

This only names something players can already make with the sliders, so usually you would build a wheel with its own mesh.

決まった車種にだけ付けたい

data/mypack/car_parts/my_wheel.json の cars に車種の id を並べます。その車種の換装画面にだけ並びます。別のパックの車種を書いてもかまいません(kurumamod:car は KurumaMod の既定の車)。

{
  "slot": "wheel",
  "cars": ["mypack:kei", "mypack:kei_van"]
}
Only fit certain cars

List car ids in cars in data/mypack/car_parts/my_wheel.json. The part then appears only in those cars' parts screen. Cars from other packs are fine (kurumamod:car is KurumaMod's default car).

{
  "slot": "wheel",
  "cars": ["mypack:kei", "mypack:kei_van"]
}
換装画面に並ぶ順を変えたい

data/mypack/car_parts/my_wheel.json に order を書きます。小さいほど左に並びます(書かなければ 100)。

{
  "slot": "wheel",
  "order": 10
}
Change the order in the parts screen

Add order to data/mypack/car_parts/my_wheel.json. Smaller numbers sit further left (100 if left out).

{
  "slot": "wheel",
  "order": 10
}
前後で違うホイールにしたい

いまはできません。4 輪とも同じ部品を履きます。

Different wheels front and rear

Not possible yet. All four wheels wear the same part.

ホイールのパックを外したら、履いていた車はどうなる?

その車の初期装備(default_parts)に戻ります。初期装備が無ければ純正(ホイールは TE37、タイヤはノーマル)です。タイヤなら性能も戻ります。付けていた部品の id は残っているので、パックを入れ直せば元の部品に戻ります。

What happens to cars on these wheels if the pack is removed?

They go back to the car's default part (default_parts), or to stock if there is none (the TE37 wheel, the normal tyre). For tyres the grip goes back too. The fitted part's id is kept, so putting the pack back restores it.

うまくいかないとき
  • 換装画面に並ばない … data/ 側のファイルが無いか、slot が書かれていない(ログに出る)。cars で絞っているなら、乗っている車種が入っているか見る
  • 並ぶが、見た目が変わらない … assets/ 側のファイル名が data/ 側と違う。または "wheel": { ... } の中のキーの綴りが違う
  • 名前が my_wheel のまま出る … lang のキーが part.<パック>.<部品名> になっていない
  • 大きすぎる・小さすぎる … ゲージと違う大きさで作ったのに、designRadius を書いていない(または作った半径になっていない)
  • 付けても走りが変わらない … ホイールは見た目だけの部品。グリップを変えたいならタイヤ(タイヤの 2 章)
When it doesn't work
  • Not in the parts screen — the data/ file is missing, or has no slot (the log says so). If you use cars, check the car you are in is listed
  • Listed, but the looks do not change — the assets/ file name differs from the data/ one, or a key inside "wheel": { ... } is misspelt
  • The name shows as my_wheel — the lang key is not part.<pack>.<part>
  • Too big or too small — you built at a size other than the gauge but did not write designRadius (or it is not the radius you built at)
  • Driving does not change — wheels are looks only. To change grip, make a tyre (chapter 2 of the Tyre guide)

3チェックリスト

3Checklist

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

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

書き出す前(Blender)

Before exporting (in Blender)

  • ホイールは別ファイル・左側用 1 つ・原点は車軸(リムの幅の真ん中)・表は +X
  • リムだけを作り、ゲージの円柱に収めた(タイヤは作らない)
  • Wheel: separate file, left side only, origin at the axle (middle of the rim's width), face towards +X
  • Rim only, kept inside the gauge cylinder (no tyre modelled)

付録 A. ホイールの全項目

Appendix A. Every wheel key

_ で始まるキーは読み飛ばされます。JSON にはコメントが書けないので、"_comment": "…" のようにメモを残せます。

Keys starting with _ are skipped. JSON has no comments, so use "_comment": "…" to leave notes.

素性 — data/<pack>/car_parts/<part>.json

キー型既定値意味
slot文字列必須"wheel"
order整数100換装画面に並ぶ順
cars車種 id の配列(すべての車種)付けられる車種。読める値が 1 つも無ければ、その部品は捨てられる

Definition — data/<pack>/car_parts/<part>.json

KeyTypeDefaultMeaning
slotstringrequired"wheel"
orderinteger100Position in the parts screen
carsarray of car ids(every car)Which cars can fit it. If none of the values can be read, the part is dropped

見た目 — assets/<pack>/car_parts/<part>.json("wheel": { ... } の中。入れ子を省いて、いちばん外側に書いてもよい)

キー型既定値意味
modelidその車の純正ホイールのものホイールのモデル(.glb。Wavefront の .obj も可)
textureidその車の純正ホイールのものホイールのテクスチャ
designRadius数字0.45(ゲージ)。model を書かない部品はその車の純正ホイールのものメッシュが何 m の半径で作られているか。ゲージどおりなら書かない
offset[x,y,z]その車の純正ホイールのもの(無ければ 0)平行移動 [m]。X は外向き。X はオフセットのスライダーの既定値(−0.05 〜 0.10。外れたら端へ丸める)
scale数字 1 つ or [x,y,z]その車の純正ホイールのもの(無ければ 1)X は太さ(スライダーの既定値。0.5 〜 2.5 に丸める)。Y・Z は 1 のまま。数字 1 つで書くと 3 軸とも同じ値になり直径も変わるので、太さだけなら [x, 1, 1]
camber数字その車の純正ホイールのもの(無ければ 0)描くときに足すキャンバー角 [度](−30 〜 10 に丸める)。メッシュの補正用で、走りには効かない。走りのキャンバーは諸元の front_camber・rear_camber
rimRadius数字(測る)タイヤの内径(ビード)を置く半径 [m](メッシュの寸法)。タイヤの 1 章

Looks — assets/<pack>/car_parts/<part>.json (inside "wheel": { ... }, or at the top level without the nesting)

KeyTypeDefaultMeaning
modelidthe car's stock wheel'sWheel model (.glb; a Wavefront .obj works too)
textureidthe car's stock wheel'sWheel texture
designRadiusnumber0.45 (the gauge). A part without model takes the car's stock wheel'sThe radius the mesh was built at, in m. Leave it out if you followed the gauge
offset[x,y,z]the car's stock wheel's (0 if none)Translation [m]. X points outward; it is the offset slider's default (−0.05 to 0.10, clamped)
scaleone number or [x,y,z]the car's stock wheel's (1 if none)X is width (the slider's default, clamped to 0.5–2.5). Keep Y/Z at 1. A single number sets all three axes and changes the diameter, so for width only write [x, 1, 1]
cambernumberthe car's stock wheel's (0 if none)Camber added when drawing [degrees] (clamped to −30 to 10). Corrects the mesh and does not change the driving. The driving camber is the spec's front_camber and rear_camber
rimRadiusnumber(measured)Radius where the tyre's bead sits [m], in mesh units. Tyre guide, chapter 1

車の側 — data/<pack>/cars/<car>.json のいちばん外側

キー型意味
default_parts.wheel部品 idその車の純正のホイール。書かなければ kurumamod:te37

On the car — top level of data/<pack>/cars/<car>.json

KeyTypeMeaning
default_parts.wheelpart idThe car's stock wheel. Left out, kurumamod:te37

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.