Skip to main content

109 docs tagged with "physics"

View all tags

Anchor

Manages the raising and lowering state of an anchor attached to a boat, handling drag physics, animation timing, and multiplayer coordination via sailor tasks.

Anchor

A deployable boat accessory that prevents vessel movement and interacts with water physics and environmental systems.

Ancient Husks

Defines the prefab data and initialization logic for ancient husk statues, including identity-specific animations and physics properties.

Antlion Sinkhole

Manages the lifecycle and damage mechanics of an antlion-triggered sinkhole, including collapse stages, repair cycles, and area-of-effect interactions with nearby entities.

Atrium Fence

Controls the dynamic opening and closing behavior of an atrium fence based on player proximity and power state.

Balloons Common

Provides shared utility functions and initialization logic for balloon prefabs, including colouring, physics setup, popping behavior, and interaction with the player's inventory and combat systems.

Balloonspeed

Manages the lifecycle, flight physics, and fuel-based speed progression of a floating balloon used as a consumable speed boost item.

Blowinwind

Simulates wind-driven movement and speed variation for an entity by accumulating velocity in the wind direction and applying it to the locomotor component.

Boat

Manages the creation, behavior, and physics of ocean-going vessels, including variant-specific functionality (wood, grass, ice, pirate, ancient, otterden).

Boat Bumper Kit

Creates and configures deployable bumper prefabs for boats, handling health, repairs, destruction, and interaction with boat ring systems.

Boat Leak

A temporary game object that simulates water leaking into a boat, interacting with nearby entities and inventory items to simulate clogging and eventual ejection.

Boat Magnet

A deployable structure component that enables boat magnet functionality by pairing with a beacon and responding to beacon state changes via the state graph.

Boatcannon

Manages loading, aiming, and firing operations for a boat-mounted cannon, including ammo state tracking and projectile launch with recoil physics.

Boatdrag

Calculates and applies drag and velocity modifiers to watercraft entities during movement.

Boatdrifter

Manages the physics and movement state of a boat entity, including drift detection, physics activation/deactivation, and wake test lifecycle.

Boatmagnet

Manages the magnetic attraction behavior of a boat toward a paired beacon, calculating forces and velocity to pull the boat toward the beacon's location while avoiding collisions and adapting to motion.

Boatphysics

Manages boat movement, physics, steering, sail/magnet forces, drag, and collision response for watercraft entities.

Boatrace Seastack

A destructible, buoyant obstacle block used in boat races that yields throwable deployment kits upon destruction.

Boattrailmover

Manages movement and trajectory tracking for a boat entity in the game world.

Cannonballs

Handles the physics-based flight, target detection, and splash damage of cannonball projectiles in DST, including interaction with terrain, entities, and destructible objects.

Carnivalgameshooter

Manages the aiming and shooting mechanics for the carnival shooting mini-game, controlling projectile launch parameters and aim animation.

Cavein Boulder

Manages the state, physics, and behavior of large boulders used in cave-in events, including raised states, falling animation tracking, and formation creation upon landing.

Complexprojectile

Manages physics-based projectile trajectories with configurable launch conditions, gravity, and hit/miss callbacks for ranged attacks.

Crabking Cannontower

A stationary defensive turret belonging to the Crab King that fires mortar projectiles at boats or nearby enemies and reacts to collisions.

Daywalker2 Items

Creates FX prefabs that simulate breaking and releasing loot for the Daywalker2 boss fight, including physics motion and conditional armor modification.

Drownable

Manages drowning and void-falling logic for entities, including damage application, item dropping, and teleportation behavior.

Expertsailor

Controls configuration values that modify boat sailing physics and anchor behavior for a boat entity.

Explosive

Manages the behavior and effects of explosive entities, including area-of-effect damage, building destruction, ignition of flammable objects, and camera effects upon detonation.

Firecrackers

A consumable explosive item that detonates when ignited, creating a chain reaction of physical propulsion and startle effects on nearby entities.

Fishingnetvisualizer

Manages visual behavior and logic for a fishing net entity during casting, opening, retrieving, and final pickup phases.

Floater

Manages visual and behavioral effects when an entity enters or remains in water, including wetness application, splash spawning, and floating animations.

Floatinglantern

Manages a flying lantern prefab that consumes fuel to stay airborne and emits light with dynamic physics-based behavior.

Freezable

Manages freeze states, coldness accumulation, and thawing behavior for entities, including visual tinting, shatter effects, and resistance mechanics.

Glass Spike

Creates deployable glass obstacles that can be hammered into blocks and used as defensive equipment with unique visual and behavioral states.

Groundpounder

Simulates a radial ground pound attack that triggers delayed damage, destruction, platform pushing, and inventory item launch effects across concentric rings.

Halloween Ornaments

Generates prefab instances for Halloween-themed decorative inventory items with floatable physics and limited fuel value.

