View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006259 | The Dark Mod | Coding | public | 16.02.2023 06:01 | 18.02.2023 04:21 |
Reporter | Daft Mugi | Assigned To | |||
Priority | normal | Severity | normal | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | TDM 2.11 | ||||
Summary | 0006259: Player falls through moving platform on shouldering animation | ||||
Description | When the player is on a upwards-moving platform, such as an elevator or lift, and shoulders a body, the player will clip through the platform and fall below it during the shouldering animation. Two missions to try are "Volta 2" and "New Job". Volta 2: setviewpos -1798.6 3571.72 -1883.75 New Job: setviewpos 1222.88 -204.17 -81.75 | ||||
Steps To Reproduce | 1. Put a body on a platform. 2. Push button to make the platform rise. 3. While it's rising, shoulder the body. 4. (The player clips through the platform and falls.) | ||||
Tags | No tags attached. | ||||
I tracked this down to "idPhysics_Player::ShoulderingMove()". Within that function, the animation doesn't factor in a moving platform. With each "SetOrigin()" call, the player starts to clip through the platform. With the final "SetOrigin()", the player's origin gets set to the start of the animation. The player and platform become mismatched. See: // Apply animation to player position and view angle const idVec3 newPosition = current.origin + (newPositionOffset - m_PrevShoulderingPosOffset); m_PrevShoulderingPosOffset = newPositionOffset; SetOrigin(newPosition); And: // Explicitly return to start position to avoid clipping due to quantization errors SetOrigin(m_ShoulderingStartPos); |
|
Date Modified | Username | Field | Change |
---|---|---|---|
16.02.2023 06:01 | Daft Mugi | New Issue | |
16.02.2023 06:02 | Daft Mugi | Note Added: 0015946 | |
16.02.2023 06:02 | Daft Mugi | File Added: cauldron_v2_2_4303d8b3bf4bea95 (2023-02-15 23-26-19) (-1798.6 3571.72 -1883.75) edited.jpg | |
16.02.2023 06:02 | Daft Mugi | File Added: newjob (2023-02-15 23-24-02) (1222.88 -204.17 -81.75) edited.jpg | |
18.02.2023 04:21 | Daft Mugi | Note Added: 0015953 |