Compare commits
2 Commits
fd20af06ae
...
16850fa764
| Author | SHA1 | Date | |
|---|---|---|---|
| 16850fa764 | |||
| 36e4bb2a10 |
BIN
ArtSource/Blender/SM_Boulders.blend
(Stored with Git LFS)
Normal file
BIN
ArtSource/Blender/SM_Boulders.blend
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
ArtSource/Blender/SM_BulbPlants.blend
(Stored with Git LFS)
Normal file
BIN
ArtSource/Blender/SM_BulbPlants.blend
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
ArtSource/Blender/SM_Crystals.blend
(Stored with Git LFS)
Normal file
BIN
ArtSource/Blender/SM_Crystals.blend
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
ArtSource/Blender/SM_DeckTile.blend
(Stored with Git LFS)
BIN
ArtSource/Blender/SM_DeckTile.blend
(Stored with Git LFS)
Binary file not shown.
BIN
ArtSource/Blender/SM_Shrooms.blend
(Stored with Git LFS)
Normal file
BIN
ArtSource/Blender/SM_Shrooms.blend
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
ArtSource/Blender/SM_SlabStones.blend
(Stored with Git LFS)
Normal file
BIN
ArtSource/Blender/SM_SlabStones.blend
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
ArtSource/Blender/SM_Stump.blend
(Stored with Git LFS)
Normal file
BIN
ArtSource/Blender/SM_Stump.blend
(Stored with Git LFS)
Normal file
Binary file not shown.
151
ArtSource/Blender/scripts/gc_up6_world.py
Normal file
151
ArtSource/Blender/scripts/gc_up6_world.py
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
"""GRASS CUTTER - more for the meadow than trees and the purple-veined spires:
|
||||||
|
SM_Boulders a cluster of round, weathered field stones (no veins), moss on the shady side
|
||||||
|
SM_SlabStones flat lilac slabs tipped up out of the ground, like an old wall gone over
|
||||||
|
SM_Crystals a clump of teal crystals growing out of a pale rock
|
||||||
|
SM_Shrooms giant alien mushrooms: cream stems, coral and teal caps with pale spots
|
||||||
|
SM_Stump a broken stump on its roots with a fallen log beside it
|
||||||
|
SM_BulbPlants fat alien bulb plants with spines and a flower on top
|
||||||
|
|
||||||
|
All stand on z = 0 with their origin at the middle of the foot; Ground places them on the ball and gives them a MeshCollider
|
||||||
|
(except the plants, which are walked through). Front = -Y (Unity +Z).
|
||||||
|
|
||||||
|
blender -b --factory-startup --python ArtSource/Blender/scripts/gc_up6_world.py -- [SM_Name ...]
|
||||||
|
"""
|
||||||
|
import sys, os
|
||||||
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
from gc_up_kit import * # noqa: F401,F403
|
||||||
|
|
||||||
|
STONE, PALE, LILAC, WET = "M_Rock", "M_RockPale", "M_RockLilac", "M_RockWet"
|
||||||
|
MOSS, BARK, WOOD = "M_LeafDark", "M_Bark", "M_Wood"
|
||||||
|
|
||||||
|
|
||||||
|
def view(**kw):
|
||||||
|
return dict(elev=14, azim=-35, bg=(0.62, 0.72, 0.84), **kw)
|
||||||
|
|
||||||
|
|
||||||
|
def finish(P, name, ms=None, ang=35):
|
||||||
|
for o in P:
|
||||||
|
apply_xform(o)
|
||||||
|
o = ffin(P, name, ang=ang, wn=False, ms=ms or {STONE: 0.6, PALE: 0.6, LILAC: 0.6, WET: 0.6})
|
||||||
|
return o
|
||||||
|
|
||||||
|
|
||||||
|
def tilted(o, rx=0.0, ry=0.0, rz=0.0, t=(0, 0, 0)):
|
||||||
|
return xf(o, rx=rx, ry=ry, rz=rz, t=t)
|
||||||
|
|
||||||
|
|
||||||
|
# ======================================================================= stones
|
||||||
|
|
||||||
|
def boulders():
|
||||||
|
rng = random.Random(61)
|
||||||
|
P = []
|
||||||
|
for (x, y, r, sc) in ((0.0, 0.0, 1.25, (1.2, 1.0, 0.8)), (1.7, 0.6, 0.75, (1.1, 1.0, 0.85)), (-1.3, 0.9, 0.6, (1.0, 1.2, 0.8)), (0.6, -1.4, 0.45, (1.2, 0.9, 0.7)), (-0.7, -1.1, 0.3, (1, 1, 0.8))):
|
||||||
|
m = PALE if r > 0.7 else STONE
|
||||||
|
P.append(rock(r, (x, y, r * sc[2] * 0.55), seed=rng.randrange(999), sc=sc, m=m, sub=2, amp=0.13, name="stone"))
|
||||||
|
# moss on the north side and the top
|
||||||
|
if r > 0.5:
|
||||||
|
P.append(rock(r * 0.62, (x - r * 0.15, y + r * 0.45, r * sc[2] * 0.95), seed=rng.randrange(999), sc=(1.3, 1.0, 0.35), m=MOSS, sub=1, amp=0.18, name="moss"))
|
||||||
|
return P
|
||||||
|
|
||||||
|
|
||||||
|
def slab_stones():
|
||||||
|
rng = random.Random(62)
|
||||||
|
P = []
|
||||||
|
for k, (x, y, w, h, lean, yaw) in enumerate(((0.0, 0.0, 1.5, 2.2, 0.18, 0.1), (1.4, 0.5, 1.1, 1.5, -0.25, 0.4), (-1.3, 0.3, 1.0, 1.2, 0.32, -0.3), (0.5, -1.2, 0.9, 0.5, 1.2, 0.8))):
|
||||||
|
o = rock(0.5, (0, 0, 0), seed=rng.randrange(999), sc=(w, 0.32, h), m=LILAC if k % 2 == 0 else WET, sub=2, amp=0.08, name="slab")
|
||||||
|
P.append(tilted(o, rx=lean, rz=yaw, t=(x, y, h * 0.36)))
|
||||||
|
for k in range(5):
|
||||||
|
a = rng.uniform(0, 2 * PI)
|
||||||
|
P.append(rock(rng.uniform(0.12, 0.22), (math.cos(a) * rng.uniform(1.2, 2.0), math.sin(a) * rng.uniform(1.0, 1.8), 0.05), seed=k + 20, sc=(1.2, 1, 0.6), m=STONE, sub=1, amp=0.2, name="pebble"))
|
||||||
|
return P
|
||||||
|
|
||||||
|
|
||||||
|
def crystals():
|
||||||
|
rng = random.Random(63)
|
||||||
|
P = [rock(0.9, (0, 0, 0.25), seed=7, sc=(1.4, 1.2, 0.6), m=PALE, sub=2, amp=0.15, name="bed")]
|
||||||
|
spec = [(0.0, 0.0, 0.3, 2.6, 0.0, 0.0), (0.45, 0.2, 0.22, 1.8, 0.35, 0.5), (-0.4, 0.25, 0.2, 1.6, -0.4, 0.2), (0.15, -0.45, 0.17, 1.2, 0.15, -0.6),
|
||||||
|
(-0.25, -0.35, 0.14, 0.9, -0.5, -0.3), (0.65, -0.3, 0.12, 0.8, 0.6, -0.2), (-0.7, -0.05, 0.11, 0.7, -0.7, 0.1)]
|
||||||
|
for k, (x, y, r, L, tx, ty) in enumerate(spec):
|
||||||
|
m = "M_CrystalDeep" if k % 3 == 0 else "M_GlassTeal" if k % 3 == 1 else "M_PaintTeal"
|
||||||
|
shaft = cz("crystal", r, 0.0, L * 0.78, 0, 0, m, v=6)
|
||||||
|
tip = cz("tip", r, L * 0.78, L, 0, 0, m, v=6, r2=0.0)
|
||||||
|
for o in (shaft, tip):
|
||||||
|
P.append(tilted(o, rx=ty * 0.6, ry=tx * 0.6, rz=rng.uniform(0, 1), t=(x, y, 0.25)))
|
||||||
|
return P
|
||||||
|
|
||||||
|
|
||||||
|
# ======================================================================= plants
|
||||||
|
|
||||||
|
def shrooms():
|
||||||
|
rng = random.Random(64)
|
||||||
|
P = []
|
||||||
|
for k, (x, y, h, cr, lean) in enumerate(((0.0, 0.0, 2.6, 1.15, 0.05), (1.3, 0.5, 1.7, 0.8, -0.18), (-1.0, 0.7, 1.3, 0.62, 0.2), (0.6, -1.0, 0.8, 0.42, 0.12), (-0.5, -0.8, 0.5, 0.3, -0.2))):
|
||||||
|
cap = "M_Coral" if k % 2 == 0 else "M_PaintTeal"
|
||||||
|
parts = [cz("stem", h * 0.085, 0.0, h, 0, 0, "M_PaintCream", v=10, r2=h * 0.06),
|
||||||
|
cz("skirt", h * 0.14, h * 0.62, h * 0.66, 0, 0, "M_PaintCream", v=10, r2=h * 0.09),
|
||||||
|
sphere("cap", cr, (0, 0, h), seg=14, rings=7, m=cap, scale=(1, 1, 0.5)),
|
||||||
|
cz("gill", cr * 0.92, h - 0.02, h + 0.02, 0, 0, "M_PaintCream", v=14)]
|
||||||
|
for s in range(5 if cr > 0.5 else 3):
|
||||||
|
a = rng.uniform(0, 2 * PI)
|
||||||
|
rr = rng.uniform(0.3, 0.75) * cr
|
||||||
|
parts.append(sphere("spot", cr * 0.12, (math.cos(a) * rr, math.sin(a) * rr, h + cr * 0.5 * math.sqrt(max(0.05, 1 - (rr / cr) ** 2))), seg=6, rings=3, m="M_PaintWhite", scale=(1, 1, 0.45)))
|
||||||
|
for o in parts:
|
||||||
|
P.append(tilted(o, rx=lean, ry=lean * 0.5, t=(x, y, 0)))
|
||||||
|
return P
|
||||||
|
|
||||||
|
|
||||||
|
def stump():
|
||||||
|
rng = random.Random(65)
|
||||||
|
P = [cz("stump", 0.55, 0.0, 0.95, 0, 0, BARK, v=12, r2=0.48),
|
||||||
|
cz("top", 0.49, 0.95, 0.99, 0, 0, WOOD, v=12)]
|
||||||
|
# a jagged break: a few splinters standing up from the top
|
||||||
|
for k in range(6):
|
||||||
|
a = k / 6 * 2 * PI + rng.uniform(-0.2, 0.2)
|
||||||
|
P.append(cyl_between("splinter", (math.cos(a) * 0.38, math.sin(a) * 0.38, 0.95), (math.cos(a) * 0.3, math.sin(a) * 0.3, 1.1 + rng.uniform(0, 0.35)), 0.09, WOOD, v=4, r2=0.01))
|
||||||
|
for k in range(5):
|
||||||
|
a = k / 5 * 2 * PI + 0.3
|
||||||
|
P.append(cyl_between("root", (math.cos(a) * 0.35, math.sin(a) * 0.35, 0.35), (math.cos(a) * 1.05, math.sin(a) * 1.05, -0.05), 0.16, BARK, v=6, r2=0.05))
|
||||||
|
# the fallen top, lying beside it
|
||||||
|
P.append(cyl_between("log", (0.8, -0.7, 0.32), (3.2, 0.4, 0.3), 0.36, BARK, v=10, r2=0.3))
|
||||||
|
P.append(cyl_between("end", (0.78, -0.71, 0.32), (0.81, -0.69, 0.32), 0.35, WOOD, v=10))
|
||||||
|
P.append(cyl_between("branch", (2.2, -0.05, 0.45), (2.6, -0.9, 1.1), 0.08, BARK, v=5, r2=0.03))
|
||||||
|
P.append(rock(0.45, (2.0, 0.15, 0.62), seed=3, sc=(1.4, 1.0, 0.35), m=MOSS, sub=1, amp=0.2, name="moss"))
|
||||||
|
return P
|
||||||
|
|
||||||
|
|
||||||
|
def bulb_plants():
|
||||||
|
rng = random.Random(66)
|
||||||
|
P = []
|
||||||
|
for k, (x, y, s) in enumerate(((0.0, 0.0, 1.0), (0.9, 0.4, 0.7), (-0.75, 0.5, 0.6), (0.3, -0.8, 0.5))):
|
||||||
|
body = "M_Plant" if k % 2 == 0 else "M_Leaves"
|
||||||
|
P.append(sphere("bulb", 0.55 * s, (x, y, 0.5 * s), seg=12, rings=8, m=body, scale=(1, 1, 1.15)))
|
||||||
|
P.append(sphere("neck", 0.3 * s, (x, y, 1.1 * s), seg=10, rings=6, m=body, scale=(1, 1, 1.2)))
|
||||||
|
# ribs of spines
|
||||||
|
for j in range(8):
|
||||||
|
a = j / 8 * 2 * PI
|
||||||
|
for z in (0.35, 0.65):
|
||||||
|
p = Vector((x + math.cos(a) * 0.55 * s * 0.95, y + math.sin(a) * 0.55 * s * 0.95, z * s + 0.1 * s))
|
||||||
|
d = Vector((math.cos(a), math.sin(a), 0.4)).normalized()
|
||||||
|
P.append(cyl_between("spine", p, p + d * 0.16 * s, 0.02 * s, "M_PaintCream", v=3, r2=0.0))
|
||||||
|
# a flower on top
|
||||||
|
top = Vector((x, y, 1.45 * s))
|
||||||
|
for j in range(6):
|
||||||
|
a = j / 6 * 2 * PI + rng.uniform(0, 0.3)
|
||||||
|
P.append(sphere("petal", 0.14 * s, (top.x + math.cos(a) * 0.13 * s, top.y + math.sin(a) * 0.13 * s, top.z), seg=6, rings=4, m="M_PaintRed" if k % 2 else "M_PaintOrange", scale=(1.3, 0.7, 0.3)))
|
||||||
|
P.append(sphere("heart", 0.08 * s, (top.x, top.y, top.z + 0.03 * s), seg=6, rings=4, m="M_PaintYellow"))
|
||||||
|
return P
|
||||||
|
|
||||||
|
|
||||||
|
def builder(fn, name, ang=35):
|
||||||
|
def build():
|
||||||
|
finish(fn(), name, ang=ang)
|
||||||
|
return view(man=(2.5, -2.0, 0.0), views=[("_close", dict(elev=10, azim=-25, dist_mul=0.8))])
|
||||||
|
return build
|
||||||
|
|
||||||
|
|
||||||
|
BUILDERS = {"SM_Boulders": builder(boulders, "SM_Boulders"), "SM_SlabStones": builder(slab_stones, "SM_SlabStones", 30), "SM_Crystals": builder(crystals, "SM_Crystals", 20),
|
||||||
|
"SM_Shrooms": builder(shrooms, "SM_Shrooms"), "SM_Stump": builder(stump, "SM_Stump"), "SM_BulbPlants": builder(bulb_plants, "SM_BulbPlants")}
|
||||||
|
BUDGET = {"SM_Boulders": 2500, "SM_SlabStones": 1500, "SM_Crystals": 800, "SM_Shrooms": 3000, "SM_Stump": 1500, "SM_BulbPlants": 3000}
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
build_main(BUILDERS, BUDGET)
|
||||||
@ -12,18 +12,24 @@ from gc_up_kit import * # noqa: F401,F403
|
|||||||
|
|
||||||
# ======================================================================= deck tile
|
# ======================================================================= deck tile
|
||||||
|
|
||||||
|
# the opening in each fence for its ladder, in the fence's own x
|
||||||
|
GAP0, GAP1 = 1.52, 2.48
|
||||||
|
|
||||||
|
|
||||||
def fence(alt):
|
def fence(alt):
|
||||||
"""Cream post-and-rail along the -Y edge. Corner posts differ in size so two rails sharing a corner never z-fight, and the
|
"""Cream post-and-rail along the -Y edge. Corner posts differ in size so two rails sharing a corner never z-fight, and the
|
||||||
E/W rails sit a little higher to lap the N/S rails. The side panels stay clear for the ladders (x = +-1.5)."""
|
E/W rails sit a little higher to lap the N/S rails. The rails stop either side of the ladder (x = +2.0, which is where
|
||||||
|
DeckManager hangs it on every edge): an opening between two short posts, so the ladder comes up through the fence, not into it."""
|
||||||
yc, yr, dz = -2.86, -2.955, 0.04 if alt else 0.0
|
yc, yr, dz = -2.86, -2.955, 0.04 if alt else 0.0
|
||||||
Q = []
|
Q = []
|
||||||
for x, w in ((-2.86, 0.15), (-0.95, 0.17), (0.95, 0.17), (2.86, 0.19)):
|
for x, w in ((-2.86, 0.15), (-0.95, 0.17), (0.95, 0.17), (GAP0 - 0.06, 0.12), (GAP1 + 0.06, 0.12), (2.86, 0.19)):
|
||||||
pts = [(x - w / 2, 0.02), (x + w / 2, 0.02), (x + w / 2, 0.97), (x, 1.05), (x - w / 2, 0.97)]
|
pts = [(x - w / 2, 0.02), (x + w / 2, 0.02), (x + w / 2, 0.97), (x, 1.05), (x - w / 2, 0.97)]
|
||||||
Q.append(grain(prism("post", pts, "XZ", yc - w / 2, yc + w / 2, CRM, bev=0.012), (0, 0, 1)))
|
Q.append(grain(prism("post", pts, "XZ", yc - w / 2, yc + w / 2, CRM, bev=0.012), (0, 0, 1)))
|
||||||
Q.append(plain(x - w / 2 - 0.022, x + w / 2 + 0.022, yc - w / 2 - 0.022, yc + w / 2 + 0.022, 0.0, 0.06, IRON, "shoe"))
|
Q.append(plain(x - w / 2 - 0.022, x + w / 2 + 0.022, yc - w / 2 - 0.022, yc + w / 2 + 0.022, 0.0, 0.06, IRON, "shoe"))
|
||||||
Q.append(plain(x - w / 2 - 0.006, x + w / 2 + 0.006, yc - w / 2 - 0.006, yc + w / 2 + 0.006, 0.8, 0.83, IRON, "band"))
|
Q.append(plain(x - w / 2 - 0.006, x + w / 2 + 0.006, yc - w / 2 - 0.006, yc + w / 2 + 0.006, 0.8, 0.83, IRON, "band"))
|
||||||
Q.append(beam((-2.99, yr, 0.91 + dz), (2.99, yr, 0.91 + dz), 0.055, 0.13, CRM, bev=0.012, name="rail"))
|
for x0, x1 in ((-2.99, GAP0), (GAP1, 2.99)):
|
||||||
Q.append(beam((-2.99, yr, 0.52 + dz), (2.99, yr, 0.52 + dz), 0.055, 0.12, CRM, bev=0.012, name="rail"))
|
Q.append(beam((x0, yr, 0.91 + dz), (x1, yr, 0.91 + dz), 0.055, 0.13, CRM, bev=0.012, name="rail"))
|
||||||
|
Q.append(beam((x0, yr, 0.52 + dz), (x1, yr, 0.52 + dz), 0.055, 0.12, CRM, bev=0.012, name="rail"))
|
||||||
# X panel in the middle, a kick board under it
|
# X panel in the middle, a kick board under it
|
||||||
for s in (-1, 1):
|
for s in (-1, 1):
|
||||||
Q.append(beam((-0.83 * s, -2.905 - 0.01 * s, 0.14), (0.83 * s, -2.905 - 0.01 * s, 0.84), 0.04, 0.09, CRM, bev=0, name="brace"))
|
Q.append(beam((-0.83 * s, -2.905 - 0.01 * s, 0.14), (0.83 * s, -2.905 - 0.01 * s, 0.84), 0.04, 0.09, CRM, bev=0, name="brace"))
|
||||||
|
|||||||
BIN
ArtSource/Previews/SM_Boulders.png
(Stored with Git LFS)
Normal file
BIN
ArtSource/Previews/SM_Boulders.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
ArtSource/Previews/SM_BulbPlants.png
(Stored with Git LFS)
Normal file
BIN
ArtSource/Previews/SM_BulbPlants.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
ArtSource/Previews/SM_Crystals.png
(Stored with Git LFS)
Normal file
BIN
ArtSource/Previews/SM_Crystals.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
ArtSource/Previews/SM_DeckTile.png
(Stored with Git LFS)
BIN
ArtSource/Previews/SM_DeckTile.png
(Stored with Git LFS)
Binary file not shown.
BIN
ArtSource/Previews/SM_Shrooms.png
(Stored with Git LFS)
Normal file
BIN
ArtSource/Previews/SM_Shrooms.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
ArtSource/Previews/SM_SlabStones.png
(Stored with Git LFS)
Normal file
BIN
ArtSource/Previews/SM_SlabStones.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
ArtSource/Previews/SM_Stump.png
(Stored with Git LFS)
Normal file
BIN
ArtSource/Previews/SM_Stump.png
(Stored with Git LFS)
Normal file
Binary file not shown.
8
Assets/Art/Colliders.meta
Normal file
8
Assets/Art/Colliders.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a09b7c8b722f99147bc024c95b8c753d
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
181
Assets/Art/Colliders/Hull_CrewCabin.asset
Normal file
181
Assets/Art/Colliders/Hull_CrewCabin.asset
Normal file
File diff suppressed because one or more lines are too long
8
Assets/Art/Colliders/Hull_CrewCabin.asset.meta
Normal file
8
Assets/Art/Colliders/Hull_CrewCabin.asset.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 880f777deccc4844a8010e338e12b848
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 4300000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
181
Assets/Art/Colliders/Hull_Garage.asset
Normal file
181
Assets/Art/Colliders/Hull_Garage.asset
Normal file
File diff suppressed because one or more lines are too long
8
Assets/Art/Colliders/Hull_Garage.asset.meta
Normal file
8
Assets/Art/Colliders/Hull_Garage.asset.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ea395dd493855cb4380e20e575fe9c7a
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 4300000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
181
Assets/Art/Colliders/Hull_Roof.asset
Normal file
181
Assets/Art/Colliders/Hull_Roof.asset
Normal file
File diff suppressed because one or more lines are too long
8
Assets/Art/Colliders/Hull_Roof.asset.meta
Normal file
8
Assets/Art/Colliders/Hull_Roof.asset.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 04b15d5097599994ca40e5108c47d405
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 4300000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
181
Assets/Art/Colliders/Hull_Windmill.asset
Normal file
181
Assets/Art/Colliders/Hull_Windmill.asset
Normal file
File diff suppressed because one or more lines are too long
8
Assets/Art/Colliders/Hull_Windmill.asset.meta
Normal file
8
Assets/Art/Colliders/Hull_Windmill.asset.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a1df2dfff5eea284398aa54ea2e5a9d3
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 4300000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Art/Models/SM_Boulders.fbx
(Stored with Git LFS)
Normal file
BIN
Assets/Art/Models/SM_Boulders.fbx
(Stored with Git LFS)
Normal file
Binary file not shown.
116
Assets/Art/Models/SM_Boulders.fbx.meta
Normal file
116
Assets/Art/Models/SM_Boulders.fbx.meta
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 981a214cd68487346b263b0a3ba67135
|
||||||
|
ModelImporter:
|
||||||
|
serializedVersion: 24600
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
materials:
|
||||||
|
materialImportMode: 2
|
||||||
|
materialName: 1
|
||||||
|
materialSearch: 2
|
||||||
|
materialLocation: 1
|
||||||
|
searchTexturesGlobally: 0
|
||||||
|
animations:
|
||||||
|
legacyGenerateAnimations: 4
|
||||||
|
bakeSimulation: 0
|
||||||
|
resampleCurves: 1
|
||||||
|
optimizeGameObjects: 0
|
||||||
|
removeConstantScaleCurves: 0
|
||||||
|
motionNodeName:
|
||||||
|
animationImportErrors:
|
||||||
|
animationImportWarnings:
|
||||||
|
animationRetargetingWarnings:
|
||||||
|
animationDoRetargetingWarnings: 0
|
||||||
|
importAnimatedCustomProperties: 0
|
||||||
|
importConstraints: 0
|
||||||
|
animationCompression: 1
|
||||||
|
animationRotationError: 0.5
|
||||||
|
animationPositionError: 0.5
|
||||||
|
animationScaleError: 0.5
|
||||||
|
animationWrapMode: 0
|
||||||
|
extraExposedTransformPaths: []
|
||||||
|
extraUserProperties: []
|
||||||
|
clipAnimations: []
|
||||||
|
isReadable: 1
|
||||||
|
meshes:
|
||||||
|
lODScreenPercentages: []
|
||||||
|
globalScale: 1
|
||||||
|
meshCompression: 0
|
||||||
|
addColliders: 0
|
||||||
|
useSRGBMaterialColor: 1
|
||||||
|
sortHierarchyByName: 1
|
||||||
|
preBakeConvexCollisionMesh: 0
|
||||||
|
preBakeTriangleCollisionMesh: 0
|
||||||
|
importPhysicalCameras: 1
|
||||||
|
importVisibility: 0
|
||||||
|
importBlendShapes: 1
|
||||||
|
importCameras: 0
|
||||||
|
importLights: 0
|
||||||
|
nodeNameCollisionStrategy: 1
|
||||||
|
fileIdsGeneration: 2
|
||||||
|
swapUVChannels: 0
|
||||||
|
generateSecondaryUV: 0
|
||||||
|
useFileUnits: 1
|
||||||
|
keepQuads: 0
|
||||||
|
weldVertices: 1
|
||||||
|
bakeAxisConversion: 1
|
||||||
|
preserveHierarchy: 0
|
||||||
|
skinWeightsMode: 0
|
||||||
|
maxBonesPerVertex: 4
|
||||||
|
minBoneWeight: 0.001
|
||||||
|
optimizeBones: 1
|
||||||
|
generateMeshLods: 0
|
||||||
|
meshLodGenerationFlags: 0
|
||||||
|
maximumMeshLod: -1
|
||||||
|
importUVs: -1
|
||||||
|
importVertexColors: 1
|
||||||
|
meshOptimizationFlags: -1
|
||||||
|
indexFormat: 0
|
||||||
|
secondaryUVAngleDistortion: 8
|
||||||
|
secondaryUVAreaDistortion: 15.000001
|
||||||
|
secondaryUVHardAngle: 88
|
||||||
|
secondaryUVMarginMethod: 1
|
||||||
|
secondaryUVMinLightmapResolution: 40
|
||||||
|
secondaryUVMinObjectScale: 1
|
||||||
|
secondaryUVPackMargin: 4
|
||||||
|
useFileScale: 1
|
||||||
|
strictVertexDataChecks: 0
|
||||||
|
tangentSpace:
|
||||||
|
normalSmoothAngle: 60
|
||||||
|
normalImportMode: 0
|
||||||
|
tangentImportMode: 3
|
||||||
|
normalCalculationMode: 4
|
||||||
|
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||||
|
blendShapeNormalImportMode: 1
|
||||||
|
normalSmoothingSource: 0
|
||||||
|
calculateBlendshapeNormalsDeltaFromImportedNormals: 0
|
||||||
|
referencedClips: []
|
||||||
|
importAnimation: 0
|
||||||
|
humanDescription:
|
||||||
|
serializedVersion: 3
|
||||||
|
human: []
|
||||||
|
skeleton: []
|
||||||
|
armTwist: 0.5
|
||||||
|
foreArmTwist: 0.5
|
||||||
|
upperLegTwist: 0.5
|
||||||
|
legTwist: 0.5
|
||||||
|
armStretch: 0.05
|
||||||
|
legStretch: 0.05
|
||||||
|
feetSpacing: 0
|
||||||
|
globalScale: 1
|
||||||
|
rootMotionBoneName:
|
||||||
|
hasTranslationDoF: 0
|
||||||
|
hasExtraRoot: 0
|
||||||
|
skeletonHasParents: 1
|
||||||
|
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||||
|
autoGenerateAvatarMappingIfUnspecified: 1
|
||||||
|
animationType: 0
|
||||||
|
humanoidOversampling: 1
|
||||||
|
avatarSetup: 0
|
||||||
|
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||||
|
importBlendShapeDeformPercent: 1
|
||||||
|
remapMaterialsIfMaterialImportModeIsNone: 0
|
||||||
|
additionalBone: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Art/Models/SM_BulbPlants.fbx
(Stored with Git LFS)
Normal file
BIN
Assets/Art/Models/SM_BulbPlants.fbx
(Stored with Git LFS)
Normal file
Binary file not shown.
116
Assets/Art/Models/SM_BulbPlants.fbx.meta
Normal file
116
Assets/Art/Models/SM_BulbPlants.fbx.meta
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5189fb7c48d7829408071170f2bc78fc
|
||||||
|
ModelImporter:
|
||||||
|
serializedVersion: 24600
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
materials:
|
||||||
|
materialImportMode: 2
|
||||||
|
materialName: 1
|
||||||
|
materialSearch: 2
|
||||||
|
materialLocation: 1
|
||||||
|
searchTexturesGlobally: 0
|
||||||
|
animations:
|
||||||
|
legacyGenerateAnimations: 4
|
||||||
|
bakeSimulation: 0
|
||||||
|
resampleCurves: 1
|
||||||
|
optimizeGameObjects: 0
|
||||||
|
removeConstantScaleCurves: 0
|
||||||
|
motionNodeName:
|
||||||
|
animationImportErrors:
|
||||||
|
animationImportWarnings:
|
||||||
|
animationRetargetingWarnings:
|
||||||
|
animationDoRetargetingWarnings: 0
|
||||||
|
importAnimatedCustomProperties: 0
|
||||||
|
importConstraints: 0
|
||||||
|
animationCompression: 1
|
||||||
|
animationRotationError: 0.5
|
||||||
|
animationPositionError: 0.5
|
||||||
|
animationScaleError: 0.5
|
||||||
|
animationWrapMode: 0
|
||||||
|
extraExposedTransformPaths: []
|
||||||
|
extraUserProperties: []
|
||||||
|
clipAnimations: []
|
||||||
|
isReadable: 1
|
||||||
|
meshes:
|
||||||
|
lODScreenPercentages: []
|
||||||
|
globalScale: 1
|
||||||
|
meshCompression: 0
|
||||||
|
addColliders: 0
|
||||||
|
useSRGBMaterialColor: 1
|
||||||
|
sortHierarchyByName: 1
|
||||||
|
preBakeConvexCollisionMesh: 0
|
||||||
|
preBakeTriangleCollisionMesh: 0
|
||||||
|
importPhysicalCameras: 1
|
||||||
|
importVisibility: 0
|
||||||
|
importBlendShapes: 1
|
||||||
|
importCameras: 0
|
||||||
|
importLights: 0
|
||||||
|
nodeNameCollisionStrategy: 1
|
||||||
|
fileIdsGeneration: 2
|
||||||
|
swapUVChannels: 0
|
||||||
|
generateSecondaryUV: 0
|
||||||
|
useFileUnits: 1
|
||||||
|
keepQuads: 0
|
||||||
|
weldVertices: 1
|
||||||
|
bakeAxisConversion: 1
|
||||||
|
preserveHierarchy: 0
|
||||||
|
skinWeightsMode: 0
|
||||||
|
maxBonesPerVertex: 4
|
||||||
|
minBoneWeight: 0.001
|
||||||
|
optimizeBones: 1
|
||||||
|
generateMeshLods: 0
|
||||||
|
meshLodGenerationFlags: 0
|
||||||
|
maximumMeshLod: -1
|
||||||
|
importUVs: -1
|
||||||
|
importVertexColors: 1
|
||||||
|
meshOptimizationFlags: -1
|
||||||
|
indexFormat: 0
|
||||||
|
secondaryUVAngleDistortion: 8
|
||||||
|
secondaryUVAreaDistortion: 15.000001
|
||||||
|
secondaryUVHardAngle: 88
|
||||||
|
secondaryUVMarginMethod: 1
|
||||||
|
secondaryUVMinLightmapResolution: 40
|
||||||
|
secondaryUVMinObjectScale: 1
|
||||||
|
secondaryUVPackMargin: 4
|
||||||
|
useFileScale: 1
|
||||||
|
strictVertexDataChecks: 0
|
||||||
|
tangentSpace:
|
||||||
|
normalSmoothAngle: 60
|
||||||
|
normalImportMode: 0
|
||||||
|
tangentImportMode: 3
|
||||||
|
normalCalculationMode: 4
|
||||||
|
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||||
|
blendShapeNormalImportMode: 1
|
||||||
|
normalSmoothingSource: 0
|
||||||
|
calculateBlendshapeNormalsDeltaFromImportedNormals: 0
|
||||||
|
referencedClips: []
|
||||||
|
importAnimation: 0
|
||||||
|
humanDescription:
|
||||||
|
serializedVersion: 3
|
||||||
|
human: []
|
||||||
|
skeleton: []
|
||||||
|
armTwist: 0.5
|
||||||
|
foreArmTwist: 0.5
|
||||||
|
upperLegTwist: 0.5
|
||||||
|
legTwist: 0.5
|
||||||
|
armStretch: 0.05
|
||||||
|
legStretch: 0.05
|
||||||
|
feetSpacing: 0
|
||||||
|
globalScale: 1
|
||||||
|
rootMotionBoneName:
|
||||||
|
hasTranslationDoF: 0
|
||||||
|
hasExtraRoot: 0
|
||||||
|
skeletonHasParents: 1
|
||||||
|
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||||
|
autoGenerateAvatarMappingIfUnspecified: 1
|
||||||
|
animationType: 0
|
||||||
|
humanoidOversampling: 1
|
||||||
|
avatarSetup: 0
|
||||||
|
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||||
|
importBlendShapeDeformPercent: 1
|
||||||
|
remapMaterialsIfMaterialImportModeIsNone: 0
|
||||||
|
additionalBone: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Art/Models/SM_Crystals.fbx
(Stored with Git LFS)
Normal file
BIN
Assets/Art/Models/SM_Crystals.fbx
(Stored with Git LFS)
Normal file
Binary file not shown.
116
Assets/Art/Models/SM_Crystals.fbx.meta
Normal file
116
Assets/Art/Models/SM_Crystals.fbx.meta
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 408af3438629a0542aadcfc8c7ed8dcc
|
||||||
|
ModelImporter:
|
||||||
|
serializedVersion: 24600
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
materials:
|
||||||
|
materialImportMode: 2
|
||||||
|
materialName: 1
|
||||||
|
materialSearch: 2
|
||||||
|
materialLocation: 1
|
||||||
|
searchTexturesGlobally: 0
|
||||||
|
animations:
|
||||||
|
legacyGenerateAnimations: 4
|
||||||
|
bakeSimulation: 0
|
||||||
|
resampleCurves: 1
|
||||||
|
optimizeGameObjects: 0
|
||||||
|
removeConstantScaleCurves: 0
|
||||||
|
motionNodeName:
|
||||||
|
animationImportErrors:
|
||||||
|
animationImportWarnings:
|
||||||
|
animationRetargetingWarnings:
|
||||||
|
animationDoRetargetingWarnings: 0
|
||||||
|
importAnimatedCustomProperties: 0
|
||||||
|
importConstraints: 0
|
||||||
|
animationCompression: 1
|
||||||
|
animationRotationError: 0.5
|
||||||
|
animationPositionError: 0.5
|
||||||
|
animationScaleError: 0.5
|
||||||
|
animationWrapMode: 0
|
||||||
|
extraExposedTransformPaths: []
|
||||||
|
extraUserProperties: []
|
||||||
|
clipAnimations: []
|
||||||
|
isReadable: 1
|
||||||
|
meshes:
|
||||||
|
lODScreenPercentages: []
|
||||||
|
globalScale: 1
|
||||||
|
meshCompression: 0
|
||||||
|
addColliders: 0
|
||||||
|
useSRGBMaterialColor: 1
|
||||||
|
sortHierarchyByName: 1
|
||||||
|
preBakeConvexCollisionMesh: 0
|
||||||
|
preBakeTriangleCollisionMesh: 0
|
||||||
|
importPhysicalCameras: 1
|
||||||
|
importVisibility: 0
|
||||||
|
importBlendShapes: 1
|
||||||
|
importCameras: 0
|
||||||
|
importLights: 0
|
||||||
|
nodeNameCollisionStrategy: 1
|
||||||
|
fileIdsGeneration: 2
|
||||||
|
swapUVChannels: 0
|
||||||
|
generateSecondaryUV: 0
|
||||||
|
useFileUnits: 1
|
||||||
|
keepQuads: 0
|
||||||
|
weldVertices: 1
|
||||||
|
bakeAxisConversion: 1
|
||||||
|
preserveHierarchy: 0
|
||||||
|
skinWeightsMode: 0
|
||||||
|
maxBonesPerVertex: 4
|
||||||
|
minBoneWeight: 0.001
|
||||||
|
optimizeBones: 1
|
||||||
|
generateMeshLods: 0
|
||||||
|
meshLodGenerationFlags: 0
|
||||||
|
maximumMeshLod: -1
|
||||||
|
importUVs: -1
|
||||||
|
importVertexColors: 1
|
||||||
|
meshOptimizationFlags: -1
|
||||||
|
indexFormat: 0
|
||||||
|
secondaryUVAngleDistortion: 8
|
||||||
|
secondaryUVAreaDistortion: 15.000001
|
||||||
|
secondaryUVHardAngle: 88
|
||||||
|
secondaryUVMarginMethod: 1
|
||||||
|
secondaryUVMinLightmapResolution: 40
|
||||||
|
secondaryUVMinObjectScale: 1
|
||||||
|
secondaryUVPackMargin: 4
|
||||||
|
useFileScale: 1
|
||||||
|
strictVertexDataChecks: 0
|
||||||
|
tangentSpace:
|
||||||
|
normalSmoothAngle: 60
|
||||||
|
normalImportMode: 0
|
||||||
|
tangentImportMode: 3
|
||||||
|
normalCalculationMode: 4
|
||||||
|
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||||
|
blendShapeNormalImportMode: 1
|
||||||
|
normalSmoothingSource: 0
|
||||||
|
calculateBlendshapeNormalsDeltaFromImportedNormals: 0
|
||||||
|
referencedClips: []
|
||||||
|
importAnimation: 0
|
||||||
|
humanDescription:
|
||||||
|
serializedVersion: 3
|
||||||
|
human: []
|
||||||
|
skeleton: []
|
||||||
|
armTwist: 0.5
|
||||||
|
foreArmTwist: 0.5
|
||||||
|
upperLegTwist: 0.5
|
||||||
|
legTwist: 0.5
|
||||||
|
armStretch: 0.05
|
||||||
|
legStretch: 0.05
|
||||||
|
feetSpacing: 0
|
||||||
|
globalScale: 1
|
||||||
|
rootMotionBoneName:
|
||||||
|
hasTranslationDoF: 0
|
||||||
|
hasExtraRoot: 0
|
||||||
|
skeletonHasParents: 1
|
||||||
|
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||||
|
autoGenerateAvatarMappingIfUnspecified: 1
|
||||||
|
animationType: 0
|
||||||
|
humanoidOversampling: 1
|
||||||
|
avatarSetup: 0
|
||||||
|
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||||
|
importBlendShapeDeformPercent: 1
|
||||||
|
remapMaterialsIfMaterialImportModeIsNone: 0
|
||||||
|
additionalBone: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Art/Models/SM_DeckTile.fbx
(Stored with Git LFS)
BIN
Assets/Art/Models/SM_DeckTile.fbx
(Stored with Git LFS)
Binary file not shown.
BIN
Assets/Art/Models/SM_Shrooms.fbx
(Stored with Git LFS)
Normal file
BIN
Assets/Art/Models/SM_Shrooms.fbx
(Stored with Git LFS)
Normal file
Binary file not shown.
116
Assets/Art/Models/SM_Shrooms.fbx.meta
Normal file
116
Assets/Art/Models/SM_Shrooms.fbx.meta
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d97fcf9ef420b314f8fce5be3293138b
|
||||||
|
ModelImporter:
|
||||||
|
serializedVersion: 24600
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
materials:
|
||||||
|
materialImportMode: 2
|
||||||
|
materialName: 1
|
||||||
|
materialSearch: 2
|
||||||
|
materialLocation: 1
|
||||||
|
searchTexturesGlobally: 0
|
||||||
|
animations:
|
||||||
|
legacyGenerateAnimations: 4
|
||||||
|
bakeSimulation: 0
|
||||||
|
resampleCurves: 1
|
||||||
|
optimizeGameObjects: 0
|
||||||
|
removeConstantScaleCurves: 0
|
||||||
|
motionNodeName:
|
||||||
|
animationImportErrors:
|
||||||
|
animationImportWarnings:
|
||||||
|
animationRetargetingWarnings:
|
||||||
|
animationDoRetargetingWarnings: 0
|
||||||
|
importAnimatedCustomProperties: 0
|
||||||
|
importConstraints: 0
|
||||||
|
animationCompression: 1
|
||||||
|
animationRotationError: 0.5
|
||||||
|
animationPositionError: 0.5
|
||||||
|
animationScaleError: 0.5
|
||||||
|
animationWrapMode: 0
|
||||||
|
extraExposedTransformPaths: []
|
||||||
|
extraUserProperties: []
|
||||||
|
clipAnimations: []
|
||||||
|
isReadable: 1
|
||||||
|
meshes:
|
||||||
|
lODScreenPercentages: []
|
||||||
|
globalScale: 1
|
||||||
|
meshCompression: 0
|
||||||
|
addColliders: 0
|
||||||
|
useSRGBMaterialColor: 1
|
||||||
|
sortHierarchyByName: 1
|
||||||
|
preBakeConvexCollisionMesh: 0
|
||||||
|
preBakeTriangleCollisionMesh: 0
|
||||||
|
importPhysicalCameras: 1
|
||||||
|
importVisibility: 0
|
||||||
|
importBlendShapes: 1
|
||||||
|
importCameras: 0
|
||||||
|
importLights: 0
|
||||||
|
nodeNameCollisionStrategy: 1
|
||||||
|
fileIdsGeneration: 2
|
||||||
|
swapUVChannels: 0
|
||||||
|
generateSecondaryUV: 0
|
||||||
|
useFileUnits: 1
|
||||||
|
keepQuads: 0
|
||||||
|
weldVertices: 1
|
||||||
|
bakeAxisConversion: 1
|
||||||
|
preserveHierarchy: 0
|
||||||
|
skinWeightsMode: 0
|
||||||
|
maxBonesPerVertex: 4
|
||||||
|
minBoneWeight: 0.001
|
||||||
|
optimizeBones: 1
|
||||||
|
generateMeshLods: 0
|
||||||
|
meshLodGenerationFlags: 0
|
||||||
|
maximumMeshLod: -1
|
||||||
|
importUVs: -1
|
||||||
|
importVertexColors: 1
|
||||||
|
meshOptimizationFlags: -1
|
||||||
|
indexFormat: 0
|
||||||
|
secondaryUVAngleDistortion: 8
|
||||||
|
secondaryUVAreaDistortion: 15.000001
|
||||||
|
secondaryUVHardAngle: 88
|
||||||
|
secondaryUVMarginMethod: 1
|
||||||
|
secondaryUVMinLightmapResolution: 40
|
||||||
|
secondaryUVMinObjectScale: 1
|
||||||
|
secondaryUVPackMargin: 4
|
||||||
|
useFileScale: 1
|
||||||
|
strictVertexDataChecks: 0
|
||||||
|
tangentSpace:
|
||||||
|
normalSmoothAngle: 60
|
||||||
|
normalImportMode: 0
|
||||||
|
tangentImportMode: 3
|
||||||
|
normalCalculationMode: 4
|
||||||
|
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||||
|
blendShapeNormalImportMode: 1
|
||||||
|
normalSmoothingSource: 0
|
||||||
|
calculateBlendshapeNormalsDeltaFromImportedNormals: 0
|
||||||
|
referencedClips: []
|
||||||
|
importAnimation: 0
|
||||||
|
humanDescription:
|
||||||
|
serializedVersion: 3
|
||||||
|
human: []
|
||||||
|
skeleton: []
|
||||||
|
armTwist: 0.5
|
||||||
|
foreArmTwist: 0.5
|
||||||
|
upperLegTwist: 0.5
|
||||||
|
legTwist: 0.5
|
||||||
|
armStretch: 0.05
|
||||||
|
legStretch: 0.05
|
||||||
|
feetSpacing: 0
|
||||||
|
globalScale: 1
|
||||||
|
rootMotionBoneName:
|
||||||
|
hasTranslationDoF: 0
|
||||||
|
hasExtraRoot: 0
|
||||||
|
skeletonHasParents: 1
|
||||||
|
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||||
|
autoGenerateAvatarMappingIfUnspecified: 1
|
||||||
|
animationType: 0
|
||||||
|
humanoidOversampling: 1
|
||||||
|
avatarSetup: 0
|
||||||
|
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||||
|
importBlendShapeDeformPercent: 1
|
||||||
|
remapMaterialsIfMaterialImportModeIsNone: 0
|
||||||
|
additionalBone: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Art/Models/SM_SlabStones.fbx
(Stored with Git LFS)
Normal file
BIN
Assets/Art/Models/SM_SlabStones.fbx
(Stored with Git LFS)
Normal file
Binary file not shown.
116
Assets/Art/Models/SM_SlabStones.fbx.meta
Normal file
116
Assets/Art/Models/SM_SlabStones.fbx.meta
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 55c170e9b692bcc42a4a9f9f245e6340
|
||||||
|
ModelImporter:
|
||||||
|
serializedVersion: 24600
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
materials:
|
||||||
|
materialImportMode: 2
|
||||||
|
materialName: 1
|
||||||
|
materialSearch: 2
|
||||||
|
materialLocation: 1
|
||||||
|
searchTexturesGlobally: 0
|
||||||
|
animations:
|
||||||
|
legacyGenerateAnimations: 4
|
||||||
|
bakeSimulation: 0
|
||||||
|
resampleCurves: 1
|
||||||
|
optimizeGameObjects: 0
|
||||||
|
removeConstantScaleCurves: 0
|
||||||
|
motionNodeName:
|
||||||
|
animationImportErrors:
|
||||||
|
animationImportWarnings:
|
||||||
|
animationRetargetingWarnings:
|
||||||
|
animationDoRetargetingWarnings: 0
|
||||||
|
importAnimatedCustomProperties: 0
|
||||||
|
importConstraints: 0
|
||||||
|
animationCompression: 1
|
||||||
|
animationRotationError: 0.5
|
||||||
|
animationPositionError: 0.5
|
||||||
|
animationScaleError: 0.5
|
||||||
|
animationWrapMode: 0
|
||||||
|
extraExposedTransformPaths: []
|
||||||
|
extraUserProperties: []
|
||||||
|
clipAnimations: []
|
||||||
|
isReadable: 1
|
||||||
|
meshes:
|
||||||
|
lODScreenPercentages: []
|
||||||
|
globalScale: 1
|
||||||
|
meshCompression: 0
|
||||||
|
addColliders: 0
|
||||||
|
useSRGBMaterialColor: 1
|
||||||
|
sortHierarchyByName: 1
|
||||||
|
preBakeConvexCollisionMesh: 0
|
||||||
|
preBakeTriangleCollisionMesh: 0
|
||||||
|
importPhysicalCameras: 1
|
||||||
|
importVisibility: 0
|
||||||
|
importBlendShapes: 1
|
||||||
|
importCameras: 0
|
||||||
|
importLights: 0
|
||||||
|
nodeNameCollisionStrategy: 1
|
||||||
|
fileIdsGeneration: 2
|
||||||
|
swapUVChannels: 0
|
||||||
|
generateSecondaryUV: 0
|
||||||
|
useFileUnits: 1
|
||||||
|
keepQuads: 0
|
||||||
|
weldVertices: 1
|
||||||
|
bakeAxisConversion: 1
|
||||||
|
preserveHierarchy: 0
|
||||||
|
skinWeightsMode: 0
|
||||||
|
maxBonesPerVertex: 4
|
||||||
|
minBoneWeight: 0.001
|
||||||
|
optimizeBones: 1
|
||||||
|
generateMeshLods: 0
|
||||||
|
meshLodGenerationFlags: 0
|
||||||
|
maximumMeshLod: -1
|
||||||
|
importUVs: -1
|
||||||
|
importVertexColors: 1
|
||||||
|
meshOptimizationFlags: -1
|
||||||
|
indexFormat: 0
|
||||||
|
secondaryUVAngleDistortion: 8
|
||||||
|
secondaryUVAreaDistortion: 15.000001
|
||||||
|
secondaryUVHardAngle: 88
|
||||||
|
secondaryUVMarginMethod: 1
|
||||||
|
secondaryUVMinLightmapResolution: 40
|
||||||
|
secondaryUVMinObjectScale: 1
|
||||||
|
secondaryUVPackMargin: 4
|
||||||
|
useFileScale: 1
|
||||||
|
strictVertexDataChecks: 0
|
||||||
|
tangentSpace:
|
||||||
|
normalSmoothAngle: 60
|
||||||
|
normalImportMode: 0
|
||||||
|
tangentImportMode: 3
|
||||||
|
normalCalculationMode: 4
|
||||||
|
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||||
|
blendShapeNormalImportMode: 1
|
||||||
|
normalSmoothingSource: 0
|
||||||
|
calculateBlendshapeNormalsDeltaFromImportedNormals: 0
|
||||||
|
referencedClips: []
|
||||||
|
importAnimation: 0
|
||||||
|
humanDescription:
|
||||||
|
serializedVersion: 3
|
||||||
|
human: []
|
||||||
|
skeleton: []
|
||||||
|
armTwist: 0.5
|
||||||
|
foreArmTwist: 0.5
|
||||||
|
upperLegTwist: 0.5
|
||||||
|
legTwist: 0.5
|
||||||
|
armStretch: 0.05
|
||||||
|
legStretch: 0.05
|
||||||
|
feetSpacing: 0
|
||||||
|
globalScale: 1
|
||||||
|
rootMotionBoneName:
|
||||||
|
hasTranslationDoF: 0
|
||||||
|
hasExtraRoot: 0
|
||||||
|
skeletonHasParents: 1
|
||||||
|
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||||
|
autoGenerateAvatarMappingIfUnspecified: 1
|
||||||
|
animationType: 0
|
||||||
|
humanoidOversampling: 1
|
||||||
|
avatarSetup: 0
|
||||||
|
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||||
|
importBlendShapeDeformPercent: 1
|
||||||
|
remapMaterialsIfMaterialImportModeIsNone: 0
|
||||||
|
additionalBone: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
BIN
Assets/Art/Models/SM_Stump.fbx
(Stored with Git LFS)
Normal file
BIN
Assets/Art/Models/SM_Stump.fbx
(Stored with Git LFS)
Normal file
Binary file not shown.
116
Assets/Art/Models/SM_Stump.fbx.meta
Normal file
116
Assets/Art/Models/SM_Stump.fbx.meta
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d9392e23ba9877144b935ad9398070ca
|
||||||
|
ModelImporter:
|
||||||
|
serializedVersion: 24600
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
materials:
|
||||||
|
materialImportMode: 2
|
||||||
|
materialName: 1
|
||||||
|
materialSearch: 2
|
||||||
|
materialLocation: 1
|
||||||
|
searchTexturesGlobally: 0
|
||||||
|
animations:
|
||||||
|
legacyGenerateAnimations: 4
|
||||||
|
bakeSimulation: 0
|
||||||
|
resampleCurves: 1
|
||||||
|
optimizeGameObjects: 0
|
||||||
|
removeConstantScaleCurves: 0
|
||||||
|
motionNodeName:
|
||||||
|
animationImportErrors:
|
||||||
|
animationImportWarnings:
|
||||||
|
animationRetargetingWarnings:
|
||||||
|
animationDoRetargetingWarnings: 0
|
||||||
|
importAnimatedCustomProperties: 0
|
||||||
|
importConstraints: 0
|
||||||
|
animationCompression: 1
|
||||||
|
animationRotationError: 0.5
|
||||||
|
animationPositionError: 0.5
|
||||||
|
animationScaleError: 0.5
|
||||||
|
animationWrapMode: 0
|
||||||
|
extraExposedTransformPaths: []
|
||||||
|
extraUserProperties: []
|
||||||
|
clipAnimations: []
|
||||||
|
isReadable: 1
|
||||||
|
meshes:
|
||||||
|
lODScreenPercentages: []
|
||||||
|
globalScale: 1
|
||||||
|
meshCompression: 0
|
||||||
|
addColliders: 0
|
||||||
|
useSRGBMaterialColor: 1
|
||||||
|
sortHierarchyByName: 1
|
||||||
|
preBakeConvexCollisionMesh: 0
|
||||||
|
preBakeTriangleCollisionMesh: 0
|
||||||
|
importPhysicalCameras: 1
|
||||||
|
importVisibility: 0
|
||||||
|
importBlendShapes: 1
|
||||||
|
importCameras: 0
|
||||||
|
importLights: 0
|
||||||
|
nodeNameCollisionStrategy: 1
|
||||||
|
fileIdsGeneration: 2
|
||||||
|
swapUVChannels: 0
|
||||||
|
generateSecondaryUV: 0
|
||||||
|
useFileUnits: 1
|
||||||
|
keepQuads: 0
|
||||||
|
weldVertices: 1
|
||||||
|
bakeAxisConversion: 1
|
||||||
|
preserveHierarchy: 0
|
||||||
|
skinWeightsMode: 0
|
||||||
|
maxBonesPerVertex: 4
|
||||||
|
minBoneWeight: 0.001
|
||||||
|
optimizeBones: 1
|
||||||
|
generateMeshLods: 0
|
||||||
|
meshLodGenerationFlags: 0
|
||||||
|
maximumMeshLod: -1
|
||||||
|
importUVs: -1
|
||||||
|
importVertexColors: 1
|
||||||
|
meshOptimizationFlags: -1
|
||||||
|
indexFormat: 0
|
||||||
|
secondaryUVAngleDistortion: 8
|
||||||
|
secondaryUVAreaDistortion: 15.000001
|
||||||
|
secondaryUVHardAngle: 88
|
||||||
|
secondaryUVMarginMethod: 1
|
||||||
|
secondaryUVMinLightmapResolution: 40
|
||||||
|
secondaryUVMinObjectScale: 1
|
||||||
|
secondaryUVPackMargin: 4
|
||||||
|
useFileScale: 1
|
||||||
|
strictVertexDataChecks: 0
|
||||||
|
tangentSpace:
|
||||||
|
normalSmoothAngle: 60
|
||||||
|
normalImportMode: 0
|
||||||
|
tangentImportMode: 3
|
||||||
|
normalCalculationMode: 4
|
||||||
|
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||||
|
blendShapeNormalImportMode: 1
|
||||||
|
normalSmoothingSource: 0
|
||||||
|
calculateBlendshapeNormalsDeltaFromImportedNormals: 0
|
||||||
|
referencedClips: []
|
||||||
|
importAnimation: 0
|
||||||
|
humanDescription:
|
||||||
|
serializedVersion: 3
|
||||||
|
human: []
|
||||||
|
skeleton: []
|
||||||
|
armTwist: 0.5
|
||||||
|
foreArmTwist: 0.5
|
||||||
|
upperLegTwist: 0.5
|
||||||
|
legTwist: 0.5
|
||||||
|
armStretch: 0.05
|
||||||
|
legStretch: 0.05
|
||||||
|
feetSpacing: 0
|
||||||
|
globalScale: 1
|
||||||
|
rootMotionBoneName:
|
||||||
|
hasTranslationDoF: 0
|
||||||
|
hasExtraRoot: 0
|
||||||
|
skeletonHasParents: 1
|
||||||
|
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||||
|
autoGenerateAvatarMappingIfUnspecified: 1
|
||||||
|
animationType: 0
|
||||||
|
humanoidOversampling: 1
|
||||||
|
avatarSetup: 0
|
||||||
|
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||||
|
importBlendShapeDeformPercent: 1
|
||||||
|
remapMaterialsIfMaterialImportModeIsNone: 0
|
||||||
|
additionalBone: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -1,3 +1,4 @@
|
|||||||
|
using System.Linq;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
@ -6,6 +7,9 @@ namespace GrassCutter.EditorTools
|
|||||||
/// <summary>Import settings for Blender FBX, UI art, textures and audio.</summary>
|
/// <summary>Import settings for Blender FBX, UI art, textures and audio.</summary>
|
||||||
public class ImportRules : AssetPostprocessor
|
public class ImportRules : AssetPostprocessor
|
||||||
{
|
{
|
||||||
|
/// <summary>The meadow's scattered stones and plants: Ground gives most of them MeshColliders at runtime.</summary>
|
||||||
|
static readonly string[] Decor = { "SM_Boulders", "SM_SlabStones", "SM_Crystals", "SM_Shrooms", "SM_Stump", "SM_BulbPlants" };
|
||||||
|
|
||||||
void OnPreprocessModel()
|
void OnPreprocessModel()
|
||||||
{
|
{
|
||||||
bool pack = assetPath.StartsWith("Assets/Art/Pack/");
|
bool pack = assetPath.StartsWith("Assets/Art/Pack/");
|
||||||
@ -21,7 +25,7 @@ namespace GrassCutter.EditorTools
|
|||||||
mi.animationType = assetPath.Contains("SM_Crew") || assetPath.Contains("SM_Dir_") ? ModelImporterAnimationType.Generic : ModelImporterAnimationType.None;
|
mi.animationType = assetPath.Contains("SM_Crew") || assetPath.Contains("SM_Dir_") ? ModelImporterAnimationType.Generic : ModelImporterAnimationType.None;
|
||||||
mi.addCollider = false;
|
mi.addCollider = false;
|
||||||
// runtime MeshColliders (seabed rocks and wrecks) need CPU-readable meshes in the player
|
// runtime MeshColliders (seabed rocks and wrecks) need CPU-readable meshes in the player
|
||||||
mi.isReadable = assetPath.Contains("SM_Spire") || assetPath.Contains("SM_Wreck") || (pack && !assetPath.Contains("SM_Veh_") && !assetPath.Contains("Hay_Bale"));
|
mi.isReadable = assetPath.Contains("SM_Spire") || assetPath.Contains("SM_Wreck") || Decor.Any(assetPath.Contains) || (pack && !assetPath.Contains("SM_Veh_") && !assetPath.Contains("Hay_Bale"));
|
||||||
mi.meshCompression = ModelImporterMeshCompression.Off;
|
mi.meshCompression = ModelImporterMeshCompression.Off;
|
||||||
mi.importNormals = ModelImporterNormals.Import;
|
mi.importNormals = ModelImporterNormals.Import;
|
||||||
mi.importTangents = ModelImporterTangents.CalculateMikk;
|
mi.importTangents = ModelImporterTangents.CalculateMikk;
|
||||||
|
|||||||
@ -256,6 +256,8 @@ namespace GrassCutter.EditorTools
|
|||||||
case PieceId.Garage:
|
case PieceId.Garage:
|
||||||
go.AddComponent<Garage>();
|
go.AddComponent<Garage>();
|
||||||
ShedParts(go, model, d.scale);
|
ShedParts(go, model, d.scale);
|
||||||
|
// the roof as it is drawn, above the bays: the walls and posts are boxes, the door opens
|
||||||
|
Hull(go.transform, model, "Hull_Garage", 2.75f * d.scale, "SM_Bld_Garage_01_Door");
|
||||||
break;
|
break;
|
||||||
case PieceId.UnloadBay:
|
case PieceId.UnloadBay:
|
||||||
{
|
{
|
||||||
@ -329,6 +331,8 @@ namespace GrassCutter.EditorTools
|
|||||||
{
|
{
|
||||||
plinth.transform.localPosition = new Vector3(0f, 1.6f, 0f);
|
plinth.transform.localPosition = new Vector3(0f, 1.6f, 0f);
|
||||||
plinth.size = new Vector3(d.sizeX - 0.2f, 3.2f, d.sizeZ - 0.2f);
|
plinth.size = new Vector3(d.sizeX - 0.2f, 3.2f, d.sizeZ - 0.2f);
|
||||||
|
// the tower and its cap above the plinth, as drawn; the sails turn, so they stay out of it
|
||||||
|
Hull(go.transform, model, "Hull_Windmill", 3.0f, "Spin");
|
||||||
}
|
}
|
||||||
var machine = go.AddComponent<Machine>();
|
var machine = go.AddComponent<Machine>();
|
||||||
machine.lamp = Part<Renderer>(model, "Lamp");
|
machine.lamp = Part<Renderer>(model, "Lamp");
|
||||||
@ -380,6 +384,8 @@ namespace GrassCutter.EditorTools
|
|||||||
// one slope from the eave at the front (+Z) to the ridge 1.5 m up at the back
|
// one slope from the eave at the front (+Z) to the ridge 1.5 m up at the back
|
||||||
var slope = Box(go.transform, "Slope", new Vector3(0f, 0.75f, 0f), new Vector3(3.2f, 0.16f, 3.4f), null);
|
var slope = Box(go.transform, "Slope", new Vector3(0f, 0.75f, 0f), new Vector3(3.2f, 0.16f, 3.4f), null);
|
||||||
slope.transform.localRotation = Quaternion.Euler(Mathf.Atan2(1.5f, 3f) * Mathf.Rad2Deg, 0f, 0f);
|
slope.transform.localRotation = Quaternion.Euler(Mathf.Atan2(1.5f, 3f) * Mathf.Rad2Deg, 0f, 0f);
|
||||||
|
// and the roof as drawn, eaves and overhang and all: the slab alone let a body into the roof's underside
|
||||||
|
Hull(go.transform, model, "Hull_Roof");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PieceId.Stairs:
|
case PieceId.Stairs:
|
||||||
@ -516,6 +522,61 @@ namespace GrassCutter.EditorTools
|
|||||||
|
|
||||||
// ───────────────────────── helpers ─────────────────────────
|
// ───────────────────────── helpers ─────────────────────────
|
||||||
|
|
||||||
|
const string HullDir = "Assets/Art/Colliders";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A collider in the model's own shape, for what boxes don't follow: a roof's slopes and overhang, a windmill's
|
||||||
|
/// tower above its plinth, a cabin's gable. Only triangles reaching above minY (in root space) are kept, and parts
|
||||||
|
/// named in skip (sails that turn, doors that open) are left out. The mesh is saved beside the prefabs.
|
||||||
|
/// </summary>
|
||||||
|
public static MeshCollider Hull(Transform root, Transform model, string asset, float minY = float.NegativeInfinity, params string[] skip) => Hull(root, model, asset, minY, float.PositiveInfinity, skip);
|
||||||
|
|
||||||
|
/// <summary>Only triangles lying wholly below maxY too: a chimney left out of a roof's convex hull.</summary>
|
||||||
|
public static MeshCollider Hull(Transform root, Transform model, string asset, float minY, float maxY, params string[] skip)
|
||||||
|
{
|
||||||
|
var verts = new List<Vector3>();
|
||||||
|
var tris = new List<int>();
|
||||||
|
var toRoot = root.worldToLocalMatrix;
|
||||||
|
foreach (var mf in model.GetComponentsInChildren<MeshFilter>(true))
|
||||||
|
{
|
||||||
|
if (!mf.sharedMesh) continue;
|
||||||
|
bool skipped = false;
|
||||||
|
for (var t = mf.transform; t && t != root; t = t.parent)
|
||||||
|
if (skip.Contains(t.name)) { skipped = true; break; }
|
||||||
|
if (skipped) continue;
|
||||||
|
var m = mf.sharedMesh;
|
||||||
|
var to = toRoot * mf.transform.localToWorldMatrix;
|
||||||
|
int b = verts.Count;
|
||||||
|
foreach (var v in m.vertices) verts.Add(to.MultiplyPoint3x4(v));
|
||||||
|
var tr = m.triangles;
|
||||||
|
for (int i = 0; i < tr.Length; i += 3)
|
||||||
|
{
|
||||||
|
int i0 = b + tr[i], i1 = b + tr[i + 1], i2 = b + tr[i + 2];
|
||||||
|
if (Mathf.Max(verts[i0].y, Mathf.Max(verts[i1].y, verts[i2].y)) < minY || Mathf.Max(verts[i0].y, Mathf.Max(verts[i1].y, verts[i2].y)) > maxY) continue;
|
||||||
|
tris.Add(i0); tris.Add(i1); tris.Add(i2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (tris.Count == 0) return null;
|
||||||
|
var mesh = new Mesh { name = asset };
|
||||||
|
if (verts.Count > 65000) mesh.indexFormat = UnityEngine.Rendering.IndexFormat.UInt32;
|
||||||
|
mesh.SetVertices(verts);
|
||||||
|
mesh.SetTriangles(tris, 0);
|
||||||
|
mesh.RecalculateBounds();
|
||||||
|
if (!AssetDatabase.IsValidFolder(HullDir)) AssetDatabase.CreateFolder("Assets/Art", "Colliders");
|
||||||
|
var path = HullDir + "/" + asset + ".asset";
|
||||||
|
var old = AssetDatabase.LoadAssetAtPath<Mesh>(path);
|
||||||
|
if (old) { EditorUtility.CopySerialized(mesh, old); mesh = old; EditorUtility.SetDirty(old); }
|
||||||
|
else AssetDatabase.CreateAsset(mesh, path);
|
||||||
|
var go = new GameObject("Hull");
|
||||||
|
go.transform.SetParent(root, false);
|
||||||
|
var mc = go.AddComponent<MeshCollider>();
|
||||||
|
mc.sharedMesh = mesh;
|
||||||
|
// convex: a body pushed out of a bare triangle mesh can be pushed out the wrong side (through the roof); a roof,
|
||||||
|
// a gable and a tower above its plinth are all near enough convex for that
|
||||||
|
mc.convex = true;
|
||||||
|
return mc;
|
||||||
|
}
|
||||||
|
|
||||||
static PhysicsMaterial PhysMat(string name, float stat, float dyn, float bounce)
|
static PhysicsMaterial PhysMat(string name, float stat, float dyn, float bounce)
|
||||||
{
|
{
|
||||||
var path = Prefabs + name + ".physicMaterial";
|
var path = Prefabs + name + ".physicMaterial";
|
||||||
|
|||||||
@ -167,6 +167,8 @@ namespace GrassCutter.EditorTools
|
|||||||
ground.spires = new[] { Model("SM_Spire_A"), Model("SM_Spire_B"), Model("SM_Spire_C") };
|
ground.spires = new[] { Model("SM_Spire_A"), Model("SM_Spire_B"), Model("SM_Spire_C") };
|
||||||
ground.trees = new[] { Model("SM_Generic_Tree_01"), Model("SM_Generic_Tree_02"), Model("SM_Generic_Tree_03") };
|
ground.trees = new[] { Model("SM_Generic_Tree_01"), Model("SM_Generic_Tree_02"), Model("SM_Generic_Tree_03") };
|
||||||
ground.bush = Model("SM_Prop_Plant_Bush_03_L");
|
ground.bush = Model("SM_Prop_Plant_Bush_03_L");
|
||||||
|
ground.stones = new[] { Model("SM_Boulders"), Model("SM_SlabStones"), Model("SM_Crystals") };
|
||||||
|
ground.growths = new[] { Model("SM_Shrooms"), Model("SM_Stump"), Model("SM_BulbPlants") };
|
||||||
|
|
||||||
var deck = new GameObject("Deck").AddComponent<DeckManager>();
|
var deck = new GameObject("Deck").AddComponent<DeckManager>();
|
||||||
deck.tileModel = Model("SM_DeckTile");
|
deck.tileModel = Model("SM_DeckTile");
|
||||||
@ -193,7 +195,10 @@ namespace GrassCutter.EditorTools
|
|||||||
var cabin = Place("SM_CrewCabin", new Vector3(-6f, 0f, 7f), 180f, rig);
|
var cabin = Place("SM_CrewCabin", new Vector3(-6f, 0f, 7f), 180f, rig);
|
||||||
if (cabin)
|
if (cabin)
|
||||||
{
|
{
|
||||||
SolidAt("CabinBox", new Vector3(0f, 1.6f, 0f), new Vector3(5.8f, 3.2f, 3.8f), cabin.transform);
|
// the walls up to the eaves (2.6 m) as a box, the roof above them as drawn (the box used to stand 0.6 m
|
||||||
|
// proud of the eaves, and a body landed inside the roof)
|
||||||
|
SolidAt("CabinBox", new Vector3(0f, 1.3f, 0f), new Vector3(5.8f, 2.6f, 3.8f), cabin.transform);
|
||||||
|
Hull(cabin.transform, cabin.transform, "Hull_CrewCabin", 2.4f, 3.7f); // the chimney stays out of it
|
||||||
Blocker(cabin, Vector3.zero, new Vector2(5.8f, 3.8f));
|
Blocker(cabin, Vector3.zero, new Vector2(5.8f, 3.8f));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -352,6 +357,8 @@ namespace GrassCutter.EditorTools
|
|||||||
{
|
{
|
||||||
var go = Place(model, pos, yaw, rig);
|
var go = Place(model, pos, yaw, rig);
|
||||||
if (!go) return;
|
if (!go) return;
|
||||||
|
// where the floor is, in the world: pos is the rig's, the bounds are the world's
|
||||||
|
float floor = go.transform.position.y;
|
||||||
go.transform.localScale *= scale;
|
go.transform.localScale *= scale;
|
||||||
// pack props are not all pivoted at their base (the hay bale sits at its middle): stand the lowest point on the floor
|
// pack props are not all pivoted at their base (the hay bale sits at its middle): stand the lowest point on the floor
|
||||||
var rs = go.GetComponentsInChildren<Renderer>();
|
var rs = go.GetComponentsInChildren<Renderer>();
|
||||||
@ -359,7 +366,7 @@ namespace GrassCutter.EditorTools
|
|||||||
{
|
{
|
||||||
var b = rs[0].bounds;
|
var b = rs[0].bounds;
|
||||||
foreach (var r in rs) b.Encapsulate(r.bounds);
|
foreach (var r in rs) b.Encapsulate(r.bounds);
|
||||||
float sink = pos.y - b.min.y;
|
float sink = floor - b.min.y;
|
||||||
if (sink > 0.01f) go.transform.position += Vector3.up * sink;
|
if (sink > 0.01f) go.transform.position += Vector3.up * sink;
|
||||||
}
|
}
|
||||||
SolidAt("Solid", new Vector3(0f, height * 0.5f, 0f), new Vector3(size, height, size), go.transform);
|
SolidAt("Solid", new Vector3(0f, height * 0.5f, 0f), new Vector3(size, height, size), go.transform);
|
||||||
|
|||||||
@ -87,6 +87,7 @@ Transform:
|
|||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 38572444345304277}
|
- {fileID: 38572444345304277}
|
||||||
- {fileID: 1758526003396105489}
|
- {fileID: 1758526003396105489}
|
||||||
|
- {fileID: 3170251978784381269}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!114 &4317683233867669053
|
--- !u!114 &4317683233867669053
|
||||||
@ -145,6 +146,60 @@ MonoBehaviour:
|
|||||||
ShowTopMostFoldoutHeaderGroup: 1
|
ShowTopMostFoldoutHeaderGroup: 1
|
||||||
lamp: {fileID: 6718356117126012063}
|
lamp: {fileID: 6718356117126012063}
|
||||||
spin: {fileID: 8718353153667094295}
|
spin: {fileID: 8718353153667094295}
|
||||||
|
--- !u!1 &9099323804247796267
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3170251978784381269}
|
||||||
|
- component: {fileID: 556488090267634518}
|
||||||
|
m_Layer: 13
|
||||||
|
m_Name: Hull
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &3170251978784381269
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9099323804247796267}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 4917238142679922820}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!64 &556488090267634518
|
||||||
|
MeshCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9099323804247796267}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 5
|
||||||
|
m_Convex: 1
|
||||||
|
m_CookingOptions: 30
|
||||||
|
m_Mesh: {fileID: 4300000, guid: a1df2dfff5eea284398aa54ea2e5a9d3, type: 2}
|
||||||
--- !u!1001 &505441176530150206
|
--- !u!1001 &505441176530150206
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|||||||
@ -1,58 +1,5 @@
|
|||||||
%YAML 1.1
|
%YAML 1.1
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
--- !u!1 &203672820896705212
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 4287098148456496287}
|
|
||||||
- component: {fileID: 5840257662663046449}
|
|
||||||
m_Layer: 13
|
|
||||||
m_Name: Post
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &4287098148456496287
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 203672820896705212}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: -1.3506, y: 0.85920006, z: 1.7890002}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 6080256564837846337}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!65 &5840257662663046449
|
|
||||||
BoxCollider:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 203672820896705212}
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_LayerOverridePriority: 0
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_ProvidesContacts: 0
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 3
|
|
||||||
m_Size: {x: 0.8292, y: 1.7184001, z: 0.25}
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!1 &574139940314412545
|
--- !u!1 &574139940314412545
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -159,7 +106,7 @@ BoxCollider:
|
|||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
m_Size: {x: 8.3328, y: 0.3, z: 3.8280003}
|
m_Size: {x: 8.3328, y: 0.3, z: 3.8280003}
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1 &1859175087556939142
|
--- !u!1 &1965284004425929727
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
@ -167,8 +114,8 @@ GameObject:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 8440449561500553591}
|
- component: {fileID: 2434438388972704976}
|
||||||
- component: {fileID: 5801914591155947391}
|
- component: {fileID: 2385825838288426818}
|
||||||
m_Layer: 13
|
m_Layer: 13
|
||||||
m_Name: Post
|
m_Name: Post
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@ -176,28 +123,28 @@ GameObject:
|
|||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 1
|
||||||
--- !u!4 &8440449561500553591
|
--- !u!4 &2434438388972704976
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1859175087556939142}
|
m_GameObject: {fileID: 1965284004425929727}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: -3.9024, y: 0.85920006, z: 1.7890002}
|
m_LocalPosition: {x: 1.3506, y: 0.85920006, z: 1.7890002}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 6080256564837846337}
|
m_Father: {fileID: 6080256564837846337}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!65 &5801914591155947391
|
--- !u!65 &2385825838288426818
|
||||||
BoxCollider:
|
BoxCollider:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1859175087556939142}
|
m_GameObject: {fileID: 1965284004425929727}
|
||||||
m_Material: {fileID: 0}
|
m_Material: {fileID: 0}
|
||||||
m_IncludeLayers:
|
m_IncludeLayers:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
@ -210,7 +157,7 @@ BoxCollider:
|
|||||||
m_ProvidesContacts: 0
|
m_ProvidesContacts: 0
|
||||||
m_Enabled: 1
|
m_Enabled: 1
|
||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
m_Size: {x: 0.5279998, y: 1.7184001, z: 0.25}
|
m_Size: {x: 0.8292, y: 1.7184001, z: 0.25}
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1 &1971325548543075741
|
--- !u!1 &1971325548543075741
|
||||||
GameObject:
|
GameObject:
|
||||||
@ -254,9 +201,10 @@ Transform:
|
|||||||
- {fileID: 1108610811231582257}
|
- {fileID: 1108610811231582257}
|
||||||
- {fileID: 9079409668988869866}
|
- {fileID: 9079409668988869866}
|
||||||
- {fileID: 53782875249114572}
|
- {fileID: 53782875249114572}
|
||||||
- {fileID: 8440449561500553591}
|
- {fileID: 3550362103726451864}
|
||||||
- {fileID: 2857231799803690203}
|
- {fileID: 2434438388972704976}
|
||||||
- {fileID: 4287098148456496287}
|
- {fileID: 7546661658747855321}
|
||||||
|
- {fileID: 1311283872219557302}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!114 &6163206358755032998
|
--- !u!114 &6163206358755032998
|
||||||
@ -333,6 +281,59 @@ MonoBehaviour:
|
|||||||
backWall: -1.7280002
|
backWall: -1.7280002
|
||||||
doorLine: 1.9140002
|
doorLine: 1.9140002
|
||||||
eaves: 1.6500001
|
eaves: 1.6500001
|
||||||
|
--- !u!1 &2346421942890392580
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3550362103726451864}
|
||||||
|
- component: {fileID: 8213657979015482781}
|
||||||
|
m_Layer: 13
|
||||||
|
m_Name: Post
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &3550362103726451864
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2346421942890392580}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: -3.9024, y: 0.85920006, z: 1.7890002}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 6080256564837846337}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!65 &8213657979015482781
|
||||||
|
BoxCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2346421942890392580}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Size: {x: 0.5279998, y: 1.7184001, z: 0.25}
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1 &2360479621212599500
|
--- !u!1 &2360479621212599500
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -545,7 +546,7 @@ BoxCollider:
|
|||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
m_Size: {x: 8.3328, y: 0.2615999, z: 0.25}
|
m_Size: {x: 8.3328, y: 0.2615999, z: 0.25}
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1 &5675504714872131057
|
--- !u!1 &8388024278122535338
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
@ -553,8 +554,8 @@ GameObject:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 2857231799803690203}
|
- component: {fileID: 7546661658747855321}
|
||||||
- component: {fileID: 5846303309610934194}
|
- component: {fileID: 4943084778697038234}
|
||||||
m_Layer: 13
|
m_Layer: 13
|
||||||
m_Name: Post
|
m_Name: Post
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@ -562,28 +563,28 @@ GameObject:
|
|||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 1
|
||||||
--- !u!4 &2857231799803690203
|
--- !u!4 &7546661658747855321
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 5675504714872131057}
|
m_GameObject: {fileID: 8388024278122535338}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: 1.3506, y: 0.85920006, z: 1.7890002}
|
m_LocalPosition: {x: -1.3506, y: 0.85920006, z: 1.7890002}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 6080256564837846337}
|
m_Father: {fileID: 6080256564837846337}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!65 &5846303309610934194
|
--- !u!65 &4943084778697038234
|
||||||
BoxCollider:
|
BoxCollider:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 5675504714872131057}
|
m_GameObject: {fileID: 8388024278122535338}
|
||||||
m_Material: {fileID: 0}
|
m_Material: {fileID: 0}
|
||||||
m_IncludeLayers:
|
m_IncludeLayers:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
@ -598,6 +599,60 @@ BoxCollider:
|
|||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
m_Size: {x: 0.8292, y: 1.7184001, z: 0.25}
|
m_Size: {x: 0.8292, y: 1.7184001, z: 0.25}
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &9090342261594741530
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1311283872219557302}
|
||||||
|
- component: {fileID: 4479638352344549388}
|
||||||
|
m_Layer: 13
|
||||||
|
m_Name: Hull
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &1311283872219557302
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9090342261594741530}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 6080256564837846337}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!64 &4479638352344549388
|
||||||
|
MeshCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9090342261594741530}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 5
|
||||||
|
m_Convex: 1
|
||||||
|
m_CookingOptions: 30
|
||||||
|
m_Mesh: {fileID: 4300000, guid: ea395dd493855cb4380e20e575fe9c7a, type: 2}
|
||||||
--- !u!1001 &889884445882827272
|
--- !u!1001 &889884445882827272
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|||||||
@ -1,5 +1,59 @@
|
|||||||
%YAML 1.1
|
%YAML 1.1
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &755798211701814365
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3289842134957773730}
|
||||||
|
- component: {fileID: 3335133847209210200}
|
||||||
|
m_Layer: 13
|
||||||
|
m_Name: Hull
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &3289842134957773730
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 755798211701814365}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 7914526740304174584}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!64 &3335133847209210200
|
||||||
|
MeshCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 755798211701814365}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 5
|
||||||
|
m_Convex: 1
|
||||||
|
m_CookingOptions: 30
|
||||||
|
m_Mesh: {fileID: 4300000, guid: 04b15d5097599994ca40e5108c47d405, type: 2}
|
||||||
--- !u!1 &5770069060306824892
|
--- !u!1 &5770069060306824892
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -86,6 +140,7 @@ Transform:
|
|||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 5092411439797556592}
|
- {fileID: 5092411439797556592}
|
||||||
- {fileID: 317439038586076511}
|
- {fileID: 317439038586076511}
|
||||||
|
- {fileID: 3289842134957773730}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!114 &1041914169127860444
|
--- !u!114 &1041914169127860444
|
||||||
|
|||||||
@ -663,7 +663,9 @@ MonoBehaviour:
|
|||||||
- {fileID: 919132149155446097, guid: 0968b63166181de4894183849f28be59, type: 3}
|
- {fileID: 919132149155446097, guid: 0968b63166181de4894183849f28be59, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: cf0837d8f3727ca4e925dd918ee037b1, type: 3}
|
- {fileID: 919132149155446097, guid: cf0837d8f3727ca4e925dd918ee037b1, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: eab8044a943c16448a60765f4975df3a, type: 3}
|
- {fileID: 919132149155446097, guid: eab8044a943c16448a60765f4975df3a, type: 3}
|
||||||
|
- {fileID: 919132149155446097, guid: 981a214cd68487346b263b0a3ba67135, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: 8a0ff76a50263d344b11d6dd175b2c9e, type: 3}
|
- {fileID: 919132149155446097, guid: 8a0ff76a50263d344b11d6dd175b2c9e, type: 3}
|
||||||
|
- {fileID: 919132149155446097, guid: 5189fb7c48d7829408071170f2bc78fc, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: e3cd03ea2a112df42bd25123e8496f22, type: 3}
|
- {fileID: 919132149155446097, guid: e3cd03ea2a112df42bd25123e8496f22, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: d39333630f23ea54b96db166c1c359e1, type: 3}
|
- {fileID: 919132149155446097, guid: d39333630f23ea54b96db166c1c359e1, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: 0ff303fda6240554698e22b21377e448, type: 3}
|
- {fileID: 919132149155446097, guid: 0ff303fda6240554698e22b21377e448, type: 3}
|
||||||
@ -680,6 +682,7 @@ MonoBehaviour:
|
|||||||
- {fileID: 919132149155446097, guid: 902d03997c641fd42bcfd3acb53a8e76, type: 3}
|
- {fileID: 919132149155446097, guid: 902d03997c641fd42bcfd3acb53a8e76, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: 3a2ae5fd81ec17b448e0f0fed47bf575, type: 3}
|
- {fileID: 919132149155446097, guid: 3a2ae5fd81ec17b448e0f0fed47bf575, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: fe2a29c7e1e48bd4e884fb772e4853f3, type: 3}
|
- {fileID: 919132149155446097, guid: fe2a29c7e1e48bd4e884fb772e4853f3, type: 3}
|
||||||
|
- {fileID: 919132149155446097, guid: 408af3438629a0542aadcfc8c7ed8dcc, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: 96bd2f7804ab8a64ebbb76ba9b2db972, type: 3}
|
- {fileID: 919132149155446097, guid: 96bd2f7804ab8a64ebbb76ba9b2db972, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: dd5b48f0937675d4d980a44706bfc655, type: 3}
|
- {fileID: 919132149155446097, guid: dd5b48f0937675d4d980a44706bfc655, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: 40d1ae96668f4b84da8daed267381521, type: 3}
|
- {fileID: 919132149155446097, guid: 40d1ae96668f4b84da8daed267381521, type: 3}
|
||||||
@ -751,6 +754,8 @@ MonoBehaviour:
|
|||||||
- {fileID: 919132149155446097, guid: e7336f8e7631a2542bc4766fcb933571, type: 3}
|
- {fileID: 919132149155446097, guid: e7336f8e7631a2542bc4766fcb933571, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: f849f81218cfe394da65d40c0cb5801e, type: 3}
|
- {fileID: 919132149155446097, guid: f849f81218cfe394da65d40c0cb5801e, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: 5dff163139e14b2419ed74647da885d4, type: 3}
|
- {fileID: 919132149155446097, guid: 5dff163139e14b2419ed74647da885d4, type: 3}
|
||||||
|
- {fileID: 919132149155446097, guid: d97fcf9ef420b314f8fce5be3293138b, type: 3}
|
||||||
|
- {fileID: 919132149155446097, guid: 55c170e9b692bcc42a4a9f9f245e6340, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: 2dacd5e1fbfbad14ab1b641bdcd7b3f5, type: 3}
|
- {fileID: 919132149155446097, guid: 2dacd5e1fbfbad14ab1b641bdcd7b3f5, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: c5044de845595a444b6981ea8f736325, type: 3}
|
- {fileID: 919132149155446097, guid: c5044de845595a444b6981ea8f736325, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: cfddca4f5069b1a4c93fd6eb552deab5, type: 3}
|
- {fileID: 919132149155446097, guid: cfddca4f5069b1a4c93fd6eb552deab5, type: 3}
|
||||||
@ -760,6 +765,7 @@ MonoBehaviour:
|
|||||||
- {fileID: 919132149155446097, guid: 73f91d86fa1fa1542859e03d9ea26799, type: 3}
|
- {fileID: 919132149155446097, guid: 73f91d86fa1fa1542859e03d9ea26799, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: cb13bd0320fe69c44b7b7b8a16258cd8, type: 3}
|
- {fileID: 919132149155446097, guid: cb13bd0320fe69c44b7b7b8a16258cd8, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: 3d2a49e8711f48b4ea8741cbbe317a44, type: 3}
|
- {fileID: 919132149155446097, guid: 3d2a49e8711f48b4ea8741cbbe317a44, type: 3}
|
||||||
|
- {fileID: 919132149155446097, guid: d9392e23ba9877144b935ad9398070ca, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: 15f80561b47dbc546ac6473f3d50d932, type: 3}
|
- {fileID: 919132149155446097, guid: 15f80561b47dbc546ac6473f3d50d932, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: b5008d1a738be7145b64fb3a368a7e3a, type: 3}
|
- {fileID: 919132149155446097, guid: b5008d1a738be7145b64fb3a368a7e3a, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: e4968365a1e167447bd41505107f659d, type: 3}
|
- {fileID: 919132149155446097, guid: e4968365a1e167447bd41505107f659d, type: 3}
|
||||||
|
|||||||
@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 IST GEMÄHT
|
|||||||
Earth has grass again. Thank you for mowing with us. Die Erde hat wieder Gras. Danke, dass ihr mit uns gemäht habt.
|
Earth has grass again. Thank you for mowing with us. Die Erde hat wieder Gras. Danke, dass ihr mit uns gemäht habt.
|
||||||
The world is still yours: every machine, every belt, every robot. Die Welt gehört weiter euch: jede Maschine, jedes Band, jeder Roboter.
|
The world is still yours: every machine, every belt, every robot. Die Welt gehört weiter euch: jede Maschine, jedes Band, jeder Roboter.
|
||||||
LEAVE A REVIEW REZENSION SCHREIBEN
|
LEAVE A REVIEW REZENSION SCHREIBEN
|
||||||
|
Hold {0}: a pack of {1} for your belt ({1} kg) {0} halten: ein {1}er-Pack für den Gürtel ({1} kg)
|
||||||
|
A pack takes {0} kg of grass from your tools Ein Pack kostet {0} kg Gras aus deinen Werkzeugen
|
||||||
|
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} am Gürtel: Slot wählen und klicken, um eins zu nehmen
|
||||||
|
TAKE OFF BELT VOM GÜRTEL
|
||||||
|
{0} / {1} {0} / {1}
|
||||||
|
HERBARIA-7 HERBARIA-7
|
||||||
|
|||||||
@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 ESTÁ SEGADA
|
|||||||
Earth has grass again. Thank you for mowing with us. La Tierra vuelve a tener hierba. Gracias por segar con nosotros.
|
Earth has grass again. Thank you for mowing with us. La Tierra vuelve a tener hierba. Gracias por segar con nosotros.
|
||||||
The world is still yours: every machine, every belt, every robot. El mundo sigue siendo tuyo: cada máquina, cada cinta, cada robot.
|
The world is still yours: every machine, every belt, every robot. El mundo sigue siendo tuyo: cada máquina, cada cinta, cada robot.
|
||||||
LEAVE A REVIEW ESCRIBIR UNA RESEÑA
|
LEAVE A REVIEW ESCRIBIR UNA RESEÑA
|
||||||
|
Hold {0}: a pack of {1} for your belt ({1} kg) Mantén {0}: un pack de {1} para el cinturón ({1} kg)
|
||||||
|
A pack takes {0} kg of grass from your tools Un pack cuesta {0} kg de hierba de tus herramientas
|
||||||
|
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} en el cinturón: elige la ranura y haz clic para tomar uno
|
||||||
|
TAKE OFF BELT QUITAR DEL CINTURÓN
|
||||||
|
{0} / {1} {0} / {1}
|
||||||
|
HERBARIA-7 HERBARIA-7
|
||||||
|
|||||||
@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 EST TONDUE
|
|||||||
Earth has grass again. Thank you for mowing with us. La Terre a de nouveau de l'herbe. Merci d'avoir tondu avec nous.
|
Earth has grass again. Thank you for mowing with us. La Terre a de nouveau de l'herbe. Merci d'avoir tondu avec nous.
|
||||||
The world is still yours: every machine, every belt, every robot. Le monde est toujours à vous : chaque machine, chaque tapis, chaque robot.
|
The world is still yours: every machine, every belt, every robot. Le monde est toujours à vous : chaque machine, chaque tapis, chaque robot.
|
||||||
LEAVE A REVIEW LAISSER UNE ÉVALUATION
|
LEAVE A REVIEW LAISSER UNE ÉVALUATION
|
||||||
|
Hold {0}: a pack of {1} for your belt ({1} kg) Maintiens {0} : un pack de {1} pour ta ceinture ({1} kg)
|
||||||
|
A pack takes {0} kg of grass from your tools Un pack coûte {0} kg d'herbe de tes outils
|
||||||
|
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} à ta ceinture : choisis l'emplacement et clique pour en prendre un
|
||||||
|
TAKE OFF BELT RETIRER
|
||||||
|
{0} / {1} {0} / {1}
|
||||||
|
HERBARIA-7 HERBARIA-7
|
||||||
|
|||||||
@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 È FALCIATO
|
|||||||
Earth has grass again. Thank you for mowing with us. La Terra ha di nuovo l'erba. Grazie per aver falciato con noi.
|
Earth has grass again. Thank you for mowing with us. La Terra ha di nuovo l'erba. Grazie per aver falciato con noi.
|
||||||
The world is still yours: every machine, every belt, every robot. Il mondo è ancora tuo: ogni macchina, ogni nastro, ogni robot.
|
The world is still yours: every machine, every belt, every robot. Il mondo è ancora tuo: ogni macchina, ogni nastro, ogni robot.
|
||||||
LEAVE A REVIEW SCRIVI UNA RECENSIONE
|
LEAVE A REVIEW SCRIVI UNA RECENSIONE
|
||||||
|
Hold {0}: a pack of {1} for your belt ({1} kg) Tieni premuto {0}: una confezione da {1} per la cintura ({1} kg)
|
||||||
|
A pack takes {0} kg of grass from your tools Una confezione costa {0} kg d'erba dai tuoi attrezzi
|
||||||
|
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} in cintura: scegli lo slot e clicca per prenderne uno
|
||||||
|
TAKE OFF BELT TOGLI DALLA CINTURA
|
||||||
|
{0} / {1} {0} / {1}
|
||||||
|
HERBARIA-7 HERBARIA-7
|
||||||
|
|||||||
@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 刈り取り完了
|
|||||||
Earth has grass again. Thank you for mowing with us. 地球に草が戻った。一緒に刈ってくれてありがとう。
|
Earth has grass again. Thank you for mowing with us. 地球に草が戻った。一緒に刈ってくれてありがとう。
|
||||||
The world is still yours: every machine, every belt, every robot. 世界はまだあなたのもの。すべての機械も、ベルトも、ロボットも。
|
The world is still yours: every machine, every belt, every robot. 世界はまだあなたのもの。すべての機械も、ベルトも、ロボットも。
|
||||||
LEAVE A REVIEW レビューを書く
|
LEAVE A REVIEW レビューを書く
|
||||||
|
Hold {0}: a pack of {1} for your belt ({1} kg) {0}長押し:ベルト用の{1}個パック({1} kg)
|
||||||
|
A pack takes {0} kg of grass from your tools パックには道具の草が{0} kg必要
|
||||||
|
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} をベルトに:スロットを選んでクリックで1つ使う
|
||||||
|
TAKE OFF BELT ベルトから外す
|
||||||
|
{0} / {1} {0} / {1}
|
||||||
|
HERBARIA-7 HERBARIA-7
|
||||||
|
|||||||
@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 베기 완료
|
|||||||
Earth has grass again. Thank you for mowing with us. 지구에 다시 풀이 자라요. 함께 풀을 베어 줘서 고마워요.
|
Earth has grass again. Thank you for mowing with us. 지구에 다시 풀이 자라요. 함께 풀을 베어 줘서 고마워요.
|
||||||
The world is still yours: every machine, every belt, every robot. 세상은 여전히 당신의 것이에요. 모든 기계, 모든 벨트, 모든 로봇까지.
|
The world is still yours: every machine, every belt, every robot. 세상은 여전히 당신의 것이에요. 모든 기계, 모든 벨트, 모든 로봇까지.
|
||||||
LEAVE A REVIEW 평가 작성
|
LEAVE A REVIEW 평가 작성
|
||||||
|
Hold {0}: a pack of {1} for your belt ({1} kg) {0} 길게 누르기: 벨트용 {1}개 팩 ({1} kg)
|
||||||
|
A pack takes {0} kg of grass from your tools 팩은 도구의 풀 {0} kg이 필요합니다
|
||||||
|
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} 벨트에 장착: 슬롯을 고르고 클릭하면 하나 사용
|
||||||
|
TAKE OFF BELT 벨트에서 빼기
|
||||||
|
{0} / {1} {0} / {1}
|
||||||
|
HERBARIA-7 HERBARIA-7
|
||||||
|
|||||||
@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 SKOSZONA
|
|||||||
Earth has grass again. Thank you for mowing with us. Ziemia znów ma trawę. Dziękujemy, że kosiliście z nami.
|
Earth has grass again. Thank you for mowing with us. Ziemia znów ma trawę. Dziękujemy, że kosiliście z nami.
|
||||||
The world is still yours: every machine, every belt, every robot. Świat wciąż należy do was: każda maszyna, każda taśma, każdy robot.
|
The world is still yours: every machine, every belt, every robot. Świat wciąż należy do was: każda maszyna, każda taśma, każdy robot.
|
||||||
LEAVE A REVIEW NAPISZ RECENZJĘ
|
LEAVE A REVIEW NAPISZ RECENZJĘ
|
||||||
|
Hold {0}: a pack of {1} for your belt ({1} kg) Przytrzymaj {0}: paczka {1} szt. na pas ({1} kg)
|
||||||
|
A pack takes {0} kg of grass from your tools Paczka kosztuje {0} kg trawy z twoich narzędzi
|
||||||
|
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} na pasie: wybierz slot i kliknij, by wziąć jedno
|
||||||
|
TAKE OFF BELT ZDEJMIJ Z PASA
|
||||||
|
{0} / {1} {0} / {1}
|
||||||
|
HERBARIA-7 HERBARIA-7
|
||||||
|
|||||||
@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 ESTÁ CORTADO
|
|||||||
Earth has grass again. Thank you for mowing with us. A Terra tem grama de novo. Obrigado por cortar com a gente.
|
Earth has grass again. Thank you for mowing with us. A Terra tem grama de novo. Obrigado por cortar com a gente.
|
||||||
The world is still yours: every machine, every belt, every robot. O mundo continua seu: cada máquina, cada esteira, cada robô.
|
The world is still yours: every machine, every belt, every robot. O mundo continua seu: cada máquina, cada esteira, cada robô.
|
||||||
LEAVE A REVIEW ESCREVER UMA ANÁLISE
|
LEAVE A REVIEW ESCREVER UMA ANÁLISE
|
||||||
|
Hold {0}: a pack of {1} for your belt ({1} kg) Segure {0}: um pacote de {1} para o cinto ({1} kg)
|
||||||
|
A pack takes {0} kg of grass from your tools Um pacote custa {0} kg de grama das suas ferramentas
|
||||||
|
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} no cinto: escolha o espaço e clique para pegar um
|
||||||
|
TAKE OFF BELT TIRAR DO CINTO
|
||||||
|
{0} / {1} {0} / {1}
|
||||||
|
HERBARIA-7 HERBARIA-7
|
||||||
|
|||||||
@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 ВЫКОШЕНА
|
|||||||
Earth has grass again. Thank you for mowing with us. На Земле снова есть трава. Спасибо, что косили с нами.
|
Earth has grass again. Thank you for mowing with us. На Земле снова есть трава. Спасибо, что косили с нами.
|
||||||
The world is still yours: every machine, every belt, every robot. Мир по-прежнему ваш: все машины, все ленты, все роботы.
|
The world is still yours: every machine, every belt, every robot. Мир по-прежнему ваш: все машины, все ленты, все роботы.
|
||||||
LEAVE A REVIEW НАПИСАТЬ ОБЗОР
|
LEAVE A REVIEW НАПИСАТЬ ОБЗОР
|
||||||
|
Hold {0}: a pack of {1} for your belt ({1} kg) Удерживай {0}: упаковка из {1} на пояс ({1} кг)
|
||||||
|
A pack takes {0} kg of grass from your tools Упаковка стоит {0} кг травы из твоих инструментов
|
||||||
|
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} на поясе: выбери слот и кликни, чтобы взять одну
|
||||||
|
TAKE OFF BELT СНЯТЬ С ПОЯСА
|
||||||
|
{0} / {1} {0} / {1}
|
||||||
|
HERBARIA-7 HERBARIA-7
|
||||||
|
|||||||
@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 BİÇİLDİ
|
|||||||
Earth has grass again. Thank you for mowing with us. Dünya'da yeniden çim var. Bizimle biçtiğin için teşekkürler.
|
Earth has grass again. Thank you for mowing with us. Dünya'da yeniden çim var. Bizimle biçtiğin için teşekkürler.
|
||||||
The world is still yours: every machine, every belt, every robot. Dünya hâlâ senin: her makine, her bant, her robot.
|
The world is still yours: every machine, every belt, every robot. Dünya hâlâ senin: her makine, her bant, her robot.
|
||||||
LEAVE A REVIEW İNCELEME YAZ
|
LEAVE A REVIEW İNCELEME YAZ
|
||||||
|
Hold {0}: a pack of {1} for your belt ({1} kg) {0} basılı tut: kemer için {1}'lü paket ({1} kg)
|
||||||
|
A pack takes {0} kg of grass from your tools Bir paket aletlerindeki çimden {0} kg ister
|
||||||
|
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} kemerde: yuvayı seç ve birini almak için tıkla
|
||||||
|
TAKE OFF BELT KEMERDEN ÇIKAR
|
||||||
|
{0} / {1} {0} / {1}
|
||||||
|
HERBARIA-7 HERBARIA-7
|
||||||
|
|||||||
@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 已割完
|
|||||||
Earth has grass again. Thank you for mowing with us. 地球又有草了。感谢你和我们一起割草。
|
Earth has grass again. Thank you for mowing with us. 地球又有草了。感谢你和我们一起割草。
|
||||||
The world is still yours: every machine, every belt, every robot. 世界依然属于你:每台机器、每条传送带、每个机器人。
|
The world is still yours: every machine, every belt, every robot. 世界依然属于你:每台机器、每条传送带、每个机器人。
|
||||||
LEAVE A REVIEW 撰写评测
|
LEAVE A REVIEW 撰写评测
|
||||||
|
Hold {0}: a pack of {1} for your belt ({1} kg) 按住{0}:一包{1}个,挂上腰带({1} kg)
|
||||||
|
A pack takes {0} kg of grass from your tools 一包需要工具里的{0} kg青草
|
||||||
|
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} 已挂上腰带:选中该格并点击使用一个
|
||||||
|
TAKE OFF BELT 从腰带取下
|
||||||
|
{0} / {1} {0} / {1}
|
||||||
|
HERBARIA-7 HERBARIA-7
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -9,6 +9,113 @@ namespace GrassCutter
|
|||||||
/// -demofix: close looks at the base furniture people asked about: a deck ladder where it meets the railing, the hay
|
/// -demofix: close looks at the base furniture people asked about: a deck ladder where it meets the railing, the hay
|
||||||
/// bale on the deck, the foot of the loading ramp and the back of the upgrade console.
|
/// bale on the deck, the foot of the loading ramp and the back of the upgrade console.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <summary>The second round: intakes beside the ladders, a body dropped on the roofs, the new meadow pieces, a pack on
|
||||||
|
/// the belt, acid rain on the deck and the meadow, and the headlamp at night on a tool in hand and on a vending machine.</summary>
|
||||||
|
IEnumerator FixMore()
|
||||||
|
{
|
||||||
|
// the north side from the meadow: ladders in their openings, intakes clear of them
|
||||||
|
Me.Teleport(new Vector3(-4f, 1.4f - 1.6f, 16f));
|
||||||
|
yield return new WaitForSeconds(0.6f);
|
||||||
|
Me.LookAt(new Vector3(-4f, 0.4f, 9.5f));
|
||||||
|
yield return new WaitForSeconds(0.6f);
|
||||||
|
yield return Shot("fix_intakes_n");
|
||||||
|
Me.Teleport(new Vector3(12f, 1.4f - 1.6f, -14f));
|
||||||
|
yield return new WaitForSeconds(0.6f);
|
||||||
|
Me.LookAt(new Vector3(4f, 0.4f, -9.5f));
|
||||||
|
yield return new WaitForSeconds(0.6f);
|
||||||
|
yield return Shot("fix_intakes_s");
|
||||||
|
|
||||||
|
// dropped from above the crew cabin's ridge: where does the body come to rest?
|
||||||
|
Me.SetFlying(false);
|
||||||
|
foreach (var probe in new[] { new Vector3(-6f, 9f, 7f), new Vector3(-6.8f, 9f, 6.2f) })
|
||||||
|
{
|
||||||
|
Me.Teleport(probe);
|
||||||
|
yield return new WaitForSeconds(3f);
|
||||||
|
Log($"roof probe from {probe}: rests at y {Me.transform.position.y:0.00}, grounded {Me.Grounded}");
|
||||||
|
foreach (var h in Physics.RaycastAll(probe + Vector3.up * 5f, Vector3.down, 20f, ~0, QueryTriggerInteraction.Ignore))
|
||||||
|
Log($" ray hits {h.collider.name} ({h.collider.GetType().Name}, layer {h.collider.gameObject.layer}, enabled {h.collider.enabled}) at y {h.point.y:0.00}");
|
||||||
|
}
|
||||||
|
Me.SetFlying(true);
|
||||||
|
|
||||||
|
// the new meadow pieces, the nearest of each
|
||||||
|
var ground = FindAnyObjectByType<Ground>();
|
||||||
|
if (ground)
|
||||||
|
{
|
||||||
|
foreach (var kind in new[] { "SM_Boulders", "SM_SlabStones", "SM_Crystals", "SM_Shrooms", "SM_Stump", "SM_BulbPlants" })
|
||||||
|
{
|
||||||
|
Transform best = null;
|
||||||
|
float bd = float.MaxValue;
|
||||||
|
foreach (var t in ground.GetComponentsInChildren<Transform>(true))
|
||||||
|
{
|
||||||
|
if (!t.name.StartsWith(kind) || t.parent == null || t.parent.name.StartsWith("SM_")) continue;
|
||||||
|
float d = (t.position - Me.transform.position).sqrMagnitude;
|
||||||
|
if (d < bd) { bd = d; best = t; }
|
||||||
|
}
|
||||||
|
if (!best) { Log($"no {kind} on the ball"); continue; }
|
||||||
|
var up = Planet.Up(best.position);
|
||||||
|
var side = Vector3.Cross(up, Vector3.forward).normalized;
|
||||||
|
Me.Teleport(best.position + side * 7f + up * 1.2f);
|
||||||
|
yield return new WaitForSeconds(1.2f);
|
||||||
|
Me.LookAt(best.position + up * 1f);
|
||||||
|
yield return new WaitForSeconds(0.8f);
|
||||||
|
yield return Shot("fix_decor_" + kind.Substring(3).ToLowerInvariant());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// a pack on the belt, in hand, and one had from it
|
||||||
|
Me.BeltSlots.Value = 4;
|
||||||
|
Cheats.Run("tool all");
|
||||||
|
yield return new WaitForSeconds(0.5f);
|
||||||
|
Me.Tools.Unequip(ToolId.Hammer);
|
||||||
|
Me.Tools.Unequip(ToolId.LongScythe);
|
||||||
|
Me.Tools.AddPack(TreatId.Beer, Treats.PackSize);
|
||||||
|
Me.Teleport(new Vector3(2f, 0.05f, 2f));
|
||||||
|
yield return new WaitForSeconds(0.5f);
|
||||||
|
Me.LookAt(new Vector3(2f, 1.2f, 12f));
|
||||||
|
Me.Tools.Select(ToolId.BeerPack);
|
||||||
|
yield return new WaitForSeconds(0.6f);
|
||||||
|
yield return Shot("fix_pack_belt");
|
||||||
|
Ctl.BotUsePressed = true;
|
||||||
|
yield return null;
|
||||||
|
Ctl.BotUsePressed = false;
|
||||||
|
yield return new WaitForSeconds(1.4f);
|
||||||
|
yield return Shot("fix_pack_drink");
|
||||||
|
Log($"pack: {Me.Tools.PackLeft(TreatId.Beer)} left, belt {string.Join(", ", Me.Tools.Belt)}");
|
||||||
|
yield return new WaitForSeconds(3f);
|
||||||
|
|
||||||
|
// acid rain on the deck rail, a machine and the meadow
|
||||||
|
Cheats.Run("weather acidrain 5");
|
||||||
|
yield return new WaitForSeconds(9f);
|
||||||
|
Me.Teleport(new Vector3(-2f, 0.05f, 6f));
|
||||||
|
yield return new WaitForSeconds(0.5f);
|
||||||
|
Me.LookAt(new Vector3(-2f, -0.4f, 11f));
|
||||||
|
yield return new WaitForSeconds(1.5f);
|
||||||
|
yield return Shot("fix_acid_edge");
|
||||||
|
Me.LookAt(new Vector3(0f, 0f, 3f));
|
||||||
|
yield return new WaitForSeconds(1.5f);
|
||||||
|
yield return Shot("fix_acid_deck");
|
||||||
|
Cheats.Run("weather clear");
|
||||||
|
|
||||||
|
// night: the headlamp on the tool in hand, and on a vending machine's own lights
|
||||||
|
float pinned = Sun.Pinned;
|
||||||
|
Sun.Pinned = Mathf.Repeat(pinned + 0.5f, 1f);
|
||||||
|
yield return new WaitForSeconds(4f);
|
||||||
|
Me.Tools.Select(ToolId.Scythe);
|
||||||
|
Me.LookAt(Me.transform.position + Me.transform.forward * 5f - Me.transform.up * 1.5f);
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
yield return Shot("fix_night_tool");
|
||||||
|
var vm = VendingMachine.All.Count > 0 ? VendingMachine.All[0] : null;
|
||||||
|
if (vm)
|
||||||
|
{
|
||||||
|
Me.Teleport(vm.transform.position + vm.transform.forward * 1.6f + Vector3.up * 0.05f);
|
||||||
|
yield return new WaitForSeconds(0.6f);
|
||||||
|
Me.LookAt(vm.transform.position + Vector3.up * 1.1f);
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
yield return Shot("fix_night_vending");
|
||||||
|
}
|
||||||
|
Sun.Pinned = pinned;
|
||||||
|
}
|
||||||
|
|
||||||
IEnumerator FixLook()
|
IEnumerator FixLook()
|
||||||
{
|
{
|
||||||
BotCapture.From = null;
|
BotCapture.From = null;
|
||||||
@ -20,10 +127,10 @@ namespace GrassCutter
|
|||||||
Me.SetFlying(true);
|
Me.SetFlying(true);
|
||||||
var spots = new (string name, Vector3 eye, Vector3 at)[]
|
var spots = new (string name, Vector3 eye, Vector3 at)[]
|
||||||
{
|
{
|
||||||
("fix_ladder_a", new Vector3(-1.5f + 0.0f, 1.2f, 0f), new Vector3(-1.5f, 0.2f, 9f)),
|
("fix_ladder_a", new Vector3(-2f, 1.2f, 0f), new Vector3(-2f, 0.2f, 9f)),
|
||||||
("fix_ladder_b", new Vector3(-0.5f, 0.6f, 12f), new Vector3(-1.5f, 0.3f, 9f)),
|
("fix_ladder_b", new Vector3(-1f, 0.6f, 12f), new Vector3(-2f, 0.3f, 9f)),
|
||||||
("fix_ladder_c", new Vector3(-3.5f, 1.8f, 11.5f), new Vector3(-1.5f, 0f, 9f)),
|
("fix_ladder_c", new Vector3(-4f, 1.8f, 11.5f), new Vector3(-2f, 0f, 9f)),
|
||||||
("fix_ladder_d", new Vector3(-1.5f, -0.6f, 10.5f), new Vector3(-1.5f, 0.9f, 9f)),
|
("fix_ladder_d", new Vector3(-2f, -0.6f, 10.5f), new Vector3(-2f, 0.9f, 9f)),
|
||||||
("fix_hay", new Vector3(5.5f, 1.4f, -5.2f), new Vector3(7.8f, 0.2f, -7.6f)),
|
("fix_hay", new Vector3(5.5f, 1.4f, -5.2f), new Vector3(7.8f, 0.2f, -7.6f)),
|
||||||
("fix_hay_side", new Vector3(10.5f, 0.3f, -7.6f), new Vector3(7.8f, 0.1f, -7.6f)),
|
("fix_hay_side", new Vector3(10.5f, 0.3f, -7.6f), new Vector3(7.8f, 0.1f, -7.6f)),
|
||||||
("fix_yard", new Vector3(0f, 2.2f, -9f), new Vector3(0f, -1.2f, -20f)),
|
("fix_yard", new Vector3(0f, 2.2f, -9f), new Vector3(0f, -1.2f, -20f)),
|
||||||
@ -40,6 +147,7 @@ namespace GrassCutter
|
|||||||
yield return new WaitForSeconds(0.6f);
|
yield return new WaitForSeconds(0.6f);
|
||||||
yield return Shot(s.name);
|
yield return Shot(s.name);
|
||||||
}
|
}
|
||||||
|
yield return FixMore();
|
||||||
Log("demofix done");
|
Log("demofix done");
|
||||||
Application.Quit();
|
Application.Quit();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2355,6 +2355,17 @@ namespace GrassCutter
|
|||||||
Me.LookAt(at + new Vector3(-6f, 1.4f, 9f));
|
Me.LookAt(at + new Vector3(-6f, 1.4f, 9f));
|
||||||
yield return new WaitForSeconds(1f);
|
yield return new WaitForSeconds(1f);
|
||||||
yield return Shot($"{i}_{tool}_rest");
|
yield return Shot($"{i}_{tool}_rest");
|
||||||
|
if (tool == ToolId.Hammer)
|
||||||
|
{
|
||||||
|
// which way the head faces, turned about the handle a quarter at a time
|
||||||
|
for (int q = 1; q < 4; q++)
|
||||||
|
{
|
||||||
|
ViewModel.Spin(tool, q * 90f);
|
||||||
|
yield return new WaitForSeconds(0.3f);
|
||||||
|
yield return Shot($"{i}_{tool}_spin{q * 90}");
|
||||||
|
}
|
||||||
|
ViewModel.Spin(tool, 0f);
|
||||||
|
}
|
||||||
Me.LookAt(ground);
|
Me.LookAt(ground);
|
||||||
yield return new WaitForSeconds(0.6f);
|
yield return new WaitForSeconds(0.6f);
|
||||||
yield return Shot($"{i}_{tool}_rest_down");
|
yield return Shot($"{i}_{tool}_rest_down");
|
||||||
|
|||||||
@ -303,6 +303,51 @@ namespace GrassCutter
|
|||||||
Emit(i._drops, pos + side * s * 0.5f, (side * s * 1.8f + Planet.LocalUp * 2.4f) * (0.6f + speed01), Random.Range(0.05f, 0.09f), Clip(), 0.8f);
|
Emit(i._drops, pos + side * s * 0.5f, (side * s * 1.8f + Planet.LocalUp * 2.4f) * (0.6f + speed01), Random.Range(0.05f, 0.09f), Clip(), 0.8f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum Surface { Ground, Grass, Wood, Metal }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A raindrop landing, as the thing it lands on takes it. Soil throws up a brown fleck and a dull ring; grass shakes off
|
||||||
|
/// a spray of beads; wood beads up; metal rings out with a hard bright bounce. Acid adds its own: a fizz of steam on
|
||||||
|
/// metal, a thin brown smoke off wood, scorched flecks and a yellow puff off grass, a yellow froth on soil.
|
||||||
|
/// </summary>
|
||||||
|
public static void RainHit(Vector3 pos, Vector3 up, Surface on, Color tint, float acid)
|
||||||
|
{
|
||||||
|
var i = I;
|
||||||
|
if (!i || !i.Budget(1)) return;
|
||||||
|
var drop = new Color(tint.r, tint.g, tint.b, 0.55f);
|
||||||
|
switch (on)
|
||||||
|
{
|
||||||
|
case Surface.Ground:
|
||||||
|
Emit(i._ring, pos + up * 0.03f, Vector3.zero, Random.Range(0.12f, 0.22f), new Color(0.42f, 0.33f, 0.22f, 0.5f), 0.6f);
|
||||||
|
for (int k = 0; k < 2; k++)
|
||||||
|
Emit(i._drops, pos + up * 0.03f, up * Random.Range(1.2f, 2f) + Random.insideUnitSphere * 0.9f, Random.Range(0.025f, 0.04f), new Color(0.36f, 0.27f, 0.17f, 1f), 0.35f);
|
||||||
|
if (acid > 0.5f) Emit(i._puff, pos + up * 0.04f, up * 0.25f, Random.Range(0.1f, 0.18f), new Color(0.85f, 0.9f, 0.35f, 0.5f), 0.9f);
|
||||||
|
break;
|
||||||
|
case Surface.Grass:
|
||||||
|
for (int k = 0; k < 3; k++)
|
||||||
|
Emit(i._drops, pos + up * 0.25f + Random.insideUnitSphere * 0.1f, up * Random.Range(0.8f, 1.6f) + Random.insideUnitSphere * 1.2f, Random.Range(0.02f, 0.035f),
|
||||||
|
acid > 0.5f ? new Color(0.55f, 0.5f, 0.15f, 1f) : new Color(0.7f, 0.9f, 0.75f, 0.9f), 0.4f);
|
||||||
|
if (acid > 0.5f && Random.value < 0.4f) Emit(i._puff, pos + up * 0.3f, up * 0.35f, Random.Range(0.12f, 0.2f), new Color(0.8f, 0.85f, 0.4f, 0.4f), 1.1f);
|
||||||
|
break;
|
||||||
|
case Surface.Wood:
|
||||||
|
Emit(i._puff, pos + up * 0.02f, up * 0.3f, Random.Range(0.06f, 0.1f), drop, 0.4f);
|
||||||
|
for (int k = 0; k < 2; k++)
|
||||||
|
Emit(i._drops, pos + up * 0.02f, up * Random.Range(0.8f, 1.4f) + Random.insideUnitSphere * 0.6f, Random.Range(0.02f, 0.03f), drop, 0.3f);
|
||||||
|
if (acid > 0.5f && Random.value < 0.5f) Emit(i._puff, pos + up * 0.05f, up * Random.Range(0.4f, 0.7f), Random.Range(0.15f, 0.25f), new Color(0.35f, 0.3f, 0.2f, 0.45f), 1.4f);
|
||||||
|
break;
|
||||||
|
case Surface.Metal:
|
||||||
|
for (int k = 0; k < 4; k++)
|
||||||
|
Emit(i._drops, pos + up * 0.02f, up * Random.Range(2.2f, 3.4f) + Random.insideUnitSphere * 1.6f, Random.Range(0.018f, 0.028f), new Color(0.9f, 0.95f, 1f, 1f), 0.3f);
|
||||||
|
Emit(i._sparkle, pos + up * 0.03f, up * 0.4f, Random.Range(0.06f, 0.1f), new Color(1f, 1f, 1f, 0.8f), 0.25f);
|
||||||
|
if (acid > 0.5f)
|
||||||
|
{
|
||||||
|
Emit(i._steam, pos + up * 0.05f, up * Random.Range(0.6f, 1f), Random.Range(0.12f, 0.2f), new Color(0.88f, 1f, 0.6f, 0.45f), 0.5f);
|
||||||
|
if (Random.value < 0.25f) Emit(i._sparkle, pos + up * 0.05f, up * 1.2f + Random.insideUnitSphere, 0.05f, new Color(0.8f, 1f, 0.3f, 1f), 0.3f);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>Vaporizer / hot vent: big soft white billows.</summary>
|
/// <summary>Vaporizer / hot vent: big soft white billows.</summary>
|
||||||
public static void Steam(Vector3 pos, float amount)
|
public static void Steam(Vector3 pos, float amount)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -99,6 +99,7 @@ namespace GrassCutter
|
|||||||
public override void OnNetworkSpawn()
|
public override void OnNetworkSpawn()
|
||||||
{
|
{
|
||||||
All.Add(this);
|
All.Add(this);
|
||||||
|
IdleMotion.Attach(gameObject);
|
||||||
_run = GetComponentInChildren<BeltRun>();
|
_run = GetComponentInChildren<BeltRun>();
|
||||||
if (_run) _run.Lay(transform.position, To.Value);
|
if (_run) _run.Lay(transform.position, To.Value);
|
||||||
// grass doesn't grow through a machine
|
// grass doesn't grow through a machine
|
||||||
|
|||||||
@ -155,7 +155,7 @@ namespace GrassCutter
|
|||||||
float lean = leg == 1 || leg == 5 ? Mathf.Sin(k * Mathf.PI) * 14f : 0f;
|
float lean = leg == 1 || leg == 5 ? Mathf.Sin(k * Mathf.PI) * 14f : 0f;
|
||||||
float sway = trip.w >= 0f ? Mathf.Sin(Time.time * 2.1f + i) * 2.5f : 0f;
|
float sway = trip.w >= 0f ? Mathf.Sin(Time.time * 2.1f + i) * 2.5f : 0f;
|
||||||
d.SetPositionAndRotation(at, face * Quaternion.Euler(lean, 0f, sway));
|
d.SetPositionAndRotation(at, face * Quaternion.Euler(lean, 0f, sway));
|
||||||
float spin = trip.w >= 0f ? 1900f : 0f;
|
float spin = trip.w >= 0f ? 1900f : 70f;
|
||||||
foreach (var r in _rotors[i]) if (r) r.Rotate(up, spin * Time.deltaTime, Space.World);
|
foreach (var r in _rotors[i]) if (r) r.Rotate(up, spin * Time.deltaTime, Space.World);
|
||||||
if (_hum[i]) _hum[i].volume = trip.w >= 0f ? 0.3f * Sfx.SfxVolume : 0f;
|
if (_hum[i]) _hum[i].volume = trip.w >= 0f ? 0.3f * Sfx.SfxVolume : 0f;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,7 +5,9 @@ namespace GrassCutter
|
|||||||
{
|
{
|
||||||
/// <summary>What a player can hold: six hand tools from nail scissors to the two-handed scythe, each with its own
|
/// <summary>What a player can hold: six hand tools from nail scissors to the two-handed scythe, each with its own
|
||||||
/// grass container, and the hammer that opens the build menu.</summary>
|
/// grass container, and the hammer that opens the build menu.</summary>
|
||||||
public enum ToolId : byte { NailScissors = 0, GardenShears = 1, Sickle = 2, Scythe = 3, LongScythe = 4, WideScythe = 5, Hammer = 6, LawnMower = 7, None = 255 }
|
public enum ToolId : byte { NailScissors = 0, GardenShears = 1, Sickle = 2, Scythe = 3, LongScythe = 4, WideScythe = 5, Hammer = 6, LawnMower = 7,
|
||||||
|
/// <summary>Not tools: a pack of treats from a vending machine, taking up a belt slot until it is used up.</summary>
|
||||||
|
BeerPack = 100, CigarPack = 101, None = 255 }
|
||||||
|
|
||||||
/// <summary>Personal gear on the supply wall; shares the owned mask with the tools.</summary>
|
/// <summary>Personal gear on the supply wall; shares the owned mask with the tools.</summary>
|
||||||
public enum GearId : byte { Jetpack = 8, Boots = 9, NightVision = 10 }
|
public enum GearId : byte { Jetpack = 8, Boots = 9, NightVision = 10 }
|
||||||
@ -206,6 +208,10 @@ namespace GrassCutter
|
|||||||
public static bool IsBlade(ToolId t) => t <= ToolId.WideScythe || t == ToolId.LawnMower;
|
public static bool IsBlade(ToolId t) => t <= ToolId.WideScythe || t == ToolId.LawnMower;
|
||||||
/// <summary>Pushed along the ground instead of swung: cuts under its deck while you walk.</summary>
|
/// <summary>Pushed along the ground instead of swung: cuts under its deck while you walk.</summary>
|
||||||
public static bool IsMower(ToolId t) => t == ToolId.LawnMower;
|
public static bool IsMower(ToolId t) => t == ToolId.LawnMower;
|
||||||
|
public static bool IsPack(ToolId t) => t == ToolId.BeerPack || t == ToolId.CigarPack;
|
||||||
|
public static bool IsTool(ToolId t) => (int)t < ToolCount;
|
||||||
|
public static TreatId PackTreat(ToolId t) => t == ToolId.BeerPack ? TreatId.Beer : TreatId.Cigar;
|
||||||
|
public static ToolId PackOf(TreatId k) => k == TreatId.Beer ? ToolId.BeerPack : ToolId.CigarPack;
|
||||||
/// <summary>Scythes and shears have a basket perk each; the mower's bag only grows with the compactor.</summary>
|
/// <summary>Scythes and shears have a basket perk each; the mower's bag only grows with the compactor.</summary>
|
||||||
public static bool HasBinPerk(ToolId t) => t <= ToolId.WideScythe;
|
public static bool HasBinPerk(ToolId t) => t <= ToolId.WideScythe;
|
||||||
public static PerkId BinPerk(ToolId t) => (PerkId)((int)PerkId.BinScissors + (int)t);
|
public static PerkId BinPerk(ToolId t) => (PerkId)((int)PerkId.BinScissors + (int)t);
|
||||||
|
|||||||
@ -18,6 +18,7 @@ namespace GrassCutter
|
|||||||
go.transform.SetParent(transform, false);
|
go.transform.SetParent(transform, false);
|
||||||
go.transform.localPosition = new Vector3(0f, 2.35f, 0f);
|
go.transform.localPosition = new Vector3(0f, 2.35f, 0f);
|
||||||
_light = go.AddComponent<Light>();
|
_light = go.AddComponent<Light>();
|
||||||
|
_light.renderingLayerMask = -1;
|
||||||
_light.type = LightType.Point;
|
_light.type = LightType.Point;
|
||||||
_light.color = Warm;
|
_light.color = Warm;
|
||||||
_light.range = 9f;
|
_light.range = 9f;
|
||||||
|
|||||||
@ -168,7 +168,8 @@ namespace GrassCutter
|
|||||||
if (spin)
|
if (spin)
|
||||||
{
|
{
|
||||||
if (_spinAxis < 0) _spinAxis = BaseRot.LocalAxisFor(spin, transform.forward);
|
if (_spinAxis < 0) _spinAxis = BaseRot.LocalAxisFor(spin, transform.forward);
|
||||||
_spun += _pace * 300f * Time.deltaTime;
|
float idle = Piece.piece == PieceId.Dryer ? 18f + WeatherFx.Wind * 140f : 10f;
|
||||||
|
_spun += (_pace * 300f + idle * (1f - Mathf.Clamp01(_pace * 4f))) * Time.deltaTime;
|
||||||
var axis = _spinAxis == 0 ? Vector3.right : _spinAxis == 1 ? Vector3.up : Vector3.forward;
|
var axis = _spinAxis == 0 ? Vector3.right : _spinAxis == 1 ? Vector3.up : Vector3.forward;
|
||||||
spin.localRotation = BaseRot.Of(spin) * Quaternion.Euler(axis * _spun);
|
spin.localRotation = BaseRot.Of(spin) * Quaternion.Euler(axis * _spun);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -57,9 +57,9 @@ namespace GrassCutter
|
|||||||
|
|
||||||
void LateUpdate()
|
void LateUpdate()
|
||||||
{
|
{
|
||||||
if (!reel || !Mowing.Value) return;
|
if (!reel) return;
|
||||||
if (_reelAxis < 0) _reelAxis = BaseRot.LocalAxisFor(reel, transform.right);
|
if (_reelAxis < 0) _reelAxis = BaseRot.LocalAxisFor(reel, transform.right);
|
||||||
_spun += ReelSpeed * Time.deltaTime;
|
_spun += (Mowing.Value ? ReelSpeed : 14f) * Time.deltaTime;
|
||||||
var axis = _reelAxis == 0 ? Vector3.right : _reelAxis == 1 ? Vector3.up : Vector3.forward;
|
var axis = _reelAxis == 0 ? Vector3.right : _reelAxis == 1 ? Vector3.up : Vector3.forward;
|
||||||
reel.localRotation = BaseRot.Of(reel) * Quaternion.Euler(axis * _spun);
|
reel.localRotation = BaseRot.Of(reel) * Quaternion.Euler(axis * _spun);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,6 +6,8 @@ namespace GrassCutter
|
|||||||
public class StationTerminal : MonoBehaviour, IInteractable
|
public class StationTerminal : MonoBehaviour, IInteractable
|
||||||
{
|
{
|
||||||
public string Prompt => Loc.T("Travel terminal");
|
public string Prompt => Loc.T("Travel terminal");
|
||||||
|
|
||||||
|
void Start() => IdleMotion.Attach(gameObject);
|
||||||
public bool CanInteract => TeamState.Instance;
|
public bool CanInteract => TeamState.Instance;
|
||||||
|
|
||||||
public void Interact()
|
public void Interact()
|
||||||
|
|||||||
@ -12,6 +12,8 @@ namespace GrassCutter
|
|||||||
public static class Treats
|
public static class Treats
|
||||||
{
|
{
|
||||||
public const float CostKg = 1f;
|
public const float CostKg = 1f;
|
||||||
|
/// <summary>A pack for the belt: this many at once (for as many kilos), and a slot holds at most PackMost.</summary>
|
||||||
|
public const int PackSize = 3, PackMost = 6;
|
||||||
public const float Seconds = 150f;
|
public const float Seconds = 150f;
|
||||||
/// <summary>Grass Beer: the blade cuts this much wider.</summary>
|
/// <summary>Grass Beer: the blade cuts this much wider.</summary>
|
||||||
public const float BeerMow = 1.4f;
|
public const float BeerMow = 1.4f;
|
||||||
|
|||||||
@ -521,7 +521,7 @@ namespace GrassCutter
|
|||||||
if (reel)
|
if (reel)
|
||||||
{
|
{
|
||||||
if (_reelAxis < 0) _reelAxis = BaseRot.LocalAxisFor(reel, transform.right);
|
if (_reelAxis < 0) _reelAxis = BaseRot.LocalAxisFor(reel, transform.right);
|
||||||
reel.localRotation = BaseRot.Of(reel) * Quaternion.Euler(Axis(_reelAxis) * (Time.time * (slurp ? 260f : HasDriver ? 90f : 0f)));
|
reel.localRotation = BaseRot.Of(reel) * Quaternion.Euler(Axis(_reelAxis) * (Time.time * (slurp ? 260f : HasDriver ? 90f : 9f)));
|
||||||
}
|
}
|
||||||
if (wheels != null && wheels.Length > 0)
|
if (wheels != null && wheels.Length > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -30,7 +30,15 @@ namespace GrassCutter
|
|||||||
|
|
||||||
static readonly Color BeerGlow = new Color(1f, 0.82f, 0.32f), CigarGlow = new Color(1f, 0.55f, 0.22f), Deny = new Color(1f, 0.15f, 0.1f);
|
static readonly Color BeerGlow = new Color(1f, 0.82f, 0.32f), CigarGlow = new Color(1f, 0.55f, 0.22f), Deny = new Color(1f, 0.15f, 0.1f);
|
||||||
|
|
||||||
public string Prompt => Loc.F("{0}: 1 kg of grass from your tool. {1}, {2} for 2½ minutes", Treats.Name(kind), Treats.Boost(kind), Treats.Effect(kind));
|
public string Prompt
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
var line = Loc.F("{0}: 1 kg of grass from your tool. {1}, {2} for 2½ minutes", Treats.Name(kind), Treats.Boost(kind), Treats.Effect(kind));
|
||||||
|
var me = PlayerAgent.Local;
|
||||||
|
return me && me.Tools.PackRoom(kind) ? line + "\n" + Loc.F("Hold {0}: a pack of {1} for your belt ({1} kg)", Binds.Cap(Act.Interact), Treats.PackSize) : line;
|
||||||
|
}
|
||||||
|
}
|
||||||
public bool CanInteract => TeamState.Instance && !_busy && !TreatHand.Busy;
|
public bool CanInteract => TeamState.Instance && !_busy && !TreatHand.Busy;
|
||||||
|
|
||||||
void OnEnable() => All.Add(this);
|
void OnEnable() => All.Add(this);
|
||||||
@ -38,6 +46,8 @@ namespace GrassCutter
|
|||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
|
// its own lit sign and display: the headlamp on top of them only burnt them out
|
||||||
|
DayNight.KeepOutOfLamp(gameObject);
|
||||||
_mpb = new MaterialPropertyBlock();
|
_mpb = new MaterialPropertyBlock();
|
||||||
_signBase = kind == TreatId.Beer ? new Color(0.25f, 1f, 0.5f) : CigarGlow;
|
_signBase = kind == TreatId.Beer ? new Color(0.25f, 1f, 0.5f) : CigarGlow;
|
||||||
_displayBase = kind == TreatId.Beer ? new Color(0.45f, 1f, 0.55f) : new Color(1f, 0.72f, 0.4f);
|
_displayBase = kind == TreatId.Beer ? new Color(0.45f, 1f, 0.55f) : new Color(1f, 0.72f, 0.4f);
|
||||||
@ -64,12 +74,40 @@ namespace GrassCutter
|
|||||||
Hud.Toast(Loc.T("Bring 1 kg of grass in your tool: mow a little first"), Hud.ToastKind.Warn);
|
Hud.Toast(Loc.T("Bring 1 kg of grass in your tool: mow a little first"), Hud.ToastKind.Warn);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
StartCoroutine(Choose(me));
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>A tap has it now; held a moment, it's a pack for the belt (if there's room and grass enough).</summary>
|
||||||
|
IEnumerator Choose(PlayerAgent me)
|
||||||
|
{
|
||||||
|
_busy = true;
|
||||||
|
float held = 0f;
|
||||||
|
while (Ctl.InteractHeld && held < 0.4f) { held += Time.deltaTime; yield return null; }
|
||||||
|
_busy = false;
|
||||||
var from = me.Tools.Nozzle;
|
var from = me.Tools.Nozzle;
|
||||||
|
if (held >= 0.4f && me.Tools.PackRoom(kind))
|
||||||
|
{
|
||||||
|
float cost = Treats.CostKg * Treats.PackSize;
|
||||||
|
if (me.Tools.Carried < cost - 0.001f)
|
||||||
|
{
|
||||||
|
_deny = 1f;
|
||||||
|
Sfx.PlayAt("error", transform.position, 0.7f);
|
||||||
|
Hud.Toast(Loc.F("A pack takes {0} kg of grass from your tools", Treats.PackSize), Hud.ToastKind.Warn);
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
me.Tools.Spend(cost);
|
||||||
|
me.TreatRpc((byte)kind, transform.position, from);
|
||||||
|
_pack = true;
|
||||||
|
Play(true, from);
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
me.Tools.Spend(Treats.CostKg);
|
me.Tools.Spend(Treats.CostKg);
|
||||||
me.TreatRpc((byte)kind, transform.position, from);
|
me.TreatRpc((byte)kind, transform.position, from);
|
||||||
Play(true, from);
|
Play(true, from);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool _pack;
|
||||||
|
|
||||||
/// <summary>Run the machine's show: for the buyer it ends with the treat in their hand, for everyone else it's just the show.</summary>
|
/// <summary>Run the machine's show: for the buyer it ends with the treat in their hand, for everyone else it's just the show.</summary>
|
||||||
public void Play(bool mine, Vector3 from)
|
public void Play(bool mine, Vector3 from)
|
||||||
{
|
{
|
||||||
@ -168,7 +206,18 @@ namespace GrassCutter
|
|||||||
yield return null;
|
yield return null;
|
||||||
}
|
}
|
||||||
Destroy(item.gameObject);
|
Destroy(item.gameObject);
|
||||||
TreatHand.I?.Play(kind);
|
if (_pack)
|
||||||
|
{
|
||||||
|
_pack = false;
|
||||||
|
var me = PlayerAgent.Local;
|
||||||
|
if (me && me.Tools.AddPack(kind, Treats.PackSize))
|
||||||
|
{
|
||||||
|
Sfx.Play("plastic_grab", 0.6f, 0.9f);
|
||||||
|
Hud.Toast(Loc.F("{0} ×{1} on your belt: pick the slot and click to have one", Treats.Name(kind), me.Tools.PackLeft(kind)), Hud.ToastKind.Info);
|
||||||
|
}
|
||||||
|
else TreatHand.I?.Play(kind);
|
||||||
|
}
|
||||||
|
else TreatHand.I?.Play(kind);
|
||||||
}
|
}
|
||||||
else if (item)
|
else if (item)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -34,7 +34,8 @@ namespace GrassCutter
|
|||||||
public void Move(Vector3 delta)
|
public void Move(Vector3 delta)
|
||||||
{
|
{
|
||||||
var pos = transform.position;
|
var pos = transform.position;
|
||||||
var up = Planet.Up(pos);
|
// the body stands the way the crew member stands (the soil's up: see Planet.Level)
|
||||||
|
var up = transform.up;
|
||||||
float rise = Vector3.Dot(delta, up);
|
float rise = Vector3.Dot(delta, up);
|
||||||
var flat = delta - up * rise;
|
var flat = delta - up * rise;
|
||||||
bool was = isGrounded;
|
bool was = isGrounded;
|
||||||
|
|||||||
@ -61,6 +61,7 @@ namespace GrassCutter
|
|||||||
var bank = AssetBank.I;
|
var bank = AssetBank.I;
|
||||||
var phone = Instantiate(bank.Model("SM_Phone"), _pivot);
|
var phone = Instantiate(bank.Model("SM_Phone"), _pivot);
|
||||||
phone.name = "PhoneBody";
|
phone.name = "PhoneBody";
|
||||||
|
DayNight.KeepOutOfLamp(phone);
|
||||||
foreach (var r in phone.GetComponentsInChildren<Renderer>(true))
|
foreach (var r in phone.GetComponentsInChildren<Renderer>(true))
|
||||||
{
|
{
|
||||||
if (r.name == "Screen") { _screenR = r; r.sharedMaterial = bank.Mat("M_PhoneScreen"); }
|
if (r.name == "Screen") { _screenR = r; r.sharedMaterial = bank.Mat("M_PhoneScreen"); }
|
||||||
|
|||||||
@ -341,9 +341,8 @@ namespace GrassCutter
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
void KeepUpright(bool snap = false)
|
void KeepUpright(bool snap = false)
|
||||||
{
|
{
|
||||||
var want = Planet.Up(transform.position);
|
// the soil's own up (the deck stands on the flat round the base, so it is straight up there too)
|
||||||
var ts = Ts;
|
var want = Planet.Level(transform.position);
|
||||||
if (ts && !Flying && !_vehicle && ts.OnDeck(transform.position)) want = Vector3.up;
|
|
||||||
_stand = snap || _stand == Vector3.zero ? want : Vector3.Slerp(_stand, want, 1f - Mathf.Exp(-6f * Time.deltaTime)).normalized;
|
_stand = snap || _stand == Vector3.zero ? want : Vector3.Slerp(_stand, want, 1f - Mathf.Exp(-6f * Time.deltaTime)).normalized;
|
||||||
_frame = Quaternion.FromToRotation(_frame * Vector3.up, _stand) * _frame;
|
_frame = Quaternion.FromToRotation(_frame * Vector3.up, _stand) * _frame;
|
||||||
}
|
}
|
||||||
@ -543,7 +542,9 @@ namespace GrassCutter
|
|||||||
_climbFrom = transform.position;
|
_climbFrom = transform.position;
|
||||||
_climbTo = hit.point + up * 0.05f + fwd * 0.45f;
|
_climbTo = hit.point + up * 0.05f + fwd * 0.45f;
|
||||||
_climbT = 0f;
|
_climbT = 0f;
|
||||||
_climbOver = true;
|
// over the railing if there is one in the way; up through the opening at a ladder there isn't
|
||||||
|
var waist = up * 0.5f;
|
||||||
|
_climbOver = Physics.Linecast(transform.position + Vector3.Project(_climbTo - transform.position, up) + waist, _climbTo + waist, 1 << Physics.IgnoreRaycastLayer, QueryTriggerInteraction.Ignore);
|
||||||
Body.enabled = false;
|
Body.enabled = false;
|
||||||
Sfx.Play("splash_small", 0.5f, 1.3f);
|
Sfx.Play("splash_small", 0.5f, 1.3f);
|
||||||
Sfx.Play("jump", 0.5f, 0.85f);
|
Sfx.Play("jump", 0.5f, 0.85f);
|
||||||
|
|||||||
@ -58,7 +58,70 @@ namespace GrassCutter
|
|||||||
|
|
||||||
void Awake() { _p = GetComponent<PlayerAgent>(); }
|
void Awake() { _p = GetComponent<PlayerAgent>(); }
|
||||||
|
|
||||||
public bool Owns(ToolId t) => _p.Owns(t);
|
public bool Owns(ToolId t) => GameDefs.IsTool(t) && _p.Owns(t);
|
||||||
|
|
||||||
|
// ───────────────────────── treat packs ─────────────────────────
|
||||||
|
|
||||||
|
readonly int[] _packs = new int[2];
|
||||||
|
|
||||||
|
/// <summary>How many are left in the pack of this treat on the belt (0: none there).</summary>
|
||||||
|
public int PackLeft(TreatId k) => _packs[(int)k];
|
||||||
|
|
||||||
|
/// <summary>Room for a pack of this treat: a free slot, or the one already on the belt not yet full.</summary>
|
||||||
|
public bool PackRoom(TreatId k) => _belt.Contains(GameDefs.PackOf(k)) ? _packs[(int)k] + Treats.PackSize <= Treats.PackMost : _belt.Count < _p.BeltSlots.Value;
|
||||||
|
|
||||||
|
/// <summary>A pack from a vending machine goes on the belt (onto the one there, or into a free slot).</summary>
|
||||||
|
public bool AddPack(TreatId k, int n)
|
||||||
|
{
|
||||||
|
if (!PackRoom(k)) return false;
|
||||||
|
var id = GameDefs.PackOf(k);
|
||||||
|
if (!_belt.Contains(id)) _belt.Add(id);
|
||||||
|
_packs[(int)k] = Mathf.Min(Treats.PackMost, _packs[(int)k] + n);
|
||||||
|
_changed = true;
|
||||||
|
BeltChanged?.Invoke();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The belt's contents changed without the hand changing (a pack topped up or used).</summary>
|
||||||
|
public event Action BeltChanged;
|
||||||
|
|
||||||
|
/// <summary>One from the pack in hand: the can or the cigar comes up, the boost starts, the pack runs down.</summary>
|
||||||
|
void UsePack()
|
||||||
|
{
|
||||||
|
var k = GameDefs.PackTreat(Current);
|
||||||
|
if (_packs[(int)k] <= 0 || TreatHand.Busy || !TreatHand.I) return;
|
||||||
|
_packs[(int)k]--;
|
||||||
|
_changed = true;
|
||||||
|
// far from any machine: the others see the boost, not a machine's show
|
||||||
|
_p.TreatRpc((byte)k, new Vector3(0f, -100000f, 0f), Nozzle);
|
||||||
|
TreatHand.I.Play(k);
|
||||||
|
if (_packs[(int)k] <= 0)
|
||||||
|
{
|
||||||
|
int i = _belt.IndexOf(Current);
|
||||||
|
_belt.Remove(Current);
|
||||||
|
var next = ToolId.None;
|
||||||
|
foreach (var t in _belt) if (GameDefs.IsTool(t)) { next = t; break; }
|
||||||
|
if (next == ToolId.None && _belt.Count > 0) next = _belt[Mathf.Clamp(i, 0, _belt.Count - 1)];
|
||||||
|
Current = ToolId.None;
|
||||||
|
Select(next);
|
||||||
|
}
|
||||||
|
BeltChanged?.Invoke();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Take a tool off the belt: it stays yours (the supply wall has it), the slot is free for something else.</summary>
|
||||||
|
public void Unequip(ToolId t)
|
||||||
|
{
|
||||||
|
if (!_belt.Remove(t)) return;
|
||||||
|
_changed = true;
|
||||||
|
if (Current == t)
|
||||||
|
{
|
||||||
|
var next = ToolId.None;
|
||||||
|
foreach (var b in _belt) if (GameDefs.IsTool(b)) { next = b; break; }
|
||||||
|
if (next == ToolId.None && _belt.Count > 0) next = _belt[0];
|
||||||
|
Select(next);
|
||||||
|
}
|
||||||
|
BeltChanged?.Invoke();
|
||||||
|
}
|
||||||
public float Bin(ToolId t) => GameDefs.IsBlade(t) ? _bins[(int)t] : 0f;
|
public float Bin(ToolId t) => GameDefs.IsBlade(t) ? _bins[(int)t] : 0f;
|
||||||
public float CurrentCap => Ts && GameDefs.IsBlade(Current) ? Ts.ToolCap(Current) : 0f;
|
public float CurrentCap => Ts && GameDefs.IsBlade(Current) ? Ts.ToolCap(Current) : 0f;
|
||||||
|
|
||||||
@ -100,12 +163,13 @@ namespace GrassCutter
|
|||||||
|
|
||||||
public void Select(ToolId t)
|
public void Select(ToolId t)
|
||||||
{
|
{
|
||||||
if (t == Current || (t != ToolId.None && !Owns(t))) return;
|
if (t == Current || (t != ToolId.None && !Owns(t) && !(GameDefs.IsPack(t) && _belt.Contains(t)))) return;
|
||||||
Current = t;
|
Current = t;
|
||||||
_changed = true;
|
_changed = true;
|
||||||
if (_p.IsOwner)
|
if (_p.IsOwner)
|
||||||
{
|
{
|
||||||
_p.ToolNet.Value = (byte)t;
|
// a pack in hand shows as empty hands to the others: the can or cigar comes up when it is used
|
||||||
|
_p.ToolNet.Value = (byte)(GameDefs.IsPack(t) ? ToolId.None : t);
|
||||||
_p.Tank.Value = Bin(t);
|
_p.Tank.Value = Bin(t);
|
||||||
}
|
}
|
||||||
StopCut();
|
StopCut();
|
||||||
@ -138,6 +202,7 @@ namespace GrassCutter
|
|||||||
HandleSwitching();
|
HandleSwitching();
|
||||||
if (_changed && Time.time >= _reportAt) ReportNow();
|
if (_changed && Time.time >= _reportAt) ReportNow();
|
||||||
|
|
||||||
|
if (GameDefs.IsPack(Current) && Ctl.UsePressed && !_p.Driving.Value && !_p.Grab.Holding && !Ctl.UIOpen) UsePack();
|
||||||
bool blocked = _p.Driving.Value || _p.Grab.Holding || Ctl.UIOpen || !GameDefs.IsBlade(Current) || TreatHand.Busy;
|
bool blocked = _p.Driving.Value || _p.Grab.Holding || Ctl.UIOpen || !GameDefs.IsBlade(Current) || TreatHand.Busy;
|
||||||
if (blocked) { BladeOn = false; StopCut(); return; }
|
if (blocked) { BladeOn = false; StopCut(); return; }
|
||||||
|
|
||||||
@ -161,7 +226,9 @@ namespace GrassCutter
|
|||||||
_changed = false;
|
_changed = false;
|
||||||
_reportAt = Time.time + 5f;
|
_reportAt = Time.time + 5f;
|
||||||
var belt = new int[_belt.Count];
|
var belt = new int[_belt.Count];
|
||||||
for (int i = 0; i < belt.Length; i++) belt[i] = (int)_belt[i];
|
// a pack is kept as 1000 + 100 x its treat + how many are left in it
|
||||||
|
for (int i = 0; i < belt.Length; i++)
|
||||||
|
belt[i] = GameDefs.IsPack(_belt[i]) ? 1000 + 100 * (int)GameDefs.PackTreat(_belt[i]) + _packs[(int)GameDefs.PackTreat(_belt[i])] : (int)_belt[i];
|
||||||
_p.ReportToolsRpc(_bins, belt, (int)Current);
|
_p.ReportToolsRpc(_bins, belt, (int)Current);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -176,8 +243,18 @@ namespace GrassCutter
|
|||||||
_ownedSeen = _p.Owned.Value;
|
_ownedSeen = _p.Owned.Value;
|
||||||
for (int i = 0; i < bins.Length && i < _bins.Length; i++) _bins[i] = bins[i];
|
for (int i = 0; i < bins.Length && i < _bins.Length; i++) _bins[i] = bins[i];
|
||||||
_belt.Clear();
|
_belt.Clear();
|
||||||
|
_packs[0] = _packs[1] = 0;
|
||||||
foreach (int t in belt)
|
foreach (int t in belt)
|
||||||
if (_belt.Count < _p.BeltSlots.Value && Owns((ToolId)t) && !_belt.Contains((ToolId)t)) _belt.Add((ToolId)t);
|
{
|
||||||
|
if (_belt.Count >= _p.BeltSlots.Value) break;
|
||||||
|
if (t >= 1000)
|
||||||
|
{
|
||||||
|
int k = Mathf.Clamp((t - 1000) / 100, 0, 1), n = Mathf.Clamp((t - 1000) % 100, 0, Treats.PackMost);
|
||||||
|
var id = GameDefs.PackOf((TreatId)k);
|
||||||
|
if (n > 0 && !_belt.Contains(id)) { _belt.Add(id); _packs[k] = n; }
|
||||||
|
}
|
||||||
|
else if (Owns((ToolId)t) && !_belt.Contains((ToolId)t)) _belt.Add((ToolId)t);
|
||||||
|
}
|
||||||
var hand = _belt.Contains((ToolId)current) ? (ToolId)current : _belt.Count > 0 ? _belt[0] : ToolId.None;
|
var hand = _belt.Contains((ToolId)current) ? (ToolId)current : _belt.Count > 0 ? _belt[0] : ToolId.None;
|
||||||
Current = ToolId.None;
|
Current = ToolId.None;
|
||||||
Select(hand);
|
Select(hand);
|
||||||
|
|||||||
@ -57,6 +57,7 @@ namespace GrassCutter
|
|||||||
if (src)
|
if (src)
|
||||||
{
|
{
|
||||||
go = Instantiate(src, r.pivot);
|
go = Instantiate(src, r.pivot);
|
||||||
|
DayNight.KeepOutOfLamp(go);
|
||||||
go.transform.localPosition = Vector3.zero;
|
go.transform.localPosition = Vector3.zero;
|
||||||
go.transform.localRotation = Flip * src.transform.localRotation;
|
go.transform.localRotation = Flip * src.transform.localRotation;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,12 +22,28 @@ namespace GrassCutter
|
|||||||
// a sweep turns the whole rig around this point, by this much either way of the middle of the stroke
|
// a sweep turns the whole rig around this point, by this much either way of the middle of the stroke
|
||||||
public Vector3 pivot;
|
public Vector3 pivot;
|
||||||
public float arc, middle;
|
public float arc, middle;
|
||||||
|
// the model turned about its own handle, so the business end faces where it should
|
||||||
|
public float spin;
|
||||||
}
|
}
|
||||||
|
|
||||||
class Rig
|
class Rig
|
||||||
{
|
{
|
||||||
public Hold hold;
|
public Hold hold;
|
||||||
public Transform root, bladeA, bladeB;
|
public Transform root, bladeA, bladeB;
|
||||||
|
public Transform mesh;
|
||||||
|
public Quaternion meshRot;
|
||||||
|
public Vector3 handle;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Every tool sits this much lower and further right than its pose says: out of the middle of the view.</summary>
|
||||||
|
static readonly Vector3 Shift = new Vector3(0.045f, -0.05f, 0f);
|
||||||
|
|
||||||
|
/// <summary>Turns a tool about its handle (the longest side of its mesh), on top of its pose's own spin.</summary>
|
||||||
|
public static void Spin(ToolId id, float degrees)
|
||||||
|
{
|
||||||
|
var vm = FindAnyObjectByType<ViewModel>();
|
||||||
|
if (vm && vm._rigs.TryGetValue(id, out var r) && r.mesh)
|
||||||
|
r.mesh.localRotation = r.meshRot * Quaternion.AngleAxis(r.hold.spin + degrees, r.handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
static readonly Hold[] Holds =
|
static readonly Hold[] Holds =
|
||||||
@ -57,8 +73,8 @@ namespace GrassCutter
|
|||||||
pos = new Vector3(0.32f, -0.1f, 0.36f), euler = new Vector3(9f, -22f, 0f),
|
pos = new Vector3(0.32f, -0.1f, 0.36f), euler = new Vector3(9f, -22f, 0f),
|
||||||
usePos = new Vector3(0.32f, -0.11f, 0.36f), useEuler = new Vector3(11f, -22f, 0f),
|
usePos = new Vector3(0.32f, -0.11f, 0.36f), useEuler = new Vector3(11f, -22f, 0f),
|
||||||
pivot = new Vector3(0.1f, -0.6f, -0.1f), arc = 28f, middle = 5f },
|
pivot = new Vector3(0.1f, -0.6f, -0.1f), arc = 28f, middle = 5f },
|
||||||
// the hammer stands up beside the view, face to the left, ready to come down on what's being built
|
// the hammer stands up beside the view, face forward, ready to come down on what's being built
|
||||||
new Hold { id = ToolId.Hammer, motion = Motion.Strike, scale = 0.42f,
|
new Hold { id = ToolId.Hammer, motion = Motion.Strike, scale = 0.42f, spin = 270f,
|
||||||
pos = new Vector3(0.27f, -0.2f, 0.42f), euler = new Vector3(-68f, -10f, -8f),
|
pos = new Vector3(0.27f, -0.2f, 0.42f), euler = new Vector3(-68f, -10f, -8f),
|
||||||
usePos = new Vector3(0.27f, -0.2f, 0.42f), useEuler = new Vector3(-68f, -10f, -8f) },
|
usePos = new Vector3(0.27f, -0.2f, 0.42f), useEuler = new Vector3(-68f, -10f, -8f) },
|
||||||
};
|
};
|
||||||
@ -102,7 +118,17 @@ namespace GrassCutter
|
|||||||
if (t.name == "BladeA") r.bladeA = t;
|
if (t.name == "BladeA") r.bladeA = t;
|
||||||
else if (t.name == "BladeB") r.bladeB = t;
|
else if (t.name == "BladeB") r.bladeB = t;
|
||||||
}
|
}
|
||||||
|
var mf = model ? model.GetComponentInChildren<MeshFilter>() : null;
|
||||||
|
if (mf && mf.sharedMesh)
|
||||||
|
{
|
||||||
|
var size = mf.sharedMesh.bounds.size;
|
||||||
|
r.mesh = mf.transform;
|
||||||
|
r.meshRot = mf.transform.localRotation;
|
||||||
|
r.handle = size.x >= size.y && size.x >= size.z ? Vector3.right : size.y >= size.z ? Vector3.up : Vector3.forward;
|
||||||
|
if (h.spin != 0f) r.mesh.localRotation = r.meshRot * Quaternion.AngleAxis(h.spin, r.handle);
|
||||||
|
}
|
||||||
SetLayer(r.root, Layers.ViewModel);
|
SetLayer(r.root, Layers.ViewModel);
|
||||||
|
DayNight.KeepOutOfLamp(r.root.gameObject);
|
||||||
r.root.gameObject.SetActive(false);
|
r.root.gameObject.SetActive(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -266,8 +292,8 @@ namespace GrassCutter
|
|||||||
: _strike < 0.12f ? Mathf.Lerp(-26f, 50f, Mathf.Pow((_strike - 0.06f) / 0.06f, 2f))
|
: _strike < 0.12f ? Mathf.Lerp(-26f, 50f, Mathf.Pow((_strike - 0.06f) / 0.06f, 2f))
|
||||||
: _strike < 0.2f ? 50f + Mathf.Sin((_strike - 0.12f) / 0.08f * Mathf.PI * 3f) * 4f * (1f - (_strike - 0.12f) / 0.08f)
|
: _strike < 0.2f ? 50f + Mathf.Sin((_strike - 0.12f) / 0.08f * Mathf.PI * 3f) * 4f * (1f - (_strike - 0.12f) / 0.08f)
|
||||||
: Mathf.Lerp(50f, 0f, Mathf.SmoothStep(0f, 1f, (_strike - 0.2f) / 0.36f));
|
: Mathf.Lerp(50f, 0f, Mathf.SmoothStep(0f, 1f, (_strike - 0.2f) / 0.36f));
|
||||||
rot = Quaternion.AngleAxis(a, Vector3.forward) * rot;
|
rot = Quaternion.AngleAxis(a, Vector3.right) * rot;
|
||||||
pos += new Vector3(-0.05f, -0.035f, 0.06f) * (Mathf.Max(0f, a) / 50f) + new Vector3(0.015f, 0.03f, -0.02f) * (Mathf.Max(0f, -a) / 26f);
|
pos += new Vector3(0f, -0.04f, 0.06f) * (Mathf.Max(0f, a) / 50f) + new Vector3(0f, 0.03f, -0.03f) * (Mathf.Max(0f, -a) / 26f);
|
||||||
}
|
}
|
||||||
|
|
||||||
// a new tool comes up from below with a turn of the wrist, and settles with a little overshoot
|
// a new tool comes up from below with a turn of the wrist, and settles with a little overshoot
|
||||||
@ -275,7 +301,7 @@ namespace GrassCutter
|
|||||||
float away = Mathf.Max(low, _hide);
|
float away = Mathf.Max(low, _hide);
|
||||||
pos += new Vector3(0.04f * low, -0.35f * away, 0f);
|
pos += new Vector3(0.04f * low, -0.35f * away, 0f);
|
||||||
rot = Quaternion.Euler(25f * away, -10f * low, -35f * low) * rot;
|
rot = Quaternion.Euler(25f * away, -10f * low, -35f * low) * rot;
|
||||||
rig.root.localPosition = pos;
|
rig.root.localPosition = pos + Shift;
|
||||||
rig.root.localRotation = rot;
|
rig.root.localRotation = rot;
|
||||||
rig.root.gameObject.SetActive(_hide < 0.99f);
|
rig.root.gameObject.SetActive(_hide < 0.99f);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -415,7 +415,7 @@ namespace GrassCutter
|
|||||||
var belt = _local.Tools.Belt;
|
var belt = _local.Tools.Belt;
|
||||||
bool rebuilt = false;
|
bool rebuilt = false;
|
||||||
int slots = _local.BeltSlots.Value;
|
int slots = _local.BeltSlots.Value;
|
||||||
foreach (var t in belt) key.Append((int)t).Append(',');
|
foreach (var t in belt) key.Append((int)t).Append(GameDefs.IsPack(t) ? "x" + _local.Tools.PackLeft(GameDefs.PackTreat(t)) : "").Append(',');
|
||||||
key.Append('/').Append(slots);
|
key.Append('/').Append(slots);
|
||||||
if (key.ToString() != _beltKey)
|
if (key.ToString() != _beltKey)
|
||||||
{
|
{
|
||||||
@ -428,9 +428,19 @@ namespace GrassCutter
|
|||||||
var slot = UIK.El("slot", _hotbar);
|
var slot = UIK.El("slot", _hotbar);
|
||||||
UIK.Text((n + 1).ToString(), "slot-key t-outline", slot);
|
UIK.Text((n + 1).ToString(), "slot-key t-outline", slot);
|
||||||
if (n >= belt.Count) { slot.AddToClassList("slot-empty"); continue; }
|
if (n >= belt.Count) { slot.AddToClassList("slot-empty"); continue; }
|
||||||
var d = GameDefs.Tool(belt[n]);
|
if (GameDefs.IsPack(belt[n]))
|
||||||
UIK.Img(AssetBank.I.Tex(d.icon), "slot-icon", slot);
|
{
|
||||||
slot.tooltip = d.name;
|
var k = GameDefs.PackTreat(belt[n]);
|
||||||
|
UIK.Img(AssetBank.I.Tex(Treats.Icon(k)), "slot-icon", slot);
|
||||||
|
UIK.Text("×" + _local.Tools.PackLeft(k), "slot-count t-outline", slot);
|
||||||
|
slot.tooltip = Treats.Name(k);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var d = GameDefs.Tool(belt[n]);
|
||||||
|
UIK.Img(AssetBank.I.Tex(d.icon), "slot-icon", slot);
|
||||||
|
slot.tooltip = d.name;
|
||||||
|
}
|
||||||
_slots[belt[n]] = slot;
|
_slots[belt[n]] = slot;
|
||||||
if (animate) UIK.PopIn(slot);
|
if (animate) UIK.PopIn(slot);
|
||||||
}
|
}
|
||||||
@ -555,7 +565,7 @@ namespace GrassCutter
|
|||||||
float kg = v ? v.Load : tools.Bin(tools.Current);
|
float kg = v ? v.Load : tools.Bin(tools.Current);
|
||||||
float cap = v ? v.Capacity : tools.CurrentCap;
|
float cap = v ? v.Capacity : tools.CurrentCap;
|
||||||
bool bin = cap > 0f;
|
bool bin = cap > 0f;
|
||||||
_toolName.text = v ? v.Def.name : GameDefs.Tool(tools.Current).name;
|
_toolName.text = v ? v.Def.name : GameDefs.IsPack(tools.Current) ? Treats.Name(GameDefs.PackTreat(tools.Current)) + " ×" + tools.PackLeft(GameDefs.PackTreat(tools.Current)) : GameDefs.Tool(tools.Current).name;
|
||||||
_gauge.style.display = bin ? DisplayStyle.Flex : DisplayStyle.None;
|
_gauge.style.display = bin ? DisplayStyle.Flex : DisplayStyle.None;
|
||||||
_toolKg.style.display = bin ? DisplayStyle.Flex : DisplayStyle.None;
|
_toolKg.style.display = bin ? DisplayStyle.Flex : DisplayStyle.None;
|
||||||
if (!bin) { _toolRate.text = ""; return; }
|
if (!bin) { _toolRate.text = ""; return; }
|
||||||
@ -847,7 +857,7 @@ namespace GrassCutter
|
|||||||
string hint = null, voice = null;
|
string hint = null, voice = null;
|
||||||
var tools = _local.Tools;
|
var tools = _local.Tools;
|
||||||
float cap = tools.CurrentCap;
|
float cap = tools.CurrentCap;
|
||||||
if (tools.Belt.Count == 0)
|
if (!tools.Belt.Exists(GameDefs.IsTool))
|
||||||
{
|
{
|
||||||
hint = Loc.F("Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors ({0}).", Binds.Cap(Act.Interact));
|
hint = Loc.F("Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors ({0}).", Binds.Cap(Act.Interact));
|
||||||
voice = "asst_tools";
|
voice = "asst_tools";
|
||||||
|
|||||||
@ -165,6 +165,14 @@ namespace GrassCutter
|
|||||||
if (animate) UIK.SlideIn(_detail, new Vector2(40, 0), 0.05f, 0.3f);
|
if (animate) UIK.SlideIn(_detail, new Vector2(40, 0), 0.05f, 0.3f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>Hang a tool back on the wall: the slot is free for another tool or a pack of treats.</summary>
|
||||||
|
void OffBelt(PlayerTools tools, ToolId t)
|
||||||
|
{
|
||||||
|
var b = UIK.Btn(Loc.T("TAKE OFF BELT"), () => { tools.Unequip(t); Sfx.Play("plastic_grab", 0.5f, 0.8f); Rebuild(false); }, "btn btn-small", _detail);
|
||||||
|
b.style.alignSelf = Align.Stretch;
|
||||||
|
b.style.marginTop = 8;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>The button of the selected item: buy it, put it on the belt, or take it in hand.</summary>
|
/// <summary>The button of the selected item: buy it, put it on the belt, or take it in hand.</summary>
|
||||||
void Action()
|
void Action()
|
||||||
{
|
{
|
||||||
@ -193,11 +201,16 @@ namespace GrassCutter
|
|||||||
double price = ts.ToolPrice(GameDefs.Tool(t));
|
double price = ts.ToolPrice(GameDefs.Tool(t));
|
||||||
Buy(price <= 0d ? Loc.T("TAKE IT") : Loc.F("BUY {0}", UIK.Money(price)), price, () => ts.BuyToolRpc((byte)t));
|
Buy(price <= 0d ? Loc.T("TAKE IT") : Loc.F("BUY {0}", UIK.Money(price)), price, () => ts.BuyToolRpc((byte)t));
|
||||||
}
|
}
|
||||||
else if (tools.Current == t) Done(Loc.T("IN YOUR HANDS"));
|
else if (tools.Current == t)
|
||||||
|
{
|
||||||
|
Done(Loc.T("IN YOUR HANDS"));
|
||||||
|
OffBelt(tools, t);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var b = UIK.Btn(tools.Belt.Contains(t) ? Loc.T("TAKE IN HAND") : Loc.T("PUT ON BELT"), () => { tools.Equip(t); Sfx.Play("plastic_grab", 0.6f); Rebuild(false); }, "btn btn-green", _detail);
|
var b = UIK.Btn(tools.Belt.Contains(t) ? Loc.T("TAKE IN HAND") : Loc.T("PUT ON BELT"), () => { tools.Equip(t); Sfx.Play("plastic_grab", 0.6f); Rebuild(false); }, "btn btn-green", _detail);
|
||||||
b.style.alignSelf = Align.Stretch;
|
b.style.alignSelf = Align.Stretch;
|
||||||
|
if (tools.Belt.Contains(t)) OffBelt(tools, t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -72,6 +72,17 @@ namespace GrassCutter
|
|||||||
static readonly Color NightSky = new Color(0.13f, 0.17f, 0.3f), NightMid = new Color(0.09f, 0.12f, 0.21f), NightLow = new Color(0.05f, 0.07f, 0.11f);
|
static readonly Color NightSky = new Color(0.13f, 0.17f, 0.3f), NightMid = new Color(0.09f, 0.12f, 0.21f), NightLow = new Color(0.05f, 0.07f, 0.11f);
|
||||||
|
|
||||||
Light _sun, _lamp;
|
Light _sun, _lamp;
|
||||||
|
|
||||||
|
/// <summary>Rendering layer of things the headlamp leaves alone: whatever is held right in front of the eyes
|
||||||
|
/// and machines with lights of their own, which it only blew out to white. The sun and the lampposts still light them.</summary>
|
||||||
|
public const int NoLamp = 1 << 1;
|
||||||
|
|
||||||
|
public static void KeepOutOfLamp(GameObject root)
|
||||||
|
{
|
||||||
|
foreach (var r in root.GetComponentsInChildren<Renderer>(true)) r.renderingLayerMask = NoLamp;
|
||||||
|
// a machine's own lights still light it
|
||||||
|
foreach (var l in root.GetComponentsInChildren<Light>(true)) l.renderingLayerMask |= NoLamp;
|
||||||
|
}
|
||||||
float _sunPower;
|
float _sunPower;
|
||||||
Color _sunColor, _fog, _sky, _mid, _low;
|
Color _sunColor, _fog, _sky, _mid, _low;
|
||||||
ColorAdjustments _grade;
|
ColorAdjustments _grade;
|
||||||
@ -153,7 +164,12 @@ namespace GrassCutter
|
|||||||
_lamp.range = LampRange;
|
_lamp.range = LampRange;
|
||||||
_lamp.color = new Color(1f, 0.95f, 0.85f);
|
_lamp.color = new Color(1f, 0.95f, 0.85f);
|
||||||
_lamp.shadows = LightShadows.None;
|
_lamp.shadows = LightShadows.None;
|
||||||
|
_lamp.renderingLayerMask = ~NoLamp;
|
||||||
|
// every other light keeps lighting what the headlamp leaves alone
|
||||||
|
foreach (var l in FindObjectsByType<Light>(FindObjectsInactive.Include))
|
||||||
|
if (l != _lamp) l.renderingLayerMask |= NoLamp;
|
||||||
}
|
}
|
||||||
|
if (_sun && _sun.renderingLayerMask != -1) _sun.renderingLayerMask = -1;
|
||||||
var from = Rig ? Rig : cam.transform;
|
var from = Rig ? Rig : cam.transform;
|
||||||
_lamp.transform.SetParent(from, false);
|
_lamp.transform.SetParent(from, false);
|
||||||
// a machine's floodlights join in while you drive it
|
// a machine's floodlights join in while you drive it
|
||||||
|
|||||||
@ -8,6 +8,9 @@ namespace GrassCutter
|
|||||||
{
|
{
|
||||||
public static DeckManager Instance { get; private set; }
|
public static DeckManager Instance { get; private set; }
|
||||||
public GameObject tileModel, ladderModel;
|
public GameObject tileModel, ladderModel;
|
||||||
|
/// <summary>How far along each open edge from its middle the ladder hangs: clear of the intakes at the middle of
|
||||||
|
/// the edge tiles, in the opening the fence model leaves for it.</summary>
|
||||||
|
public const float LadderAt = 2.0f;
|
||||||
/// <summary>Deck-edge points that must stay open (the dock): the railing on that side of the tile is left out.</summary>
|
/// <summary>Deck-edge points that must stay open (the dock): the railing on that side of the tile is left out.</summary>
|
||||||
public Vector3[] gaps;
|
public Vector3[] gaps;
|
||||||
readonly Dictionary<int, DeckTileView> _views = new Dictionary<int, DeckTileView>();
|
readonly Dictionary<int, DeckTileView> _views = new Dictionary<int, DeckTileView>();
|
||||||
@ -129,10 +132,26 @@ namespace GrassCutter
|
|||||||
return bc;
|
return bc;
|
||||||
}
|
}
|
||||||
float h = 1.0f, e = S * 0.5f - 0.12f;
|
float h = 1.0f, e = S * 0.5f - 0.12f;
|
||||||
v.colN = Rail("RailN", new Vector3(0, h * 0.5f, e), new Vector3(S, h, 0.1f));
|
// each railing stops either side of its ladder: the opening the fence model leaves there. The part of the rail
|
||||||
v.colS = Rail("RailS", new Vector3(0, h * 0.5f, -e), new Vector3(S, h, 0.1f));
|
// beside the opening (the short piece out to the corner) is its own child of the main one, so SetEdges toggles both
|
||||||
v.colE = Rail("RailE", new Vector3(e, h * 0.5f, 0), new Vector3(0.1f, h, S));
|
float gapMid = LadderAt, gapHalf = 0.48f;
|
||||||
v.colW = Rail("RailW", new Vector3(-e, h * 0.5f, 0), new Vector3(0.1f, h, S));
|
float lenA = S * 0.5f + gapMid - gapHalf, lenB = S * 0.5f - gapMid - gapHalf;
|
||||||
|
BoxCollider Split(string n, Vector3 normal, Vector3 along)
|
||||||
|
{
|
||||||
|
// `along` points from the corner at -S/2 to the one at +S/2; the ladder sits at +gapMid along it
|
||||||
|
var a = Rail(n, normal * e + Vector3.up * h * 0.5f + along * (-S * 0.5f + lenA * 0.5f), Abs(along * lenA) + Abs(normal) * 0.1f + Vector3.up * h);
|
||||||
|
var b = new GameObject(n + "_b") { layer = Physics.IgnoreRaycastLayer };
|
||||||
|
b.transform.SetParent(a.transform, false);
|
||||||
|
b.transform.position = a.transform.parent.TransformPoint(normal * e + Vector3.up * h * 0.5f + along * (S * 0.5f - lenB * 0.5f));
|
||||||
|
b.AddComponent<BoxCollider>().size = Abs(along * lenB) + Abs(normal) * 0.1f + Vector3.up * h;
|
||||||
|
return a;
|
||||||
|
}
|
||||||
|
static Vector3 Abs(Vector3 v) => new Vector3(Mathf.Abs(v.x), Mathf.Abs(v.y), Mathf.Abs(v.z));
|
||||||
|
// ladder spots: N at x = -LadderAt, S at x = +LadderAt, E at z = +LadderAt, W at z = -LadderAt
|
||||||
|
v.colN = Split("RailN", Vector3.forward, Vector3.left);
|
||||||
|
v.colS = Split("RailS", Vector3.back, Vector3.right);
|
||||||
|
v.colE = Split("RailE", Vector3.right, Vector3.forward);
|
||||||
|
v.colW = Split("RailW", Vector3.left, Vector3.back);
|
||||||
// ladders down to the meadow on every open edge (shown by SetEdges)
|
// ladders down to the meadow on every open edge (shown by SetEdges)
|
||||||
if (ladderModel)
|
if (ladderModel)
|
||||||
{
|
{
|
||||||
@ -146,10 +165,10 @@ namespace GrassCutter
|
|||||||
l.transform.localRotation = Quaternion.Euler(0, yaw, 0) * ladderModel.transform.localRotation;
|
l.transform.localRotation = Quaternion.Euler(0, yaw, 0) * ladderModel.transform.localRotation;
|
||||||
}
|
}
|
||||||
// front of the ladder model hangs toward -Y Blender = +Z Unity (yaw 0 → toward +Z)
|
// front of the ladder model hangs toward -Y Blender = +Z Unity (yaw 0 → toward +Z)
|
||||||
L(new Vector3(-1.5f, 0f, S * 0.5f), 0f);
|
L(new Vector3(-LadderAt, 0f, S * 0.5f), 0f);
|
||||||
L(new Vector3(1.5f, 0f, -S * 0.5f), 180f);
|
L(new Vector3(LadderAt, 0f, -S * 0.5f), 180f);
|
||||||
L(new Vector3(S * 0.5f, 0f, 1.5f), 90f);
|
L(new Vector3(S * 0.5f, 0f, LadderAt), 90f);
|
||||||
L(new Vector3(-S * 0.5f, 0f, -1.5f), 270f);
|
L(new Vector3(-S * 0.5f, 0f, -LadderAt), 270f);
|
||||||
}
|
}
|
||||||
foreach (var t in go.GetComponentsInChildren<Transform>(true)) t.gameObject.isStatic = false;
|
foreach (var t in go.GetComponentsInChildren<Transform>(true)) t.gameObject.isStatic = false;
|
||||||
_views[packed] = v;
|
_views[packed] = v;
|
||||||
|
|||||||
@ -16,7 +16,7 @@ namespace GrassCutter
|
|||||||
void Set(GameObject rail, BoxCollider col, bool open)
|
void Set(GameObject rail, BoxCollider col, bool open)
|
||||||
{
|
{
|
||||||
if (rail) rail.SetActive(open);
|
if (rail) rail.SetActive(open);
|
||||||
if (col) col.enabled = open;
|
if (col) col.gameObject.SetActive(open); // the rail's collider and the short piece past the ladder opening
|
||||||
}
|
}
|
||||||
Set(railN, colN, n); Set(railS, colS, s); Set(railE, colE, e); Set(railW, colW, w);
|
Set(railN, colN, n); Set(railS, colS, s); Set(railE, colE, e); Set(railW, colW, w);
|
||||||
if (ladderRoot)
|
if (ladderRoot)
|
||||||
|
|||||||
@ -18,6 +18,9 @@ namespace GrassCutter
|
|||||||
public GameObject[] spires = new GameObject[3];
|
public GameObject[] spires = new GameObject[3];
|
||||||
public GameObject[] trees = new GameObject[3];
|
public GameObject[] trees = new GameObject[3];
|
||||||
public GameObject bush;
|
public GameObject bush;
|
||||||
|
/// <summary>More than trees and spires: field stones, slabs and crystals (they stay), and mushrooms, a stump and
|
||||||
|
/// bulb plants (they come down with the trees when their sector is mown clean).</summary>
|
||||||
|
public GameObject[] stones = new GameObject[0], growths = new GameObject[0];
|
||||||
|
|
||||||
const int Rings = 112, Spokes = 192, WildRocks = 800, Groves = 110;
|
const int Rings = 112, Spokes = 192, WildRocks = 800, Groves = 110;
|
||||||
const float FirstRing = 1f, RingGrowth = 1.06f, RockDraw = 1800f;
|
const float FirstRing = 1f, RingGrowth = 1.06f, RockDraw = 1800f;
|
||||||
@ -352,6 +355,49 @@ namespace GrassCutter
|
|||||||
Place(trees[rng.Next(3)], at, R(0f, 360f), R(1.2f, 2.2f), true, true);
|
Place(trees[rng.Next(3)], at, R(0f, 360f), R(1.2f, 2.2f), true, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Scatter();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Stones and odd growths over the meadow: a few round the clearing, the rest anywhere on the ball. A separate
|
||||||
|
/// sequence of its own, so the spires and the trees stand where they always have.</summary>
|
||||||
|
void Scatter()
|
||||||
|
{
|
||||||
|
var rng = new System.Random(9311);
|
||||||
|
float R(float a, float b) => a + (float)rng.NextDouble() * (b - a);
|
||||||
|
bool any = false;
|
||||||
|
foreach (var g in stones) any |= g;
|
||||||
|
foreach (var g in growths) any |= g;
|
||||||
|
if (!any) return;
|
||||||
|
GameObject Pick(GameObject[] set) => set.Length > 0 ? set[rng.Next(set.Length)] : null;
|
||||||
|
// close by, where the crew sees them from the first minute
|
||||||
|
for (int i = 0; i < 26; i++)
|
||||||
|
{
|
||||||
|
float a = R(0f, Mathf.PI * 2f), d = R(55f, 150f);
|
||||||
|
var dir = Planet.FromBase(Mathf.Cos(a) * d, Mathf.Sin(a) * d);
|
||||||
|
bool stone = rng.NextDouble() < 0.5;
|
||||||
|
var p = Pick(stone ? stones : growths);
|
||||||
|
if (!p) continue;
|
||||||
|
// the bulb plants are walked through; everything else is solid
|
||||||
|
Place(p, dir, R(0f, 360f), stone ? R(0.8f, 1.6f) : R(0.9f, 1.5f), p.name != "SM_BulbPlants", !stone);
|
||||||
|
}
|
||||||
|
int far = Mathf.Max(40, Mathf.RoundToInt(420 * Planet.Scale * Planet.Scale));
|
||||||
|
for (int i = 0; i < far; i++)
|
||||||
|
{
|
||||||
|
var dir = new Vector3(R(-1f, 1f), R(-1f, 1f), R(-1f, 1f)).normalized;
|
||||||
|
if (dir.y > 0.985f) continue;
|
||||||
|
bool stone = rng.NextDouble() < 0.55;
|
||||||
|
var p = Pick(stone ? stones : growths);
|
||||||
|
if (!p) continue;
|
||||||
|
// they come in little clusters of two or three
|
||||||
|
var e1 = Vector3.Cross(dir, Vector3.right).normalized;
|
||||||
|
var e2 = Vector3.Cross(dir, e1);
|
||||||
|
int n = rng.Next(1, 4);
|
||||||
|
for (int k = 0; k < n; k++)
|
||||||
|
{
|
||||||
|
var at = (dir + (e1 * R(-9f, 9f) + e2 * R(-9f, 9f)) / Planet.Radius).normalized;
|
||||||
|
Place(p, at, R(0f, 360f), stone ? R(0.7f, 2.2f) : R(0.8f, 1.7f), p.name != "SM_BulbPlants", !stone);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>70 m round each far station, on any ball.</summary>
|
/// <summary>70 m round each far station, on any ball.</summary>
|
||||||
|
|||||||
83
Assets/Scripts/World/IdleMotion.cs
Normal file
83
Assets/Scripts/World/IdleMotion.cs
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace GrassCutter
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The small life of things standing about: a dish panning slowly over the sky, a windsock or a whip aerial swaying (more
|
||||||
|
/// in a wind), a sensor turning, robot eyes blinking now and then. Parts are found by the names the models give them
|
||||||
|
/// (Dish, Sway*, SpinSensor, Blink*); anything another script already drives is left to it.
|
||||||
|
/// </summary>
|
||||||
|
public class IdleMotion : MonoBehaviour
|
||||||
|
{
|
||||||
|
struct Part
|
||||||
|
{
|
||||||
|
public Transform t;
|
||||||
|
public int kind; // 0 dish, 1 sway, 2 spin, 3 blink
|
||||||
|
public Vector3 axis, scale;
|
||||||
|
public float phase;
|
||||||
|
}
|
||||||
|
|
||||||
|
readonly List<Part> _parts = new List<Part>();
|
||||||
|
float _blinkAt;
|
||||||
|
|
||||||
|
/// <summary>Adds the motion to whatever under root has parts for it; nothing if there are none.</summary>
|
||||||
|
public static void Attach(GameObject root)
|
||||||
|
{
|
||||||
|
if (root && !root.GetComponent<IdleMotion>()) root.AddComponent<IdleMotion>();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
// a mowbot looks after its own spinning, swaying and blinking
|
||||||
|
bool bot = GetComponentInChildren<Mowbot>(true);
|
||||||
|
var up = transform.up;
|
||||||
|
foreach (var t in GetComponentsInChildren<Transform>(true))
|
||||||
|
{
|
||||||
|
var n = t.name;
|
||||||
|
int kind = n == "Dish" ? 0 : n.StartsWith("Sway") ? 1 : n == "SpinSensor" ? 2 : n.StartsWith("Blink") ? 3 : -1;
|
||||||
|
if (kind < 0 || (bot && kind != 0)) continue;
|
||||||
|
int ax = BaseRot.LocalAxisFor(t, kind == 1 ? transform.right : up);
|
||||||
|
var axis = ax == 0 ? Vector3.right : ax == 1 ? Vector3.up : Vector3.forward;
|
||||||
|
BaseRot.Of(t);
|
||||||
|
_parts.Add(new Part { t = t, kind = kind, axis = axis, scale = t.localScale, phase = Random.value * 20f });
|
||||||
|
}
|
||||||
|
if (_parts.Count == 0) { enabled = false; return; }
|
||||||
|
_blinkAt = Time.time + Random.Range(2f, 6f);
|
||||||
|
}
|
||||||
|
|
||||||
|
void LateUpdate()
|
||||||
|
{
|
||||||
|
float time = Time.time;
|
||||||
|
float wind = WeatherFx.Wind;
|
||||||
|
bool blink = false;
|
||||||
|
if (time >= _blinkAt)
|
||||||
|
{
|
||||||
|
blink = time < _blinkAt + 0.14f;
|
||||||
|
if (!blink) _blinkAt = time + Random.Range(2.5f, 7f);
|
||||||
|
}
|
||||||
|
foreach (var p in _parts)
|
||||||
|
{
|
||||||
|
if (!p.t) continue;
|
||||||
|
switch (p.kind)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
// a slow look round the sky, resting a while at each end
|
||||||
|
float pan = Mathf.SmoothStep(-1f, 1f, Mathf.PingPong((time + p.phase) / 9f, 1f)) * 22f;
|
||||||
|
p.t.localRotation = BaseRot.Of(p.t) * Quaternion.AngleAxis(pan, p.axis);
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
float a = (Mathf.Sin(time * 1.7f + p.phase) * 0.6f + Mathf.Sin(time * 2.9f + p.phase * 1.3f) * 0.4f) * (3f + wind * 14f);
|
||||||
|
p.t.localRotation = BaseRot.Of(p.t) * Quaternion.AngleAxis(a, p.axis);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
p.t.localRotation = BaseRot.Of(p.t) * Quaternion.AngleAxis((time + p.phase) * 45f, p.axis);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
p.t.localScale = blink ? Vector3.Scale(p.scale, Vector3.one - p.axis * 0.85f) : p.scale;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/World/IdleMotion.cs.meta
Normal file
2
Assets/Scripts/World/IdleMotion.cs.meta
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 51865f698a1604544a299f2935db2195
|
||||||
@ -69,6 +69,20 @@ namespace GrassCutter
|
|||||||
public static Quaternion Frame { get; private set; } = Quaternion.identity;
|
public static Quaternion Frame { get; private set; } = Quaternion.identity;
|
||||||
|
|
||||||
public static Vector3 Up(Vector3 p) => (p - Center).normalized;
|
public static Vector3 Up(Vector3 p) => (p - Center).normalized;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Which way the soil itself faces: straight up on the flat the base stands on, the ball's own up out past it, blended
|
||||||
|
/// across the ring where the flat bends down onto the ball. Standing to this keeps the horizon level: on a small
|
||||||
|
/// ball the flat's far side leans tens of degrees off the ball's up, and a head stood to the ball saw it tilted.
|
||||||
|
/// </summary>
|
||||||
|
public static Vector3 Level(Vector3 p)
|
||||||
|
{
|
||||||
|
var up = Up(p);
|
||||||
|
float s = Mathf.Sqrt(Mathf.Max(0f, 2f - 2f * up.y)) * Radius;
|
||||||
|
if (s >= ClearB) return up;
|
||||||
|
if (s <= ClearA) return Vector3.up;
|
||||||
|
return Vector3.Slerp(Vector3.up, up, Mathf.SmoothStep(0f, 1f, (s - ClearA) / (ClearB - ClearA))).normalized;
|
||||||
|
}
|
||||||
public static Vector3 OnSurface(Vector3 dir) => Center + dir * (Radius + HeightAt(dir));
|
public static Vector3 OnSurface(Vector3 dir) => Center + dir * (Radius + HeightAt(dir));
|
||||||
public static Vector3 Surface(Vector3 p) => OnSurface(Up(p));
|
public static Vector3 Surface(Vector3 p) => OnSurface(Up(p));
|
||||||
public static bool InNorthCap(Vector3 p) => p.y > NorthCapY;
|
public static bool InNorthCap(Vector3 p) => p.y > NorthCapY;
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
using Unity.Netcode;
|
using Unity.Netcode;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
@ -186,18 +187,64 @@ namespace GrassCutter
|
|||||||
var at = ground + Planet.Frame * new Vector3(o.x, 0f, o.y) + up * (lift + Random.Range(0f, 6f)) - windDir * 4f;
|
var at = ground + Planet.Frame * new Vector3(o.x, 0f, o.y) + up * (lift + Random.Range(0f, 6f)) - windDir * 4f;
|
||||||
Fx.Emit(_drops, at, fall * Random.Range(0.9f, 1.1f), Random.Range(0.045f, 0.07f), tint, (lift + 3f) / 24f);
|
Fx.Emit(_drops, at, fall * Random.Range(0.9f, 1.1f), Random.Range(0.045f, 0.07f), tint, (lift + 3f) / 24f);
|
||||||
}
|
}
|
||||||
_splashDue += dt * 70f * r;
|
_splashDue += dt * 110f * r;
|
||||||
for (; _splashDue >= 1f; _splashDue -= 1f)
|
for (; _splashDue >= 1f; _splashDue -= 1f)
|
||||||
{
|
{
|
||||||
|
// where a drop lands: on whatever stands there (deck, roof, machine), else on the soil
|
||||||
var o = Random.insideUnitCircle * 12f;
|
var o = Random.insideUnitCircle * 12f;
|
||||||
var at = Planet.Surface(eye + Planet.Frame * new Vector3(o.x, 0f, o.y));
|
var at = Planet.Surface(eye + Planet.Frame * new Vector3(o.x, 0f, o.y));
|
||||||
if (Vector3.Dot(eye - at, up) > 25f) break;
|
if (Vector3.Dot(eye - at, up) > 25f) break;
|
||||||
|
var on = Fx.Surface.Ground;
|
||||||
|
if (Physics.Raycast(at + up * 30f, -up, out var hit, 31f, HitMask, QueryTriggerInteraction.Ignore) && Vector3.Dot(hit.point - at, up) > -0.05f)
|
||||||
|
{
|
||||||
|
at = hit.point;
|
||||||
|
on = SurfaceOf(hit.collider);
|
||||||
|
}
|
||||||
|
else if (MowMap.Yield(at) > 0.3f) on = Fx.Surface.Grass;
|
||||||
Fx.Emit(_splash, at + up * 0.05f, up * 0.4f, Random.Range(0.08f, 0.16f), new Color(tint.r, tint.g, tint.b, 0.5f));
|
Fx.Emit(_splash, at + up * 0.05f, up * 0.4f, Random.Range(0.08f, 0.16f), new Color(tint.r, tint.g, tint.b, 0.5f));
|
||||||
|
Fx.RainHit(at, up, on, tint, Acid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Volume(ref _rainLoop, "rain_loop", r * (0.55f + Storm * 0.25f));
|
Volume(ref _rainLoop, "rain_loop", r * (0.55f + Storm * 0.25f));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const int HitMask = (1 << Layers.Default) | (1 << Layers.Build) | (1 << Layers.Vehicle) | (1 << Layers.Prop);
|
||||||
|
|
||||||
|
static readonly Dictionary<Collider, Fx.Surface> s_surface = new Dictionary<Collider, Fx.Surface>();
|
||||||
|
|
||||||
|
/// <summary>What a collider is made of, as far as rain can tell: machines and vehicles are metal, the deck and what is
|
||||||
|
/// built of planks is wood, anything else by its material's name.</summary>
|
||||||
|
static Fx.Surface SurfaceOf(Collider c)
|
||||||
|
{
|
||||||
|
if (s_surface.TryGetValue(c, out var k)) return k;
|
||||||
|
k = Fx.Surface.Ground;
|
||||||
|
if (c.gameObject.layer == Layers.Vehicle || c.GetComponentInParent<Vehicle>()) k = Fx.Surface.Metal;
|
||||||
|
else if (c.GetComponentInParent<DeckTileView>()) k = Fx.Surface.Wood;
|
||||||
|
else if (c.GetComponentInParent<BuildPiece>() is BuildPiece bp)
|
||||||
|
{
|
||||||
|
switch (bp.piece)
|
||||||
|
{
|
||||||
|
case PieceId.Wall: case PieceId.WindowWall: case PieceId.DoorWall: case PieceId.Railing: case PieceId.Fence:
|
||||||
|
case PieceId.Floor: case PieceId.FlatRoof: case PieceId.Roof: case PieceId.Stairs: case PieceId.Steps:
|
||||||
|
case PieceId.Pillar: case PieceId.Planter: case PieceId.Bench: case PieceId.Crates: case PieceId.Square: case PieceId.Hex:
|
||||||
|
k = Fx.Surface.Wood; break;
|
||||||
|
default: k = Fx.Surface.Metal; break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var r = c.GetComponent<Renderer>();
|
||||||
|
if (!r) r = c.GetComponentInParent<Renderer>();
|
||||||
|
if (!r && c.transform.parent) r = c.transform.parent.GetComponentInChildren<Renderer>();
|
||||||
|
var n = r && r.sharedMaterial ? r.sharedMaterial.name.ToLowerInvariant() : c.name.ToLowerInvariant();
|
||||||
|
if (n.Contains("metal") || n.Contains("iron") || n.Contains("steel") || n.Contains("hull") || n.Contains("tin") || n.Contains("chrome") || n.Contains("paint")) k = Fx.Surface.Metal;
|
||||||
|
else if (n.Contains("wood") || n.Contains("plank") || n.Contains("timber") || n.Contains("log") || n.Contains("bark") || n.Contains("tree") || n.Contains("hay") || n.Contains("deck")) k = Fx.Surface.Wood;
|
||||||
|
}
|
||||||
|
if (s_surface.Count > 4000) s_surface.Clear();
|
||||||
|
s_surface[c] = k;
|
||||||
|
return k;
|
||||||
|
}
|
||||||
|
|
||||||
void TickWind(Vector3 eye, Vector3 up, Vector3 windDir, float dt)
|
void TickWind(Vector3 eye, Vector3 up, Vector3 windDir, float dt)
|
||||||
{
|
{
|
||||||
float w = Mathf.Max(Wind, Storm * 0.6f);
|
float w = Mathf.Max(Wind, Storm * 0.6f);
|
||||||
|
|||||||
@ -885,6 +885,7 @@
|
|||||||
.slot-icon { width: 58px; height: 58px; }
|
.slot-icon { width: 58px; height: 58px; }
|
||||||
.slot-key { left: 0; right: 0; top: auto; bottom: -32px; font-size: 20px; -unity-text-align: middle-center; }
|
.slot-key { left: 0; right: 0; top: auto; bottom: -32px; font-size: 20px; -unity-text-align: middle-center; }
|
||||||
.slot-empty { background-color: rgba(42, 33, 20, 0.35); border-color: rgba(139, 94, 52, 0.5); }
|
.slot-empty { background-color: rgba(42, 33, 20, 0.35); border-color: rgba(139, 94, 52, 0.5); }
|
||||||
|
.slot-count { position: absolute; right: 5px; top: 2px; font-size: 18px; color: rgb(255, 236, 170); }
|
||||||
|
|
||||||
.supply-grid { flex-direction: row; flex-wrap: wrap; align-content: flex-start; justify-content: flex-start; padding: 18px; }
|
.supply-grid { flex-direction: row; flex-wrap: wrap; align-content: flex-start; justify-content: flex-start; padding: 18px; }
|
||||||
.supply-item {
|
.supply-item {
|
||||||
|
|||||||
BIN
Docs/Steam/screenshots/01_crew_rows.jpg
(Stored with Git LFS)
BIN
Docs/Steam/screenshots/01_crew_rows.jpg
(Stored with Git LFS)
Binary file not shown.
BIN
Docs/Steam/screenshots/02_crew_mowing.jpg
(Stored with Git LFS)
BIN
Docs/Steam/screenshots/02_crew_mowing.jpg
(Stored with Git LFS)
Binary file not shown.
BIN
Docs/Steam/screenshots/03_house_stilts.jpg
(Stored with Git LFS)
BIN
Docs/Steam/screenshots/03_house_stilts.jpg
(Stored with Git LFS)
Binary file not shown.
BIN
Docs/Steam/screenshots/04_drones.jpg
(Stored with Git LFS)
BIN
Docs/Steam/screenshots/04_drones.jpg
(Stored with Git LFS)
Binary file not shown.
BIN
Docs/Steam/screenshots/05_machines.jpg
(Stored with Git LFS)
BIN
Docs/Steam/screenshots/05_machines.jpg
(Stored with Git LFS)
Binary file not shown.
BIN
Docs/Steam/screenshots/06_unload_bay.jpg
(Stored with Git LFS)
BIN
Docs/Steam/screenshots/06_unload_bay.jpg
(Stored with Git LFS)
Binary file not shown.
BIN
Docs/Steam/screenshots/07_belts.jpg
(Stored with Git LFS)
BIN
Docs/Steam/screenshots/07_belts.jpg
(Stored with Git LFS)
Binary file not shown.
BIN
Docs/Steam/screenshots/08_vending.jpg
(Stored with Git LFS)
BIN
Docs/Steam/screenshots/08_vending.jpg
(Stored with Git LFS)
Binary file not shown.
BIN
Docs/Steam/screenshots/09_beer_first_person.jpg
(Stored with Git LFS)
BIN
Docs/Steam/screenshots/09_beer_first_person.jpg
(Stored with Git LFS)
Binary file not shown.
BIN
Docs/Steam/screenshots/10_boosted_mowing.jpg
(Stored with Git LFS)
BIN
Docs/Steam/screenshots/10_boosted_mowing.jpg
(Stored with Git LFS)
Binary file not shown.
BIN
Docs/Steam/screenshots/11_acid_rain.jpg
(Stored with Git LFS)
BIN
Docs/Steam/screenshots/11_acid_rain.jpg
(Stored with Git LFS)
Binary file not shown.
BIN
Docs/Steam/screenshots/12_ufo.jpg
(Stored with Git LFS)
BIN
Docs/Steam/screenshots/12_ufo.jpg
(Stored with Git LFS)
Binary file not shown.
BIN
Docs/Steam/screenshots/13_house_night.jpg
(Stored with Git LFS)
BIN
Docs/Steam/screenshots/13_house_night.jpg
(Stored with Git LFS)
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user