aboutsummaryrefslogtreecommitdiff
path: root/apps/fparkan-game/src/player_collision.rs
Commit message (Collapse)AuthorAgeFilesLines
* fix(movement): use visible building stages for collisionValentin Popov4 days1-1/+288
| | | | Share building stage selection with the renderer and query the current slot for floor and wall contacts. Verify the same floor probe against the intact and damaged factory in a validated stock mission window.
* fix(movement): carry unfinished hero turns across ticksValentin Popov8 days1-6/+3
| | | | Use the angular limit in Control profile word 11 and preserve the unconsumed phase. The original Control read and write dispatch and orientation update delivered 0.5022847 then 0.4401929 radians at two 10 ms samples. The same steps changed the view in a Vulkan window from the stock Firing Range start.
* fix(input): match the original hero mouse turn scaleValentin Popov8 days1-24/+43
| | | | Use the stock relative X binding and control settings, filter once per input sample, and carry the filter across collision steps. World3D dispatch confirmed both directions, saturation and angle wrapping. Mission 2 was checked from a stock spawn in a Vulkan window with two view captures. The runtime still applies the requested rotation in one step.
* fix(movement): carry hero walking velocity between ticksValentin Popov8 days1-25/+38
| | | | | | | | | | Take both horizontal limits and acceleration from the active Control profile. Apply the measured slope braking after the input update and clear velocity on a blocking wall, teleport or boarding. Keep the terrain limit during geometric sweeps so momentum cannot skip a narrow cliff. In the stock Firing Line window the hero reached the slope, stopped at its foot, backed away, and coasted on key release.
* fix(movement): limit hero ascent using the Control slope profileValentin Popov8 days1-2/+2
| | | | | | | | | | | Use the normal of the same triangle that supplies terrain support, apply the walking profile's speed envelope, and resolve support again for the shortened step. The existing immediate-speed model still omits native braking inertia. The native Control call confirms the envelope and the downhill bypass. In the stock Firing Line window the hero stopped at the west slope and could walk back. The bridge and factory walkway corpus checks passed.
* refactor(terrain): share BAS projection for live building posesValentin Popov9 days1-5/+1
| | | | Move the authored contour projection out of the app so the same geometry can be prepared from an initial root or a live construction pose. The licensed stock Third Part construction test builds the real factory foundation and verifies that the original ground surface drops out beneath it. Constructor's normal Vulkan start retains clean validation.
* fix(player): use the Control forward limit for walkingValentin Popov9 days1-2/+2
| | | | Read the live Control profile for walking along the body's heading. The stock Firing Range window advances at roughly 14 units per second while the key is held. Size collision sweeps from actual requested displacement so the stock factory entrance, passage and exit still work.
* feat(player): play footsteps on ground and building floorsValentin Popov9 days1-3/+8
| | | | Select the original step effects from the hero's Control rows. A footfall follows the accepted movement and the camera rhythm. The Firing Range window starts the ground sound on the step and stays quiet when the player stops.
* feat(player): lower the communicator field on captureValentin Popov9 days1-0/+12
| | | | Drive the original CTLD type-13 tracks from the local capture. The Constructor window replay shows the raised and lowered field and four player projectiles stop at the mesh. Leaving resumes the authored open pose. Motion timing and exit trigger remain approximate.
* feat(player): announce a successful building captureValentin Popov9 days1-2/+5
| | | | Resolve the neutral or enemy cue through the original voice table. In a stock Constructor window replay the factory capture queues vc_nb_capt.wav before the objective notice.
* fix(player): capture buildings at the communicator floorValentin Popov9 days1-0/+4
| | | | On the stock Constructor map, walk through the factory basement to the communicator and press Enter. The first objective completes and the same path returns to ground level. The green ceiling no longer hides the floor in the contact query.
* fix(player): drown on first supported step into waterValentin Popov9 days1-10/+13
| | | | Carry the terrain surface flags through the walking collision decision. A mesh floor over water remains safe. The first accepted wet step removes the hero and produces the normal mission failure event. Verified the surface flag in the original Control DLL and walked from the stock Constructor spawn to the lake in the Vulkan window.
* fix(player): walk through cut terrain into factory basementsValentin Popov9 days1-10/+211
| | | | Use the same BAS cut surfaces for the walking sweep and the scene. The hero can descend along the building mesh and recover ground support on the way back. The stock Constructor route passes in both directions, the Firing Range bridge retains clearance, and the walk replay completes in the Vulkan window.
* fix(player): preserve clearance above bridge decksValentin Popov2026-11-141-0/+185
Resolve the preceding walking surface before switching between terrain and mesh floors. Preserve the outdoor spawn clearance across the deck while the lower bunker spawn keeps the existing near-floor behavior. The licensed Firing Range test walks from the stock spawn over both bridge sections and checks the ramp and return to terrain. The Two Fortresses bunker exit still passes. The stock Firing Range opens with Vulkan validation clean.