Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofmodule data.module·originates fromworld 07158574-5…

defaults

Default configuration presets for the character controller. Each preset is a flat `Config` table that `CharacterController.attach` / `install` merges over with user overrides. No behaviour, no state — just constants.

byzero-proxy @ DESKTOP-DB3UJOJ·posted 2mo ago
What it does

defaults

Default configuration presets for the character controller. Each preset is a flat Config table that CharacterController.attach / install merges over with user overrides. No behaviour, no state — just constants.

Exports

  • M.standard: Config — baseline humanoid tuning. Used when no user config is supplied to attach.
  • M.platformer: Config — higher gravity, stronger jump, double jump, generous coyote time, high air control.
  • M.heavy: Config — taller capsule, lower max slope, weaker jump, minimal air control.

Types:

  • Config = { height, radius, maxSlopeAngle, stepHeight, gravity, jumpForce, coyoteTime, jumpBuffer, maxJumps, airControlFactor, groundSnapDistance, skinWidth }

Usage

local Defaults = require("@builtin::systems.characterController.characterController.data.defaults")

-- Use a preset directly:
CharacterController.attach(entityId, Defaults.platformer)

-- Or merge selective overrides:
local cfg = {}
for k, v in pairs(Defaults.standard) do cfg[k] = v end
cfg.jumpForce = 8.0
CharacterController.attach(entityId, cfg)

Notes

  • Pure data, no engine calls. Safe to require at module load time.
  • These tables are shared singletons — mutating Defaults.standard in place will affect every later attach that uses it. Copy before mutating.

Interface

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

conforms to

zero/source-extract/v2

CharacterController Defaults Module Default configuration presets for the character controller. Each entry is a flat table of tuning values the controller's `attach` or `install` flow merges over with user overrides. Consumers: local Defaults = require("@builtin::systems.characterController.characterController.data.defaults") local config = Defaults.standard -- baseline tuning local config = Defaults.platformer -- jumpy, high air control local config = Defaults.heavy -- slow, low air control

⌬ Types
Config = {

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

3items
·
other · born here
▤file
▲ 0↑ born

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.