How taitanw/new2dobject works
New2DObject is a Unity 2D movement and contact framework. Its documented runtime centers on player input and behavior, then a phased physics frame: environment/contact sampling, motion and AABB prediction, entity-contact solving, and displacement submission while Unity Dynamic contact response remains active. The graph emphasizes these documented stages and the presentation layer. Source excerpts were unavailable, so relationships are limited to those described in the README; UI, music, and other tree-visible systems are not included without documented runtime connections.
Main entry points: BasicEntity.cs Basic Entity · InputControlMgr.cs Input Control · Player.cs Player Logic · PlayerStateMachine.cs Player State Machine
Components 16
Player Control
- Input Control
Assets/Script/Framworker/Function/Player/Mgr/InputControlMgr.cs - Player Logic
Assets/Script/Framworker/Function/Player/Player.cs - Behavior States
Assets/Script/Framworker/Function/Player/FSM/BehavioralState.cs - Player State Machine
Assets/Script/Framworker/Function/Player/FSM/PlayerStateMachine.cs
Environment Sampling
- Environment Capabilities
Assets/Script/Framworker/Function/Physics/Interface/IEnvironmentCapabilities.cs - Environment Context
Assets/Script/Framworker/Function/Physics/Base/EntityEnvironmentContext.cs - Environment Frame
Assets/Script/Framworker/Function/Physics/Data/EntityEnvironmentFrame.cs
Motion and Contact
- Basic Entity
Assets/Script/Framworker/Function/Physics/Base/BasicEntity.cs - Effect State
Assets/Script/Framworker/Function/Physics/Data/EntityEffectState.cs - Character Physics
Assets/Script/Framworker/Function/Physics/Component/CharacterPhysics.cs - Physical Box
Assets/Script/Framworker/Function/Physics/Component/SceneObjects/PhysicalBox.cs - Physics Solver
Assets/Script/Framworker/Function/Physics/Mgr/PhysicsSolverMgr.cs - Motion Structures
Assets/Script/Framworker/Function/Physics/Data/Struct.cs
Presentation
- Presentation Layer
Assets/Script/Framworker/Function/Performance/Component/PresentationLayer.cs
Other components
- Player
- Unity Dynamic Physics
Connections 14
- Player → Input Control: provides input
README.md - Input Control → Player Logic: controls
README.md - Player Logic → Player State Machine: uses behavior
README.md - Player State Machine → Behavior States: selects state
README.md - Environment Capabilities → Environment Context: supplies capabilities
README.md - Environment Context → Environment Frame: resolves environment
README.md - Environment Frame → Basic Entity: informs motion
README.md - Basic Entity → Motion Structures: builds motion frame
README.md - Basic Entity → Physics Solver: provides predicted bounds
README.md - Physics Solver → Basic Entity: returns contact bias
README.md - Basic Entity → Effect State: uses effect values
README.md - Basic Entity → Character Physics: submits character motion
README.md - Basic Entity → Physical Box: submits box motion
README.md - Basic Entity → Unity Dynamic Physics: retains dynamic response
README.md