How benjamin5774/offbalance works
OffBalance is an Unreal Engine game project centered on ball movement, with a separate gyro-steered ball actor, turning and dead-zone actors, and a SerialCOM plugin exposing serial-port I/O to Unreal/Blueprints. The clearest runtime path in the sampled source is controller input to the MsFallBall pawn and its physics movement component. The Content tree also contains game maps, input assets, and Blueprint assets. Binary assets and unsampled code limit what can be said about their wiring; unverified integration is shown as dashed.
Main entry points: MsFallBall.cpp MsFallBall Pawn · MsFallBallController.cpp Ball Controller · SerialCom.cpp Serial Port API · MsFallBallMovementComponent.cpp Physics Movement
Components 16
Ball Gameplay
- Ball Controller
Source/OffBalance/MsFallBallController.cpp - MsFallBall Pawn
Source/OffBalance/MsFallBall.cpp - Physics Movement
Source/OffBalance/MsFallBallMovementComponent.cpp - Camera and Actor Sway
Source/OffBalance/MsFallBall.cpp - Gyro Ball
Source/OffBalance/MrFallBall.cpp
World Actors
- Dead Zone
Source/OffBalance/DeadZone.cpp - Turning Zone
Source/OffBalance/TrunZone.cpp - Dummybear Actor
Source/OffBalance/Dummybear.cpp - My Actor
Source/OffBalance/MyActor.cpp
Serial I/O
- Serial Port API
Plugins/SerialCOM/Source/SERIALCOM/Private/SerialCom.cpp - Serial Module
Plugins/SerialCOM/Source/SERIALCOM/Private/SERIALCOMModule.cpp
Game Content
- Maps and Blueprints
Content/Benjamin - Input Assets
Content/Benjamin/IA_MsBallMove.uasset - Third-Person Assets
Content/ThirdPerson
Other components
- Player
- Serial Device
Connections 7
- Player → Ball Controller: provides input
- Ball Controller → MsFallBall Pawn: calls Move
Source/OffBalance/MsFallBallController.cpp - MsFallBall Pawn → Physics Movement: adds movement input
Source/OffBalance/MsFallBall.cpp - MsFallBall Pawn → Physics Movement: sets physics body
Source/OffBalance/MsFallBall.cpp - MsFallBall Pawn → Camera and Actor Sway: updates sway
Source/OffBalance/MsFallBall.cpp - Serial Device → Serial Port API: exchanges serial data
- Serial Port API → Gyro Ball: supplies parsed steering