Angus Antley
9fb0f8b7c0
added condition to prevent overwriting tracker input with estimated orientation for spine2 joint
2018-08-30 00:25:53 +01:00
Angus Antley
ee33f5dc97
normalize the hip hand vector in getSpine2RotationRigSpace, made computeHandAzimuth a const function that returns a vec2
2018-08-29 01:57:49 +01:00
amantley
3c792a04c1
fixed roll rotation added to azimuth in MySkeletonModel.cpp
2018-08-28 11:25:42 -07:00
amantley
055f03878e
made changes to add roll to the spine2 rotation. also only the shoulders control the rotation recenter now
2018-08-27 14:44:27 -07:00
amantley
a60ab863a3
demo version of the head and hands determining the rotate function
2018-08-24 11:06:36 -07:00
Angus Antley
25610c7587
got the hands turning the shoulders, needs error checking
2018-08-24 11:04:36 +01:00
Angus Antley
44a6c7df5f
added hook to myskeleton model to update spine2, need to get the rotation from myavatar then we have spine rot
2018-08-24 07:17:17 +01:00
Anthony Thibault
c840670a54
Merge pull request #13519 from hyperlogic/bug-fix/stable-pole-vector-smoothing
...
Bug fix for unexpected avatar knee shifts for users wearing Vive Trackers.
2018-07-03 21:50:57 -07:00
Anthony J. Thibault
fff4348a0f
Bug fix for poleVector smoothing
...
Needs to occur in sensor space rather then avatar space.
2018-06-29 17:54:21 -07:00
amantley
e4ca6c6303
added the fixes for the lurch that happens when driving or flying
2018-06-21 11:22:26 -07:00
Anthony J. Thibault
b5a3b25adc
Tuned hip smoothing times.
2018-06-05 16:07:54 -07:00
Anthony J. Thibault
993d035d37
Smooth out fly to idle transition, to prevent hip thrusting and pops.
2018-06-05 15:45:19 -07:00
Anthony J. Thibault
558711f906
Smooth hips transition between idle and fly.
...
Also, take dt into account for the critically damped spring lerp calculation.
2018-06-04 16:57:41 -07:00
Anthony J. Thibault
c3d1daf855
Merge branch 'master' into nativeCGCode
2018-06-04 09:32:38 -07:00
luiscuenca
7b48dc2370
normalize vector
2018-05-16 10:17:38 -07:00
luiscuenca
4b09f1dc30
Fix vector transformation when calculating flying hip position
2018-05-15 14:19:17 -07:00
Anthony J. Thibault
ec638d9d91
Avatar can now look straight down without spinning 180.
...
Also, come code clean up and removal of unnecessary Y_180 flips.
2018-05-14 13:48:04 -07:00
amantley
3a10cacec0
1.added the swing twist code to update the follow rotation in MyAvatar.cpp
...
2.added step.js and cg_lean.js to the developer folder
3.added menu item for toggling the hips following between head and hips
4.added new function to return true if the root of MyAvatar is translating
to be under the head. Used to smooth the path of the hips
5.added computeCounterBalance to MyAvatar.h and cpp
6.added the menu item under developer/avatar to enable debug draw of the base of support in menu.h menu.cpp MyAvatar.h MyAvatar.cpp
7.added head yaw into the calculation of the hip rotation for the center
of gravity. This is already was happening in the deriveBodyFromHMD code
that is default
8.Changed Constants in Avatar constants for the base of support
9.fixed the over rotation of the shoulders
10.fixed scaling problem in cg computation
11.added room for going up on the toes without stretching
2018-05-07 17:41:35 -07:00
Anthony J. Thibault
b23f98b311
Removal of hips offset shifting from AnimInverseKinematics node
...
With the addition of the hips IK target, the hips offset shifting code is no longer necessary.
This PR should not effect any behavior, but it removes this unused code from the animation system.
2018-01-31 17:56:33 -08:00
Seth Alves
aefd294bf2
Merge pull request #12107 from hyperlogic/bug-fix/better-third-person-camera
...
Improve stability for HMD third person avatars
2018-01-10 17:46:47 -08:00
Anthony J. Thibault
ae997928c1
Bug fix to prevent wrists entering the avatar's torso.
...
This was inadvertently disabled in PR #11978 .
2018-01-10 11:51:44 -08:00
Anthony J. Thibault
e28f13c1db
Merge branch 'master' into bug-fix/better-third-person-camera
2018-01-09 10:34:04 -08:00
Anthony Thibault
f4c38b91b3
Merge pull request #12071 from luiscuenca/handTouch
...
Touch feeling for near grab
2018-01-08 12:50:30 -08:00
Anthony J. Thibault
61edd83987
Improve stability for HMD third person avatars
...
Previously there was a hack where the sensor to world matrix was NOT updated in HMD mode if the camera was third person.
The reason the hack existed was to make third person camera less nauseating for users.
However this had a major drawbacks.
It led to avatar hip spasms when the user turned around in the tracked volume, while in third person camera.
To fix this issue properly, the hack which prevented updating the sensor to world matrix was removed, and now the third person camera is now computed in sensor space relative to the hmd.
2018-01-08 11:26:29 -08:00
luiscuenca
8a7c68829d
Optimizations, cleanings and globals
2018-01-07 11:56:30 -07:00
Anthony J. Thibault
243dcb88ee
Bug fix for sit script.
2018-01-05 16:20:44 -08:00
luiscuenca
4f6a804fd1
Fix magic numbers
2018-01-05 16:27:48 -07:00
luiscuenca
ef0164c272
Fix tabs
2018-01-04 11:43:51 -07:00
luiscuenca
28d9409bf0
Fix default hand poses
2018-01-04 11:37:37 -07:00
luiscuenca
49bd62ca29
Touch feeling for near grab
2017-12-29 14:04:36 -07:00
Anthony J. Thibault
c4a7f4843a
Much more stable hips IK target.
...
Target is now estimated in sensor space from the head, which is very deterministic and not prone to feedback from the IK system.
Previous the hip was estimated from accumulated IK error deltas, which was not stable, as the error would tend to accumulate if the IK targets could not be reached.
2017-12-13 11:12:32 -08:00
Anthony J. Thibault
3ac09b7716
Fix run blends and removed debug draws
2017-08-25 15:48:53 -07:00
Anthony J. Thibault
9e1218b4a4
Use k-dop collision to prevent hands from entering body.
2017-08-11 14:50:00 -07:00
Anthony J. Thibault
bcb4cc32d2
another clang error fix
2017-07-27 10:26:10 -07:00
Anthony J. Thibault
778c8bf9a7
clang build error fix
2017-07-27 10:08:35 -07:00
Anthony J. Thibault
c85e187c61
first stab at secondary target pose support
2017-07-13 18:12:33 -07:00
Anthony J. Thibault
fe711ccbe9
Refactored how controller poses are stored in MyAvatar.
2017-07-13 15:01:14 -07:00
David Rowe
bed0e8ef87
Merge branch 'master' into 21396
...
# Conflicts:
# interface/src/avatar/MySkeletonModel.cpp
2017-06-26 12:07:25 +12:00
David Rowe
b26f5c5811
Clear finger joints when finger poses no longer being updated
2017-06-23 16:15:40 +12:00
David Rowe
8682cee17a
Refactoring
2017-06-23 11:33:29 +12:00
David Rowe
c54a5d8506
Tidying
2017-06-22 23:32:16 +12:00
David Rowe
3bdf267900
Implement fingers control
2017-06-22 23:32:06 +12:00
Anthony J. Thibault
c236afe68c
Simplify passing data from MySkeletonModel to Rig
2017-06-19 16:54:39 -07:00
Seth Alves
9088e288e0
don't worry about head controller being enabled, just check to see if head pose is valid
2017-06-02 13:57:53 -07:00
Seth Alves
ac6135387c
display plugins are never head controllers
2017-06-01 13:37:16 -07:00
Seth Alves
eca05d9c42
more use of head input
2017-06-01 10:57:53 -07:00
Seth Alves
e37387f45c
sync
2017-05-31 14:01:09 -07:00
Seth Alves
ffe844a8e7
Merge branch 'master' of github.com:highfidelity/hifi into head-controller
2017-05-30 13:42:20 -07:00
Dante Ruiz
108c444cc7
clean up code
2017-05-25 21:59:06 +01:00
Seth Alves
bdbc6ddcc1
change some code to look at head-controller position rather than hmd position
2017-05-25 10:50:41 -07:00