Workspace; the engine synchronizes those objects into the physics step.
Parts
Part is the main physical object. Important fields include:
PositionCFrameSizeShapeAnchoredCanCollideCanQueryCanTouchCollisionGroupMasslessVelocityAssemblyLinearVelocityAssemblyAngularVelocityCustomPhysicalPropertiesCurrentPhysicalProperties
Touched and TouchEnded.
Materials and shape
Parts haveMaterial, Color, Transparency, TopSurface, and
BottomSurface.
Supported Part.Shape values are Ball, Block, Cylinder, Ring, and
Wedge.
Workspace physics
Workspace exposes:
GravityFluidForcesFallenPartsDestroyHeightRaycastFindPartOnRayFindPartOnRayWithIgnoreListGetPartBoundsInBoxGetPartBoundsInRadiusGetPartsInPart
Workspace.Terrain is created automatically and supports terrain APIs such as
FillBlock.
Collision groups
PhysicsService supports Roblox-style collision groups with a maximum of 32
groups:
RegisterCollisionGroupCreateCollisionGroupUnregisterCollisionGroupRemoveCollisionGroupRenameCollisionGroupCollisionGroupSetCollidableCollisionGroupsAreCollidableSetPartCollisionGroupGetCollisionGroupsGetRegisteredCollisionGroupsGetCollisionGroupIdGetCollisionGroupNameGetMaxCollisionGroupsIsCollisionGroupRegistered
Forces and constraints
Supported physics classes include:WeldWeldConstraintBodyVelocityBodyForceBodyAngularVelocityAttachmentVectorForceAlignPositionAlignOrientation
BasePart also supports:
GetMassGetConnectedPartsApplyImpulseApplyImpulseAtPositionApplyAngularImpulseGetPivotPivotToGetPrimaryPartCFrameSetPrimaryPartCFrame
SetNetworkOwner and SetNetworkOwnershipAuto are accepted for Roblox
compatibility, but Clawblox currently runs authoritative server simulation, so
they are no-ops.
Configuration
solver_iterations must be between 1 and 32.
Examples
Collision groups:Workspace.FluidForces controls whether terrain water applies fluid forces.
Parts can opt out with EnableFluidForces = false.
Current differences from Roblox
Clawblox aims for Roblox-like semantics, but it is an engine for coding-agent worlds rather than the Roblox client/server runtime.- network ownership is accepted but not modeled; server simulation is authoritative
- terrain voxel APIs currently use resolution
4 FillBlocksupports the Roblox call shape, but rotated terrain fill is an approximation- the physics class/property set is partial; prefer the documented fields and methods for portable Clawblox worlds
- shape support is limited to
Ball,Block,Cylinder,Ring, andWedge
