roamwright 0.61.31 → 0.61.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "roamwright",
|
|
3
|
-
"version": "0.61.
|
|
3
|
+
"version": "0.61.32",
|
|
4
4
|
"description": "A procedural worldbuilding engine built on top of Three.js. Generate landscapes with rivers and changing weather, animate crowds, and explore on foot or in flight.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"threejs",
|
|
@@ -41,7 +41,8 @@ export function createVehicleTrains({ kitNew, kitAt, kitInstanced, propCart, pro
|
|
|
41
41
|
// Vehicles outside the active shadow frustum (`casts = false`) use unshadowed clone meshes to avoid shadow-pass vertex work.
|
|
42
42
|
function makeVehicles(group, n, kind, rng) {
|
|
43
43
|
const { build, wheels } = KINDS[kind],
|
|
44
|
-
|
|
44
|
+
// TRS hands back one shared scratch matrix: each wheel keeps its own copy, or every wheel lands on the last one's place
|
|
45
|
+
wheelOffsets = wheels.map(at => TRS(at[0], at[1], at[2], 1, at[3], at[3]).clone()),
|
|
45
46
|
body = kitNew(),
|
|
46
47
|
wheel = kitNew();
|
|
47
48
|
kitAt(body, 0, 0, 0, 0, false, build, rng);
|