Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
d49acd8
feat(systemids): MAME and FinalBurn play under one system, arcade
XargonWan Oct 18, 2026
8f76c32
feat(grab): a big machine is taken by holding on it, with a ring that…
XargonWan Oct 18, 2026
c810d10
feat(ui): notices can float parallel to a machine's screen
XargonWan Oct 18, 2026
ea779eb
feat(ui): choose the core of a machine from its options panel
XargonWan Oct 18, 2026
f006b82
feat(arcade): a ROM is a JAMMA board, with the cover on its sticker
XargonWan Oct 18, 2026
511896e
feat(arcade): a generic arcade cabinet that plays MAME and FinalBurn …
XargonWan Oct 18, 2026
ed96fc0
feat(arcade): the cabinet's glass is its own slanted edge, the tube s…
XargonWan Oct 18, 2026
938733a
test(arcade): pin the glass on the silhouette, the tube depth and the…
XargonWan Oct 18, 2026
4880cbe
chore(claude): allow web search and GitHub fetches without a prompt
XargonWan Oct 20, 2026
d36a0ce
refactor(cables): one helper lays a captive cord, for pads and guns
XargonWan Oct 20, 2026
6581c03
feat(systemids): Neo Geo MVS and AES share one system; laserdisc and …
XargonWan Oct 20, 2026
058ea10
feat(arcade): a light gun cabinet, its guns in holsters on a cord
XargonWan Oct 20, 2026
4e9faac
feat(neogeo): the MVS cassette, the AES cabinet and the consolized MVS
XargonWan Oct 20, 2026
6035e88
feat(arcade): laserdisc and discrete-logic cabinets for Daphne and DICE
XargonWan Oct 20, 2026
c39e39b
feat(arcade): MAME's BIOS and device ROM sets show on its core's list
XargonWan Oct 20, 2026
cd2065c
feat(arcade): the bays take Neo Geo, laserdisc and DICE; keys play a …
XargonWan Oct 20, 2026
010a102
feat(arcade): a cabinet stands up, sounds from its front, and has a d…
XargonWan Oct 20, 2026
1885178
test(arcade): a suite for the cabinet variants, and the baseline that…
XargonWan Oct 20, 2026
0f0a6bf
docs(arcade): describe the cabinet family and how a variant is added
XargonWan Oct 20, 2026
a865dc8
feat(arcade): update Neo Geo labels for consistency across models
XargonWan Oct 20, 2026
e07d789
perf(arcade): take shadows from parts too small to cast one, measure …
XargonWan Oct 20, 2026
55c35ee
perf(arcade): push a joypad state and draw a stick only when either c…
XargonWan Oct 20, 2026
b8f72a6
feat(arcade): a cabinet's composite input, beside its power supply
XargonWan Oct 20, 2026
b0cfd91
feat(arcade): FinalBurn Neo is the desktop arcade default
XargonWan Oct 20, 2026
69a55b9
feat(arcade): a bay is its own object, docked in a cabinet or cabled …
XargonWan Oct 20, 2026
d7f40d5
chore(probe): a probe that loads a saved room the way the app does
XargonWan Oct 20, 2026
bd33f57
test(arcade): a suite for the bay object, and the cabinet suites foll…
XargonWan Oct 20, 2026
ff0d3da
fix(arcade): shooting cabinets on the Quest, and a whole notice
XargonWan Oct 21, 2026
5572095
feat(arcade): the game's art on the cabinet, and a Cabinet Art toggle
XargonWan Oct 21, 2026
b9ea04f
feat(arcade): a DIP Switch tab in the cabinet's menu
XargonWan Oct 21, 2026
a0b45b0
feat(scraper): a cabinet game's video and title, on demand
XargonWan Oct 22, 2026
ac948ae
feat(arcade): attract mode, a cabinet that is on shows its game
XargonWan Oct 22, 2026
c9b7d92
fix(arcade): attract looks through the real eyes, not a fixed field o…
XargonWan Oct 22, 2026
e420391
fix(arcade): every screen in view plays its video, and the sound is s…
XargonWan Oct 22, 2026
5e48325
docs(arcade): the arcade section is 2z-arc (upstream's desktop row to…
XargonWan Oct 22, 2026
8d08086
fix(cores): ethernet_adapter returns {} again (lost in the rebase's m…
XargonWan Oct 22, 2026
cd0b385
fix(arcade): update attract mode description for clarity on video dis…
XargonWan Oct 22, 2026
897ba45
feat(arcade): the power button is an ON/OFF switch in attract mode, a…
XargonWan Oct 23, 2026
3d5830e
feat(arcade): games with a disc (CHD): RomM pairs them, the JAMMA bay…
XargonWan Oct 24, 2026
938127f
feat(arcade): deck buttons stand in a flange of their own colour
XargonWan Oct 24, 2026
3e15ef0
fix(arcade): the cabinet's pointer plate over the compartment clears …
XargonWan Oct 24, 2026
ef41e5b
fix(arcade): a disc folder RomM lists with no files in it is no disc
XargonWan Oct 24, 2026
2ceefac
feat(arcade): a disc folder RomM serves as one file lands in a folder…
XargonWan Oct 24, 2026
6d20b9a
feat(arcade): a game that will not start puts the cabinet back to att…
XargonWan Oct 24, 2026
bb9a9c3
feat(arcade): aim a held cabinet at the floor to set it down there
XargonWan Oct 24, 2026
b904386
fix(arcade): replace the disc an earlier build saved as a file named …
XargonWan Oct 24, 2026
2f1a981
feat(arcade): a disc folder already on disk is not downloaded again
XargonWan Oct 24, 2026
f8d6871
perf(arcade): a cabinet's cylinders get the sides their size can show
XargonWan Oct 24, 2026
6394697
chore(libretro-godot): the input descriptors getter
XargonWan Oct 23, 2026
5fe7873
feat(arcade): the cabinet follows the game in its bay
XargonWan Oct 23, 2026
cb66158
feat(room): seats, somewhere to sit
XargonWan Oct 23, 2026
fbdc96b
docs: the cabinet follows the game, seats
XargonWan Oct 23, 2026
1486cb5
fix(arcade): a button the game does not have takes its flange with it
XargonWan Oct 24, 2026
06a20e6
feat(room): a seat in a hand shows which way it will face
XargonWan Oct 24, 2026
aaa643b
chore(probe): the ground shot's comment says what it shows
XargonWan Oct 24, 2026
b18b832
Merge pull request #3 from XargonWan/feat/arcade-additions
XargonWan Oct 24, 2026
4c77e24
refactor(arcade): the cabinet is built from a spec by code the room c…
martinellimarco Oct 25, 2026
400daf0
feat(arcade): a coin waits until the game can count it, and RETURN gi…
martinellimarco Oct 25, 2026
f2e8a6a
fix(arcade): with no video the attract shows the game's title screen,…
martinellimarco Oct 25, 2026
b7b0905
feat(arcade): the game table says what cabinet a game came in
martinellimarco Oct 25, 2026
bec9489
fix(room): a body freed before its release settles logs no error
martinellimarco Oct 25, 2026
7b4799f
feat(arcade): the cabinet takes the shape of the game in its bay
martinellimarco Oct 25, 2026
ef11497
feat(arcade): the game's own bezel, from the player's MAME artwork
martinellimarco Oct 25, 2026
1adf37b
docs: coins that wait, the cabinet's spec and forms, bezels, odd cabi…
martinellimarco Oct 25, 2026
c793b41
chore(probe): the combo TV probe's script keeps its uid
martinellimarco Oct 25, 2026
eb49e31
fix(arcade): the grip that holds a cabinet's gun is not its SELECT
martinellimarco Oct 25, 2026
6005269
feat(arcade): a gun game's foot pedal is wired: the gun hand's A/X, S…
martinellimarco Oct 25, 2026
df9b7bf
feat(arcade): the pedal is down while the gun is held; A/X, the free …
martinellimarco Oct 25, 2026
22866ba
fix(arcade): the panels, wheels and coin buttons a morph builds work
martinellimarco Oct 25, 2026
bd1256e
refactor(arcade): the cabinet always follows the game; the Cabinet Sh…
martinellimarco Oct 25, 2026
127cf66
refactor(arcade): a held coin waits one time for every game, not a bo…
martinellimarco Oct 25, 2026
b3c4295
fix(arcade): the attract videos play a touch quieter
martinellimarco Oct 25, 2026
37f6885
refactor(arcade): no shooting cabinet to spawn; the generic one becom…
martinellimarco Oct 25, 2026
46fb8ac
feat(arcade): a monitor on its side gets a taller body, and every win…
martinellimarco Oct 25, 2026
ad890a5
feat(arcade): a three to six player cabinet is a wide cabinet, not an…
martinellimarco Oct 25, 2026
d22c53c
feat(arcade): pedals shaped like real ones, and a cockpit seat you ca…
martinellimarco Oct 25, 2026
5b0f4c0
feat(arcade): TEST and SERVICE switches in the compartment, where MAM…
martinellimarco Oct 25, 2026
9698105
feat(arcade): a rifle or an Uzi on a post is fixed to it and turns ab…
martinellimarco Oct 25, 2026
a45ecdf
feat(arcade): a headset's hands press the caps and work the sticks, w…
martinellimarco Oct 25, 2026
5da65fd
feat(arcade): Prop Cycle's bicycle, Time Traveler's deep stage and Pa…
martinellimarco Oct 26, 2026
5bc5263
docs(arcade): the particular cabinets, one by one, from MAME's own dr…
martinellimarco Oct 26, 2026
97cf34c
docs(arcade): two sentences of the cabinet catalogue said plainly
martinellimarco Oct 26, 2026
6c37665
fix(tests): three script errors that passing suites hid
martinellimarco Oct 26, 2026
c2bc8bb
test(runner): a SCRIPT ERROR in a suite that exits 0 fails the run
martinellimarco Oct 26, 2026
a6b867b
fix(arcade): every shooter becomes a gun cabinet, and a stick-typed g…
martinellimarco Oct 26, 2026
ff1421a
feat(arcade): a driving game's gear lever is the game's own: its butt…
martinellimarco Oct 26, 2026
441b7a1
feat(arcade): TEST and SERVICE start the game, read white, and have a…
martinellimarco Oct 26, 2026
f4521a9
fix(arcade): a wide cabinet's picture is a share of its body, and a m…
martinellimarco Oct 26, 2026
aaead74
feat(arcade): several screens: the frame MAME draws for them, a cabin…
martinellimarco Oct 26, 2026
8914319
feat(arcade): Panic Park's levers end in big handles, START is a big …
martinellimarco Oct 26, 2026
42fb12f
feat(arcade): sit-down cabinets: a flight cockpit with stick and thro…
martinellimarco Oct 26, 2026
02700b9
feat(arcade): a game's own memory: set aside what cannot be right, of…
martinellimarco Oct 26, 2026
8826dab
test(runner): record the arcade suites' new case counts, and list the…
martinellimarco Oct 26, 2026
9141561
fix(arcade): sit-down cabinets: the monitor stands under a hood, so t…
martinellimarco Oct 26, 2026
08b84a7
fix(arcade): Panic Park: START above the levers, a deeper deck, and a…
martinellimarco Oct 26, 2026
f57daf3
feat(arcade): the rifle's scope is bigger, and a rifle game of one sc…
martinellimarco Oct 26, 2026
c0c5300
feat(arcade): a motorbike's and a bicycle's saddle is a seat you can …
martinellimarco Oct 26, 2026
7f68de8
fix(arcade): a cabinet is set down, never thrown: let go of with the …
martinellimarco Oct 26, 2026
48d8483
feat(arcade): Lucky & Wild: a cockpit of two seats, the driver's whee…
martinellimarco Oct 26, 2026
c50b6a4
fix(arcade): the table: Taito F3's spare dials, Darius Gaiden's playe…
martinellimarco Oct 26, 2026
cdcf45b
feat(arcade): DDR Solo's stage has six panels
martinellimarco Oct 26, 2026
13050e9
feat(arcade): the rhythm games get their own controllers: beatmania's…
martinellimarco Oct 26, 2026
513b2d5
feat(arcade): a dial and a stick is a rotary joystick: the stick lean…
martinellimarco Oct 26, 2026
eadbc52
feat(arcade): the R-360 pod: G-LOC R360 and Wing War R360 sit in ring…
martinellimarco Oct 26, 2026
c07c3d0
feat(arcade): Darius and Darius II have a bench to sit on in front of…
martinellimarco Oct 26, 2026
2d88f0b
feat(arcade): Star Wars, The Empire Strikes Back and Red Baron get a …
martinellimarco Oct 26, 2026
9979f95
feat(arcade): Top Skater, Alpine Surfer, both Alpine Racers and Ski S…
martinellimarco Oct 26, 2026
7f9e403
feat(arcade): Sega's Star Wars Arcade is a bench of two seats in fron…
martinellimarco Oct 27, 2026
ff3026e
fix(arcade): World Combat's four sets are gun cabinets, and the audit…
martinellimarco Oct 27, 2026
e82e96b
refactor(arcade): the generic cabinet is called the Morphing Arcade C…
martinellimarco Oct 27, 2026
fb24d26
feat(arcade): the BIOS list is generated from MAME, with System 246/2…
martinellimarco Oct 27, 2026
70b5972
fix(arcade): a control's pointer shape is the control, so a cockpit's…
martinellimarco Oct 27, 2026
fb8602b
feat(arcade): dance stage raised to 10 cm, walked on and stood up on
martinellimarco Oct 27, 2026
4d5b362
feat(arcade): Virtua Cop 3's pedal, Golgo 13's scope sensor and a sco…
martinellimarco Oct 27, 2026
39a646d
feat(arcade): Rail Chase, Laser Ghost and Gunbuster get the guns they…
martinellimarco Oct 27, 2026
3550971
feat(arcade): Road Blasters is steered by a yoke, with one pedal and …
martinellimarco Oct 27, 2026
5ab3cd3
feat(arcade): TX-1, Buggy Boy, Race Drivin' Panorama and Driver's Eye…
martinellimarco Oct 27, 2026
b8612ad
feat(arcade): Taiko drumsticks wired to the cabinet, taken from cradl…
martinellimarco Oct 27, 2026
84ea0cf
feat(arcade): GuitarFreaks' guitars are wired to the cabinet, hang in…
martinellimarco Oct 27, 2026
376743b
feat(arcade): a bicycle's handlebars are taken by a squeeze or a trig…
martinellimarco Oct 27, 2026
655f92d
feat(arcade): a control taken in hand says what it is for, and which …
martinellimarco Oct 27, 2026
b66bff6
fix(vr): arcade and seat controls work with the laser and in hand
XargonWan Oct 27, 2026
1c32f14
feat(seat): implement SeatPointerArea for standing up from the seat a…
XargonWan Oct 27, 2026
e163e42
fix(arcade): the Quest's MAME (mamearcade) lists the BIOS and device …
martinellimarco Oct 28, 2026
1b37df4
feat(arcade): a cabinet that is switched off still has its controls w…
martinellimarco Oct 28, 2026
a059f9c
test(gb_printer): the update-row case saves its manifest into a scrat…
martinellimarco Oct 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .claude/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"permissions": {
"allow": [
"WebSearch",
"WebFetch(domain:github.com)"
]
},
"enabledPlugins": {
"meta-vr@meta-quest": true
}
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,5 @@ __pycache__/

# Local export and packaging output (APK, Linux build, AppImage).
build_out/
retroxr-release.keystore
retroxr-release.keystore.password
12 changes: 11 additions & 1 deletion CLAUDE.md

Large diffs are not rendered by default.

154 changes: 154 additions & 0 deletions RetroXR/Scenes/Objects/cables/jamma_cable.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
[gd_scene load_steps=13 format=3]

[ext_resource type="Script" path="res://Scripts/Objects/cables/jamma_cable.gd" id="1_cablescript"]
[ext_resource type="Script" path="res://Scripts/Objects/cables/link_plug.gd" id="2_plugscript"]
[ext_resource type="Script" path="res://Scripts/Objects/highlights/pickable_highlight.gd" id="3_pickhigh"]
[ext_resource type="PackedScene" uid="uid://dh8grd7s3n8kg" path="res://addons/godot-xr-tools/objects/grab_points/grab_point_snap.tscn" id="4_snapgp"]

; PLACEHOLDER GEOMETRY, for saturn_link_cable.tscn's reason: boxes are generated,
; so they carry no licence at all.
;
; A JAMMA harness plug, drawn as a flat black block 60 x 14 mm with a 50 mm contact
; nose: the edge connector a cabinet harness ends in. Both ends the same, so either end
; goes in the cabinet's back or the bay's. Derived from ilink_cable.tscn; the numbers are
; a placeholder's, not a measured connector's.

; The overmould, running BACK from the mating face -- the plug's ORIGIN, which is
; the convention every port in the room places against.
[sub_resource type="BoxMesh" id="BoxMesh_body"]
size = Vector3(0.06, 0.014, 0.03)

[sub_resource type="StandardMaterial3D" id="Mat_shell"]
albedo_color = Color(0.1, 0.1, 0.11, 1)
roughness = 0.6

; The nose, forward of the mating face. Separate from PlugTip, because RcaPlug
; derives the cord's exit from PlugTip's AABB alone.
[sub_resource type="BoxMesh" id="BoxMesh_nose"]
size = Vector3(0.05, 0.010, 0.008)

; Lightly metallic, not fully -- see saturn_link_cable.tscn.
[sub_resource type="StandardMaterial3D" id="Mat_nose"]
albedo_color = Color(0.72, 0.71, 0.69, 1)
metallic = 0.25
metallic_specular = 0.75
roughness = 0.4

; Overmould and nose together, 26 mm end to end, centred 7 mm behind the face.
[sub_resource type="BoxShape3D" id="BoxShape3D_plug"]
size = Vector3(0.06, 0.014, 0.038)

[sub_resource type="PhysicsMaterial" id="PhysMat_plug"]
bounce = 0.0
friction = 0.8

; Laser target, larger than the physics box so a beam from across the room finds
; a plug on the back of a console. Only the pointer answers it (mask 0).
[sub_resource type="BoxShape3D" id="BoxShape3D_pointer"]
size = Vector3(0.09, 0.06, 0.08)

; A 1.8 m JAMMA lead: one cord, the same plug at each end, long enough to reach a bay
; standing on the floor beside a cabinet.
[node name="JammaCable" type="Node3D"]
script = ExtResource("1_cablescript")

; -- End A --------------------------------------------------------------------
; Turned about Y so the cord trails toward the far end -- see saturn_link_cable.
[node name="PlugA0" type="RigidBody3D" parent="."]
transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, -0.7)
collision_layer = 4
collision_mask = 196613
physics_material_override = SubResource("PhysMat_plug")
mass = 0.02
linear_damp = 5.0
angular_damp = 8.0
freeze_mode = 1
script = ExtResource("2_plugscript")
connector = "jamma_plug"

[node name="CollisionShape3D" type="CollisionShape3D" parent="PlugA0"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.007)
shape = SubResource("BoxShape3D_plug")

[node name="PlugTip" type="MeshInstance3D" parent="PlugA0"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.01)
mesh = SubResource("BoxMesh_body")
surface_material_override/0 = SubResource("Mat_shell")

[node name="PlugNose" type="MeshInstance3D" parent="PlugA0"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.003)
mesh = SubResource("BoxMesh_nose")
surface_material_override/0 = SubResource("Mat_nose")

[node name="PointerArea" type="StaticBody3D" parent="PlugA0"]
collision_layer = 1048576
collision_mask = 0

[node name="CollisionShape3D" type="CollisionShape3D" parent="PlugA0/PointerArea"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.007)
shape = SubResource("BoxShape3D_pointer")

[node name="PickableHighlight" type="Node3D" parent="PlugA0"]
script = ExtResource("3_pickhigh")

[node name="SnapGrabPoint" parent="PlugA0" instance=ExtResource("4_snapgp")]
transform = Transform3D(1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0)

; -- End B --------------------------------------------------------------------
[node name="PlugB0" type="RigidBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.7)
collision_layer = 4
collision_mask = 196613
physics_material_override = SubResource("PhysMat_plug")
mass = 0.02
linear_damp = 5.0
angular_damp = 8.0
freeze_mode = 1
script = ExtResource("2_plugscript")
connector = "jamma_plug"

[node name="CollisionShape3D" type="CollisionShape3D" parent="PlugB0"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.007)
shape = SubResource("BoxShape3D_plug")

[node name="PlugTip" type="MeshInstance3D" parent="PlugB0"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.01)
mesh = SubResource("BoxMesh_body")
surface_material_override/0 = SubResource("Mat_shell")

[node name="PlugNose" type="MeshInstance3D" parent="PlugB0"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.003)
mesh = SubResource("BoxMesh_nose")
surface_material_override/0 = SubResource("Mat_nose")

[node name="PointerArea" type="StaticBody3D" parent="PlugB0"]
collision_layer = 1048576
collision_mask = 0

[node name="CollisionShape3D" type="CollisionShape3D" parent="PlugB0/PointerArea"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.007)
shape = SubResource("BoxShape3D_pointer")

[node name="PickableHighlight" type="Node3D" parent="PlugB0"]
script = ExtResource("3_pickhigh")

[node name="SnapGrabPoint" parent="PlugB0" instance=ExtResource("4_snapgp")]
transform = Transform3D(1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0)

; 60 x 30 mm = 1.80 m against 1.40 m between the plugs, so it hangs. The Saturn
; lead's solver tuning with a thicker tube: a JAMMA harness is a bundle about 14 mm across.
[node name="VerletRope" type="VerletRope" parent="."]
segment_count = 60
segment_length = 0.03
constraint_iterations = 8
bend_stiffness = 0.15
tube_radius = 0.007
tube_sides = 8
smoothing = 2
rope_color = Color(0.09, 0.09, 0.1, 1.0)
surface_collision_mask = 7
collision_radius = 0.009
self_collision = true
end_align_stiffness = 0.7
end_stiffness = 0.3
end_stiff_segments = 2
44 changes: 44 additions & 0 deletions RetroXR/Scenes/Objects/cables/jamma_port.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[gd_scene load_steps=7 format=3]

[ext_resource type="PackedScene" uid="uid://ce7vysyvondf8" path="res://addons/godot-xr-tools/objects/snap_zone.tscn" id="1_snapzone"]
[ext_resource type="Script" path="res://Scripts/Objects/cables/jamma_port.gd" id="2_portscript"]
[ext_resource type="Script" path="res://Scripts/Objects/highlights/snap_highlight.gd" id="3_snaphigh"]

; PLACEHOLDER GEOMETRY, boxes like ilink_port.tscn's: the repo ships only assets it has the right to.
; The JAMMA harness is a 56-way edge connector, here a flat black mouth 60 x 14 mm with the plug's
; own shape as the ghost. Placed so the zone sits where a seated plug's ORIGIN belongs, its mating face.

[sub_resource type="BoxMesh" id="BoxMesh_mouth"]
size = Vector3(0.06, 0.014, 0.008)

; Unshaded near-black, for the other sockets' reason: a shaded one reads as a raised block, not a hole.
[sub_resource type="StandardMaterial3D" id="Mat_mouth"]
albedo_color = Color(0.012, 0.012, 0.015, 1)
shading_mode = 0

[sub_resource type="BoxMesh" id="BoxMesh_plug_ghost"]
size = Vector3(0.06, 0.014, 0.02)

[sub_resource type="StandardMaterial3D" id="Mat_plug_ghost"]
transparency = 1
albedo_color = Color(0.2, 0.5, 1, 0.45)
emission_enabled = true
emission = Color(0, 0.15, 0.5, 1)
emission_energy_multiplier = 0.4

[node name="JammaPort" instance=ExtResource("1_snapzone")]
grab_distance = 0.06
script = ExtResource("2_portscript")

[node name="Mouth" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.004)
mesh = SubResource("BoxMesh_mouth")
surface_material_override/0 = SubResource("Mat_mouth")

[node name="SnapHighlight" type="Node3D" parent="."]
script = ExtResource("3_snaphigh")

[node name="HighlightMesh" type="MeshInstance3D" parent="SnapHighlight"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.01)
mesh = SubResource("BoxMesh_plug_ghost")
surface_material_override/0 = SubResource("Mat_plug_ghost")
119 changes: 119 additions & 0 deletions RetroXR/Scenes/Objects/furniture/seat_bed.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
[gd_scene format=3]

[ext_resource type="Script" path="res://Scripts/Objects/room/seat.gd" id="1_281ie"]
[ext_resource type="Script" path="res://Scripts/Objects/highlights/pickable_highlight.gd" id="2_olegp"]
[ext_resource type="Script" path="res://Scripts/Objects/room/seat_trigger.gd" id="3_qumq3"]

[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_dpgla"]
friction = 0.8

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_m0lul"]
albedo_color = Color(0.14, 0.14, 0.16, 1)
metallic = 0.5
roughness = 0.45

[sub_resource type="BoxMesh" id="BoxMesh_tx8jq"]
material = SubResource("StandardMaterial3D_m0lul")
size = Vector3(1.4, 0.3, 2)

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_jviab"]
albedo_color = Color(0.62, 0.2, 0.22, 1)
roughness = 0.9

[sub_resource type="BoxMesh" id="BoxMesh_th3qp"]
material = SubResource("StandardMaterial3D_jviab")
size = Vector3(1.34, 0.17, 1.94)

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ahkju"]
albedo_color = Color(0.9, 0.9, 0.92, 1)
roughness = 0.95

[sub_resource type="BoxMesh" id="BoxMesh_6e1lj"]
material = SubResource("StandardMaterial3D_ahkju")
size = Vector3(0.55, 0.1, 0.34)

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_48o0v"]
albedo_color = Color(0.52, 0.36, 0.22, 1)
roughness = 0.7

[sub_resource type="BoxMesh" id="BoxMesh_n3g38"]
material = SubResource("StandardMaterial3D_48o0v")
size = Vector3(1.4, 0.7, 0.08)

[sub_resource type="BoxShape3D" id="BoxShape3D_tu7ie"]
size = Vector3(1.4, 0.52, 2)

[sub_resource type="BoxShape3D" id="BoxShape3D_ye2b1"]
size = Vector3(1.4, 0.7, 0.08)

[sub_resource type="BoxShape3D" id="BoxShape3D_tlmjx"]
size = Vector3(1.4, 0.52, 2)

[sub_resource type="BoxShape3D" id="BoxShape3D_v48em"]
size = Vector3(1.4, 0.7, 0.08)

[sub_resource type="BoxShape3D" id="BoxShape3D_ksgfd"]
size = Vector3(1.34, 0.03, 1.94)

[node name="Seat" type="RigidBody3D" unique_id=1810067509]
collision_layer = 4
collision_mask = 196613
mass = 60.0
physics_material_override = SubResource("PhysicsMaterial_dpgla")
freeze_mode = 1
linear_damp = 5.0
angular_damp = 8.0
script = ExtResource("1_281ie")
type_id = "seat_bed"

[node name="Frame" type="MeshInstance3D" parent="." unique_id=784147928]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25, 0)
mesh = SubResource("BoxMesh_tx8jq")

[node name="Mattress" type="MeshInstance3D" parent="." unique_id=735997596]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.435, 0)
mesh = SubResource("BoxMesh_th3qp")

[node name="Pillow" type="MeshInstance3D" parent="." unique_id=652101146]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.57, 0.7)
mesh = SubResource("BoxMesh_6e1lj")