Heavyobstaclephysics

Manages dynamic physics behavior for large in-game obstacles that transition between solid, falling, and pushed states based on proximity and interactions.

Hitbox

Defines a configurable hitbox representation using circles and triangles, supporting world-space transformations and collision tests against points, lines, circles, triangles, and other hitboxes.

Hullhealth

Manages hull integrity and leak damage for boats, handling collision impacts, degradation over time, and dynamic leak indicators.

Icefishing Hole

Creates a stationary environmental hazard that repels players and triggers knockback upon proximity.

Inv Marble

Represents a small, throwable marble item that acts as mole bait andquake debris.

Inventoryitem

Manages item properties and behavior related to inventory interaction, moisture, physics, and owner relationships.

Joustsource

Manages the lance-based melee attack logic for jousting entities, including collision detection against targets within the lance's arc and pushback/knockback behavior.

Junkball

Manages the launch and fall phases of a junk projectile used in the game's combat and environmental mechanics, handling physics, visuals, sound, and damage application.

Layout

Provides utility functions for force-directed layout of nodes in 2D space, including repulsion from walls and points.

Locomotor

Manages entity movement, pathfinding, and speed calculations, including walking, running, platform hopping, and speed modifier interactions.

Malbatross Feather

A lightweight, stackable item used as a cat toy and fuel source that floats on water and animates when dropped or falling.

Mast

Manages sail state and forces for a boat mast, including furling/unfurling mechanics, physics interaction with the boat, and animation synchronization.

Mast

Manages mast structures for boats, including sail deployment, fuel-powered lighting upgrades (lamp), lightning rod upgrades, and destruction behavior.

Math2D

A utility module providing optimized 2D geometric intersection and distance calculations for hitbox detection and collision queries.

Mole

Controls the behavior and state transitions of the mole creature, including underground/aboveground physics, inventory management, and home-seeking logic.

Mortarball

A throwable projectile component that deals damage, triggers splash effects, and interacts with terrain and entities during flight and impact.

Nightmarerock

A reactive environmental obstacle that physically rises or lowers based on nearby player sanity status, used in the sanity rock mechanics.

Nonslipgritpool

Provides logic to determine whether a point on the ground is covered in non-slip grit, used to prevent entities from sliding on ice or slippery surfaces.

Oar

Handles rowing mechanics for boats, applying directional force and managing rowing success/fail behavior.

Oceanfishingrod

Manages the ocean fishing rod's casting, targeting, tension tracking, and fish capture logic, acting as the central controller for ocean fishing interactions.

Oceanicemanager

Manages dynamic creation, damage, and destruction of ocean ice tiles in the world map, including entity interactions and visual effects.

Oceantree

Manages the lifecycle, growth, and interaction logic for ocean trees, including chopping, burning, converting to stumps, and transforming into ocean pillars when enriched.

Oceantree Pillar

A large, water-based environmental structure that provides canopy shade, drops loot when chopped or hit, and interacts with boat collisions and lightning strikes.

Oceanwhirlportalphysics

Simulates physics forces (pull and radial rotation) on entities near an ocean whirlpool portal, and handles interaction with static objects and winch targets.

Physics

Manages physics-based entity destruction, collision callbacks, and launch mechanics for entities in the world.

Physicsmodifiedexternally

Manages externally applied velocity contributions to an entity's physics, aggregating multiple sources and updating physics and locomotor state.

Pillar

Creates and configures static environmental pillar prefabs with conditional physics, tags, and sound emitter support.

Pillow Common

Provides a shared knockback function that respects special tags and body armor defense values when applying knockback effects.

Pinnable

Manages the pinned state and visual wear-off effect for entities that can be stuck by goo-based attacks.

Platformhopdelay

Manages a delay period measured in frame ticks before allowing a platform-hopping action (e.g., moving between floating platforms) to occur.

Pond

Manages frozen, spawning, and environmental state transitions for surface and cave ponds, including seasonal freezing, child mob spawning, acid rain effects, and loot spawning.

Potatosack

Acts as a heavy, hammerable obstacle that drops loot when destroyed and can be equipped as a body item to modify movement speed and visual appearance.

Projectile

Handles the logic for projectiles, including trajectory, homing, collisions, and throwing behavior in DST.

Pushable

Enables an entity to be pushed by another entity and maintains relative positioning during the push.

Rock Ice Temperature

Manages the dynamic stage-based growth and melting of ice boulders in response to local temperature, work, and environmental conditions.

Rooted

Prevents an entity from moving by stopping physics and applying a speed multiplier of 0 via the locomotor component, while managing lifecycle via sources.

Ropebridgemanager

Manages rope bridge creation, destruction, health tracking, and earthquake damage response across the world grid.

Ruins Cavein Obstacle

