一键导入
roblox-physics
Constraints, VehicleSeat, ragdoll, projectiles, Attachment patterns, network ownership.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Constraints, VehicleSeat, ragdoll, projectiles, Attachment patterns, network ownership.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
SoundService, SoundGroup mixer, spatial audio, 3D positioned sound, music systems, SFX patterns.
3D builds via MCP, CSG operations, spatial coordination, Part properties, map design.
Lighting service, Atmosphere, post-processing (Bloom, ColorCorrection), day/night cycle.
Luau type system: annotations, generics, narrowing, inference philosophy, sealed/unsealed tables, exports, and Roblox-aware typing.
Studio MCP server tools, execute_luau, script_read/multi_edit, reliability patterns, workflows.
| name | roblox-physics |
| description | Constraints, VehicleSeat, ragdoll, projectiles, Attachment patterns, network ownership. |
| last_reviewed | "2026-05-27T00:00:00.000Z" |
| sources | ["https://github.com/Roblox/creator-docs/blob/main/content/en-us/physics/mechanical-constraints.md","https://github.com/Roblox/creator-docs/blob/main/content/en-us/physics/mover-constraints.md"] |
Use this skill when building physics-driven gameplay: vehicles, ragdolls, projectiles, mechanical contraptions, elevators, swinging platforms, or anything using constraints and forces.
Mechanical: HingeConstraint (doors/wheels), PrismaticConstraint (elevators/pistons), CylindricalConstraint (telescoping), BallSocketConstraint (ragdoll/chains), UniversalConstraint (steering), WeldConstraint/RigidConstraint (rigid attach)
Motion: AlignPosition, AlignOrientation, LinearVelocity, AngularVelocity, VectorForce, Torque
Spring/Rope: SpringConstraint (suspension/trampolines), RopeConstraint (grapple, slack), RodConstraint (rigid link)
All constraints connect via Attachment objects, not Parts directly. Create Attachment on each part, set constraint.Attachment0/Attachment1, parent constraint to part0. Actuator types: None, Motor (constant velocity), Servo (target position/angle).
Wheel = HingeConstraint (ActuatorType.Motor) + SpringConstraint for suspension. Steer = Hinge with ActuatorType.Servo. Rear wheels get throttle AngularVelocity, front wheels get servo TargetAngle. Use CustomPhysicalProperties on wheels for friction tuning.
Replace Motor6Ds with BallSocketConstraint: create Attachments from motor.C0/C1, set LimitsEnabled=true, UpperAngle=45. Keep Root Motor6D for HRP. Set humanoid state to Physics. Re-enable motors to recover.
Default: nearest player owns unanchored physics (exploitable!). part:SetNetworkOwner(nil) = server-owned (secure, laggy). part:SetNetworkOwner(player) = player-owned (responsive). Rule: NPCs/world objects → server. Vehicles → driver player. Always set explicitly on important physics objects.
CustomPhysicalPropertiesTouched only for slow physics projectilesreferences/full.md for the complete reference with code examples, API tables, and edge cases.