[node name="Headboard" type="MeshInstance3D" parent="." unique_id=1190905870]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.55, 1)
mesh = SubResource("BoxMesh_n3g38")

[node name="Col1" type="CollisionShape3D" parent="." unique_id=1769612234]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.26, 0)
shape = SubResource("BoxShape3D_tu7ie")

[node name="Col2" type="CollisionShape3D" parent="." unique_id=1052007604]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.55, 1)
shape = SubResource("BoxShape3D_ye2b1")

[node name="PickableHighlight" type="Node3D" parent="." unique_id=754103962]
script = ExtResource("2_olegp")

[node name="PointerArea" type="StaticBody3D" parent="." unique_id=1836640898]
collision_layer = 1048576
collision_mask = 0

[node name="Shape1" type="CollisionShape3D" parent="PointerArea" unique_id=1421598671]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.26, 0)
shape = SubResource("BoxShape3D_tlmjx")

[node name="Shape2" type="CollisionShape3D" parent="PointerArea" unique_id=1571802654]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.55, 1)
shape = SubResource("BoxShape3D_v48em")

[node name="SeatTrigger" type="Area3D" parent="." unique_id=369572473]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.525, 0)
script = ExtResource("3_qumq3")

[node name="CollisionShape3D" type="CollisionShape3D" parent="SeatTrigger" unique_id=2096826753]
shape = SubResource("BoxShape3D_ksgfd")

[node name="EyePoint" type="Marker3D" parent="." unique_id=901721670]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.66, 0.7)

[node name="StandPoint" type="Marker3D" parent="." unique_id=644896969]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.1, 0, 0)
Loading
Loading