A directional thruster's emitter is one-sided, and the catalog refuses one that fires along its push
The exhaust is born along each triangle's normal of the emitter mesh, and every Nakovalnya, Wren and starter emitter was a thin closed box, so it fired both ways along the thruster axis. The generator now writes one side: hull_source keeps of a hull source's emit mesh only the triangles facing its anchor's yaw (the exhaust), and the starter's thruster boxes carry a single exhaust face. ShipModCatalog.Bind, which Compose and ship-authoring validate both run, reads the emitter geometry from the GLB (world transform included) and refuses a directional thruster whose emitter has any face or vertex normal with a non-negative dot with the push, naming the anchor. The rule is the directional class's alone; a ring thruster would bring its own. The Nakovalnya and Wren ship.glb are regenerated through Build + Package and the starter; ship.cc, anchors, node indices and every non-emitter node are unchanged. Blender smokes and the test GLBs now give thrusters an exhaust-facing emitter and a matching Rotation. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8aff1b8789
commit
28666e3550
13 changed files with 349 additions and 29 deletions
|
|
@ -216,7 +216,12 @@ a radiator, `weapon-mount` for an energy, ballistic or launcher hardpoint. An
|
|||
internal hardpoint (reactor, sensors, shield and the rest) has no anchor, and
|
||||
an anchor taking its id is refused. A thruster's or radiator's anchor node is a
|
||||
mesh: the thruster's is not rendered and is the surface its exhaust emits from,
|
||||
the radiator's is rendered. A weapon mount is a point, and each one needs at
|
||||
the radiator's is rendered. A directional thruster's emitter is one-sided: the
|
||||
exhaust is born along each triangle's normal, so every normal must face the way
|
||||
the hardpoint's Rotation faces (opposite the push), and a closed box, which also
|
||||
fires along the push, is refused by Compose and `validate` naming the anchor. In
|
||||
the Blender kit's frame a hull source's emit mesh is cut to the side facing its
|
||||
anchor's yaw. A ring thruster would be its own class with its own rule. A weapon mount is a point, and each one needs at
|
||||
least one `weapon-muzzle` anchor whose `ParentId` is the weapon's mount id.
|
||||
`articulation` is reserved for pivots and is never a mount; no pivot is
|
||||
planned until pivots move onto `HullData`. `ShipModPlan` then maps the
|
||||
|
|
|
|||
Loading…
Reference in a new issue