Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·originates fromworld 47b50fcd-5…

cameraCollision

The hangout's follow-camera pull-in, for small furnished rooms. `HangoutHud` calls `step(dt)` every frame after the builtin orbital follow rig has placed the camera at its framing. The rig's own pull-in is switched off at runtime (`cameraRadius = 0`): in 3-4 m rooms its look-ahea…

by◐Deata·posted 2d ago
What it does

cameraCollision

The hangout's follow-camera pull-in, for small furnished rooms. HangoutHud calls step(dt) every frame after the builtin orbital follow rig has placed the camera at its framing. The rig's own pull-in is switched off at runtime (cameraRadius = 0): in 3-4 m rooms its look-ahead sweeps kept finding walls and furniture, and the over-the-head aim lift (HangoutHud.frameOverHead) moved the sweep's pivot, which the look-ahead read as motion, so the camera kept snapping to the player's head.

What it does:

  • sweeps a 0.12 m sphere from the aim point to the framed camera position, past every player's avatar;
  • blocks on architecture whatever its size (any collider under a *shell* or a *door_leaf*: walls, wall ends, the lintel over a doorway, floors, ceilings, doors) and on large furniture (largest extent >= bigLong 1.4 m and second >= bigWide 0.6 m: sofa back, bed, bookshelf, wardrobe, fridge); triggers, lamps, plants, the coffee table, side tables, desks, chairs, consoles and pads are looked through;
  • never lets the camera rest inside a looked-through prop: it stops in front of the nearest one that would hold it;
  • keeps the aim point under a ceiling when the player stands on furniture;
  • comes in at once (never a frame through a wall), holds hold 0.35 s once clear, then eases out over outTime 0.45 s; a gain inside deadband is ignored so it does not pump.

API: step(dt), seeThrough(entityId), forget() (drop cached verdicts after furniture changes), enabled (false hands the camera back to the rig's own pull-in, for comparisons), last (ideal/placed distance and blocker of the last frame, for diagnostics). Tunables are fields on the module table.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

strict

extentsOf(e: any) → void

argtypedescription
eany

isAvatarPart(e: any) → boolean

argtypedescription
eany

isArchitecture(e: any) → boolean

architecture always blocks, whatever the piece's size: every collider of a room or apartment shell (walls, wall ends, the lintel over a doorway, floors, ceilings) and of a door leaf

argtypedescription
eany

seeThrough(id: string) → boolean

Whether the camera looks through the collider on entity `id`.

argtypedescription
idstring

avatarsExclude( ) → void

room(ax: number, ay: number, az: number, ux: number, uy: number, uz: number, full: number) → void

distance along the unit line from (ax, ay, az) the camera has room for, passing everything it looks through; `full` when nothing blocks

argtypedescription
axnumber
aynumber
aznumber
uxnumber
uynumber
uznumber
fullnumber

clearAt(x: number, y: number, z: number) → boolean

whether the camera's sphere at a point stands clear of every collider but the avatars' (a see-through prop may be looked through, never stood in)

argtypedescription
xnumber
ynumber
znumber

orbitRig( ) → void

reset( ) → void

step(dt: number) → void

Pull the local follow camera in for what really blocks its view. Call once a frame after the orbital rig has placed the camera.

argtypedescription
dtnumber

clearDistance(from: any, to: any) → number

How far from `from` toward `to` a camera can stand, by the same rules as the follow camera's pull-in (walls and big furniture block; the seat under a seated player is looked through). For views placed by hand, such as the seated controller view.

argtypedescription
fromany
toany

solidDistance(from: any, to: any) → number

How far from `from` toward `to` a camera can travel before any solid collider: unlike the pull-in, small furniture (a coffee table, a TV) blocks too; only trigger volumes and the players' bodies are passed.

argtypedescription
fromany
toany

forget( ) → void

Forget cached collider verdicts (after furniture moves or rebuilds).

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.