ss14-virtual-controller-api
БесплатноБез исполняемых скриптовНе проверенGives a practical catalog of APIs around the VirtualController in Space Station 14: selection of hooks and order, physics mutators, relay/movement/climb…
от makura-games★ 74 звезды на GitHubОб этом скилле
VirtualController: API Practice
Use this skill when you need to quickly choose the correct method and avoid getting physics/prediction regression 😎
Freshness reference: git log/blame with cutoff 2024-02-20.
What to download
references/fresh-pattern-catalog.md- register of methods with freshness marking (Use/Limited).references/rejected-snippets.md- risky places and misuse practices.references/docs-context.md- how to read docs without conflicting with the code.
Quick API selection
- You need a controller for the physics step: inherit from
VirtualControllerand implementUpdateBeforeSolve/UpdateAfterSolve. - You need order between controllers: add
UpdatesBefore/UpdatesAftertobase.Initialize(). - You need control over velocity/impulse: use
SetLinearVelocity,ApplyLinearImpulse,SetBodyStatus, damping setters. - You need an entity management relay: use
SetRelay/RemoveRelay. - You need manual mobility mathematics:
Friction,Accelerate,GetWishDir/SetWishDir. - You need a container/movement link through “climbing out”:
ForciblySetClimbing. - We need a safe climb pipeline:
CanVault->TryClimb. - We need predicted control on the client:
UpdateIsPredictedEventhandlers.
API by group
1) VirtualController contract
Initialize()- registers before/after solve hooks and metrics.UpdateBeforeSolve(bool prediction, float frameTime)- pre-solver logic.UpdateAfterSolve(bool prediction, float frameTime)- post-solver logic.BeforeMonitor/AfterMonitor- measurement of the cost of a specific controller.
2) Ordering API
UpdatesBefore.Add(typeof(...))- this controller goes before the target.UpdatesAfter.Add(typeof(...))- this controller comes later than the target.- Both lists must be configured to
base.Initialize().
3) Physics mutators
SetLinearVelocity(...)- safe setting of linear speed.ApplyLinearImpulse(...)- impulse for dynamics/pulling.SetBodyStatus(..., BodyStatus.InAir/OnGround)— body mode for special mechanics.SetLinearDamping(...)/SetAngularDamping(...)— runtime damping.SetBodyType(...)- conscious change of body mode.
4) Relay API
SetRelay(uid, relayEntity)— create/update a relay link.RemoveRelay(uid)— remove the relay and bring the prediction state to a consistent state.- Client prediction hooks (
UpdateIsPredictedEvent) must take into account the relay chain.
5) Movement helper API
GetWishDir(...)/SetWishDir(...)- control of the desired direction.Friction(...)(vector/scalar) - controlled speed decay.Accelerate(...)- limited acceleration to the wish direction.ResetCamera(...)/GetParentGridAngle(...)- correct operation of the angle/orientation.
6) Climb API
CanVault(...)— climb/vault pre-validation.TryClimb(...)— launching the climb procedure with do-after and checks.ForciblySetClimbing(...)- forced safe exit to the surface.
7) Conveyor and Pull practical points
- Conveyor:
CanRun(...),UpdateBeforeSolve(...), combination of conveyor vector withwishDir. - Pull: impulse towards the target + settle shutdown + reverse impulse in special conditions.
Unusual use cases
- Relay piloting: mechs, station-eye, manned clothing, proxy-control objects in special modes.
- Container-eject pipeline: after extracting the entity, use
ForciblySetClimbingto avoid sticking. - Client prediction gating: for relay target and pullable via
UpdateIsPredictedEvent.
Patterns
- Set up the controller order (
UpdatesBefore/After) tobase.Initialize(). - In
UpdateBeforeSolvefilter unsuitable bodies (prediction,body.Predict, static/sleeping cases). - For
KinematicControlleruse helper friction + explicit setting of speeds. - For relay scripts, use only
SetRelay/RemoveRelay. - For gravity/space pull scenarios, take into account the pair impulse if required by the mechanics.
- For climb-flow, always do
CanVaultbeforeTryClimb. - For ejection from a container/cryo/scanner, use
ForciblySetClimbingas a post-action step. - For conveyor logic, calculate the direction separately, apply the result after the parallel part.
- For client prediction, adjust
IsPredicted/BlockPredictionthrough the appropriate events. - Use
SetBodyStatusonly in clearly justified special mechanics. - For APIs that are called frequently, cache queries and avoid unnecessary allocations.
- Check the actual freshness of the example before reusing it.
Anti-patterns
- Add order dependencies after
base.Initialize(). - Pull
SetBodyStatus(InAir)as a universal “patch”. - Change relay manually through direct
RemComp/EnsureCompwithout lifecycle methods. - In the predicted controller, use nondeterministic logic without protections.
- Copy TODO-heavy pieces from pull/contact/solver as “best practice”.
- Rely on the empty cl
Установить ss14-virtual-controller-api в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ss14-virtual-controller-api?
Gives a practical catalog of APIs around the VirtualController in Space Station 14: selection of hooks and order, physics mutators, relay/movement/climb scripts, prediction constraints and safe application patterns.
Как установить скилл ss14-virtual-controller-api?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ss14-virtual-controller-api запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic