- Implement Context-Based Input system: - Added `IMC_ItemHeld` mapping context. - Added logic to switch contexts when picking up/dropping items. - Added `Throw` (LMB/R2) and `Aim` (RMB/L2) input actions. - Refactor Interaction Logic: - `Interact`: Now handles picking up items or gently dropping them if held. - `OnThrowInput`: Implemented physics-based throw towards camera aim point (center of screen raycast). - Added character rotation to face the throw target instantly. - Update Physics & Movement: - Added `bStrafing` mode to `TengriMovementComponent` to allow rotation towards camera view. - Updated `TengriPickupActor` to use `bVelChange` for impulses (ignoring mass for consistent throw arc). - Tuned throw force and added vertical arc bias. - Fixes: - Resolved rotation logic in MovementComponent to support Aiming state. |
||
|---|---|---|
| .. | ||
| TengriPlatformer | ||
| TengriPlatformer.Target.cs | ||
| TengriPlatformerEditor.Target.cs | ||