Repository navigation
Conversation
…neeling at a chest), moving takes it back to the sneak pose - the body shrinks so its feet stay on the floor The crouch button took the camera to the eyes of the sneak pose (S_SNEAK, 1.41 m at scale 1): only the first crouch of a body reached the rig's 0.7 m, then the camera rose to a half crouch and chest locks needed a real crouch (also in sitting mode). Now crouched and still for 0.3 s the camera goes to the rig's crouch height, moving takes it back to the sneak pose's eyes. Lower than the sneak pose (also the player's own head held low) the body gets smaller instead of pushing its feet into the floor.
Contributor
Author
…othic - the camera goes down to the kneel pose's eyes without shrinking the body Replaces the shrinking of the previous commit: crouched and still for 0.3 s the body plays S_CHESTSMALL_S0 (the hero's kneel at a chest, G1 and G2) and the camera goes to its eyes, 1.08 m at scale 1 (sneak pose: 1.40 m). Moving goes back to the sneak pose. Bodies without the kneel animation sneak.
…ng sneaks again at once)
…s after 0.15 s of real movement (the thumbstick), so leaning the head into a chest doesn't take the camera up at its lock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What
Crouched and standing still for 1 s, the VR hero kneels like at a chest in Gothic (
S_CHESTSMALL_S0, G1 and G2HUMANS.MDS). The camera goes down to the kneel pose's eyes. Moving with the thumbstick sneaks again at once (after 0.15 s of continuous movement; sneak pose, camera back up). Head movement doesn't count: the body capsule follows the head by its center, without moving. The 0.15 s keep a short push of the capsule from ending the kneel, e.g. when you lean your head into the chest. Bodies without the kneel animation keep sneaking.S_RUN)S_SNEAK)S_CHESTSMALL_S0)The body keeps its size, and its feet/knee stay on the floor, because the camera sits at the eyes of the pose it plays. The switch between poses is the animator's crossfade (0.2 s); the camera moves at the rig's crouch speed (1.5 m/s, about 0.2 s for the 0.3 m).
VrHeroLocomotion:KneelAnimation/SneakAnimation,IsMoving; crouched and not moving plays the kneel pose whenisKneeling.VRHeroBody:UpdateKneeling(1 s still while crouched; while kneeling, 0.15 s of continuous movement end it; logs the transitions),MeasureEyeHeightper pose (sneak and kneel, once per built body),UpdateCrouchHeightpicks the pose's eyes.Why
Playtest (G2, PCVR build from develop): only the first crouch after building/loading the body went low (the rig's 0.7 m). Once
S_SNEAKwas measured, the camera rose to a half crouch (1.41 m × scale), and chest locks needed a real crouch (also in sitting mode). That height is right for sneaking, which is a shallow bend in Gothic. It came from the #476 review: camera at the body's pose, so the feet stay on the floor.In the original, the hero kneels on one knee at a chest (screenshot in the comments).
Checked in the Editor (G2, save 2, XRI Device Simulator, crouch toggled):
Sneak pose (S_SNEAK): eyes 1.41 m, after 1 sCrouched and still - the hero kneels.,Kneel pose (S_CHESTSMALL_S0): eyes 1.08 m, camera 1.036 m at scale 0.958. The poses' eye heights were also computed from the .MAN files for G1 and G2 (S_SNEAK 1.40, S_CHESTSMALL_S0 1.08, S_CHESTBIG_S0 1.12, S_PRAY 1.16).How to test manually
[VRHeroBody] Kneel pose (S_CHESTSMALL_S0): eyes 1.08 m ...once per body,Crouched and still - the hero kneels./Crouch ended or moving ...on changes.Save/load
No new state. A loaded game rebuilds the body; both poses are measured again on first use.
Known gaps / follow-ups
T_CHESTSMALL_STAND_2_S0), only the crossfade.