Acts as a dynamic, physics-based obstacle in ruins caves that shrinks to allow character passage and falls when triggered, dealing damage or destroying nearby entities upon impact.

Seastack

A breakable underwater rock entity that yields rocks when mined, serves as a collision obstacle for boats, and can be upgraded to spawn water plants; supports powder monkey tinting based on proximity to the Monkey Queen.

Sgalterguardian Phase4 Lunarrift

Manages thePhase 4 lunar rift boss behavior including attack sequencing, AOE effects, camera shake, and multiple defeat/cinematic states.

Sgbearger

Manages the complete behavioral stategraph for the Bearger entity, including movement, combat, attacks, staggering, yawn-based crowd control, and state transitions during special actions.

Sgboatbumper

Manages the visual states and animation lifecycle of boat bumper entities during placement, impact, and degradation.

Sgboatmagnet

Manages state transitions and animations for the boat magnet entity during beacon pairing and pulling operations.

Sgfused Shadeling

Manages the state machine and behavior transitions for the Fused Shadeling boss enemy, including idle movement, jumping, attacking, being hit, taunting, teleporting, and despawning.

Sgmalbatross

State graph for the Malbatross boss, managing its flight, combat, swimming, and death behaviors via state transitions and event-driven logic.

Sgruinsnightmare

Manages the state transitions, animations, and behavior logic for the Ruins Nightmare creature, including movement, attack phases, invisibility cycles, and despawn mechanics.

Sharkboi Ice Hazard

Manages a dynamic, seasonally-adjusted ice boulder that melts or grows over time and can be mined for ice shards.

Slipperyfeet

Manages the accumulation and decay of slippiness on an entity, enabling ice-related movement mechanics and slip events based on speed and environmental factors.

Slipperyfeettarget

Marks an entity as a target location where slippery surface effects can be evaluated.

Snowball Item

Represents an ice-based consumable item that can be thrown, equipped, used as a water source, or built into a snowman, with melting and frost effects.

Snowman

Manages the lifecycle, growth, decoration, and destruction of a snowman entity that can be built and modified in the game world.

Stagehand

Manages the behavior, physics state, and interactions of the Stagehand creature, including toggling between standing (active) and crouching (hiding) modes.

Standardcomponents

A collection of utility functions for adding common physics, burnable, freezable, perishable, hauntable, and deployment behaviors to entities in Don't Starve Together.

Stretcher

Dynamically scales an entity along its facing axis to match the distance to a target entity, commonly used for stretchy visual effects like slingshots or elastic attachments.

Stuckdetection

Monitors an entity's positional movement to determine if it has become stuck for a specified duration.

Tumbleweed

A mobile environmental item that rolls in the wind and drops random loot when picked up or destroyed.

Vaultcollision

Creates non-blocking, static collision mesh prefabs for the Vault and Lobby areas, preventing character movement through designated zones.

Vec3Util

Provides utility functions for 3D vector mathematics, including arithmetic, distance, and normalization operations.

Vector3

A lightweight 3D vector math utility for geometric calculations, distance, normalization, and vector operations in DST.

Wagboss Robot Leg

Manages the landing and blocking behavior of a boss-related physics-based obstacle that reacts to environmental changes and boss presence.

Wagpunk Arena Collision

Creates non-solid physics collision boundaries for the Wagpunk arena with client-side particle effects and entity ejection logic for intruders.

Wagpunk Lever

A switchablelever component that extends when activated, enabling proximity-based interaction with the Wagpunk arena manager.

Walkableplatform

Manages a physical platform (e.g., a boat or raft) that players and objects can stand on, handling entity attachment, detachment, and interaction with surrounding systems like drowning, physics halting, and network registration.

Walkableplatformplayer

Manages player behavior and camera integration when the player is on a walkable platform (such as a boat), including movement prediction, boat-based camera effects, and zoom handling.

Walls

Provides the underlying component logic andprefab factory for generating wall entities with health, pathfinding, and construction mechanics.

Waterphysics

Applies basic physical properties to entities that interact with water, specifically defining their bounciness (restitution).

Waterprojectiles

Defines prefabs and behaviors for water-based projectiles (snowballs, water balloons, ink splats, bile splats, and water streaks), each implementing custom collision handling, projectile physics, and fire suppression or status effects via the wateryprotection and complexprojectile components.

Watertree Pillar

Acts as a large ocean-dwelling structure that periodically spawns grassgators, drops items when rammed by boats, blocks lightning, and manages canopy effects for nearby players.

Wave

Simulates an ocean wave entity that moves, interacts with boats and items, and triggers splash effects upon collision or contact with land.

Winch

Manages the mechanical winch structure that can lower and raise a claw to salvage submerged objects, while interacting with boat physics and inventory systems.

World

Manages the global world instance and initial setup for the game environment, including map rendering, tile physics, components, and prefabs.