Cain Kilgore
796e9e7ab3
Fixed things
2017-09-20 23:23:30 +01:00
Cain Kilgore
4d904bd5ce
Changed naming of avatarGrav
2017-09-20 18:43:16 +01:00
Cain Kilgore
506226ead0
Merge branch 'master' into 21542
2017-09-20 18:22:34 +01:00
Cain Kilgore
c2e342ddac
Gravity Implementation
2017-09-15 06:03:56 +01:00
Cain Kilgore
72ca62c4af
Initial Commit - more to do.
2017-09-14 00:25:11 +01:00
Anthony J. Thibault
4f830cf1dc
Calculate jump speed based on canonical jump height.
2017-08-25 15:34:51 -07:00
Anthony J. Thibault
cd6d2173cc
Bug fix for follow rotation of CharacterController
2017-08-21 18:09:58 -07:00
Anthony J. Thibault
8e56404c40
Fixes for flying and rotation re-centering in wikiplanet
2017-08-21 17:42:25 -07:00
Andrew Meadows
4994283247
remove unnecessary state check
2017-07-24 16:00:13 -07:00
Howard Stearns
a0ea306aed
cleanup, and include missing allowBackface parameter
2017-06-04 07:55:23 -07:00
howard-stearns
6b2e4c5abc
zaru stuff
2017-06-01 17:08:22 -07:00
howard-stearns
1e1dd3a633
checkpoint with working detector
2017-05-31 17:10:37 -07:00
Andrew Meadows
d065b569d3
support for variable avatar mass by size
2017-05-16 16:03:51 -07:00
Andrew Meadows
e44c2c8da3
init zero gravity to agree with init hover state
2017-05-08 12:47:32 -07:00
Andrew Meadows
d9e893ac21
minior optimization/cleanup
2017-05-08 11:02:11 -07:00
Andrew Meadows
0f643b7d66
add check to avoid divide by zero
2017-05-08 10:59:15 -07:00
Andrew Meadows
f00a3cafb6
cleanup logic to be more readable
2017-05-08 10:52:54 -07:00
Andrew Meadows
2bfbb63906
remove unused variable
2017-05-05 09:37:01 -07:00
Andrew Meadows
8ed93783bd
fix step up velocity calculation
2017-05-05 09:37:01 -07:00
Andrew Meadows
cd7be46b70
tweak threshold for minimum stepheight
2017-05-05 09:37:01 -07:00
Andrew Meadows
6e8d90e3b6
restore clear of follow accumulators
2017-05-05 09:37:01 -07:00
Andrew Meadows
fe401c7488
improved management of collisionless avatar state
2017-05-05 09:37:00 -07:00
Andrew Meadows
95a4bb9ef4
fix transition height from hover to stand
2017-05-05 09:35:49 -07:00
Andrew Meadows
e449c48888
remove one more line of cruft
2017-05-05 09:35:49 -07:00
Andrew Meadows
d34b667e82
remove kinematic character controller implemention
2017-05-05 09:35:49 -07:00
Andrew Meadows
94ee6d6838
fix driving motion of collisionless avatars
2017-05-05 09:35:49 -07:00
Andrew Meadows
e21bd7a67a
help avatar walk up steps
2017-05-05 09:35:49 -07:00
Andrew Meadows
a31a861e19
fix typo: physcis --> physics
2017-05-05 09:33:50 -07:00
Anthony J. Thibault
89ae3b3d6e
Revert "Merge pull request #8691 from highfidelity/out-of-body-experience"
...
This reverts commit efe9571ab8
, reversing
changes made to 333e9ec7f4
.
2016-12-05 15:18:03 -08:00
Andrew Meadows
2bbe2be516
fix spelling: physcis --> physics
2016-12-01 10:50:10 -08:00
Andrew Meadows
a04b7ae297
fix hover-drive in HMD
2016-11-15 11:45:09 -08:00
Andrew Meadows
51a9a99381
Merge hifi/master into hifi/out-of-body-experience
2016-10-24 08:13:42 -07:00
Seth Alves
b31acc421a
fix crash on startup
2016-10-20 10:36:14 -07:00
Andrew Meadows
6f5f6d2493
adding ray shotgun scan for avatar motion
...
using the shotgun scan results to deterimine if slope is walkable
2016-10-17 17:58:52 -07:00
Andrew Meadows
72ad974b3e
improved shape prevents avatar walking up walls
2016-10-15 16:00:02 -07:00
Andrew Meadows
6125357104
restore avatar steps up without sweeps
2016-10-14 22:35:37 -07:00
Anthony J. Thibault
35aebd21e6
Fix for upward jerk, when switching between domains.
2016-10-13 18:10:53 -07:00
Andrew Meadows
5154e98a2e
remove warning about unused variable
2016-10-05 13:43:22 -07:00
Andrew Meadows
084a1cf8ae
fix avatar step-up behavior -- eliminate hop
2016-10-05 10:59:30 -07:00
Andrew Meadows
9544c749ea
cleanup
2016-10-04 15:01:03 -07:00
Andrew Meadows
cd61f55c4a
avatar jumps to HMD position at large offset
...
if the avatar has a large offset to HMD position
it will teleport to its target position
when that jump does not put it into a state of penetration
2016-10-04 12:09:29 -07:00
Andrew Meadows
681bdf4c23
can scan for penetration at arbitrary positions
2016-10-04 12:09:29 -07:00
Andrew Meadows
4fb6d5023b
prevent avatars from walking up walls
2016-09-29 11:14:19 -07:00
Andrew Meadows
d29386c43f
better tracking of avatar gravity setting
2016-09-29 11:14:19 -07:00
Andrew Meadows
9fa9784135
fix typo that broke build
2016-09-29 11:09:09 -07:00
Andrew Meadows
a443cd65f4
add comment for simple noise filter
2016-09-28 18:08:06 -07:00
Andrew Meadows
4e1c1aec0a
less magic
2016-09-28 18:06:00 -07:00
Andrew Meadows
a10ae20bf7
measure avatar velocity while driving
...
and add to followVelocity for tighter tracking at high speeds
2016-09-28 08:29:12 -07:00
Anthony J. Thibault
9a804e19fc
Fix for null gravity when falling off ledges
2016-09-27 18:44:54 -07:00
Anthony J. Thibault
961d262df1
Improved body follow behavior
...
* follow helper lean re-centering / reconciliation now modifies bodySensorMatrix, NOT the character controller.
* The character controller now always follows the bodySensorMatrix (in world space).
This decouples the lean re-centering velocity from the velocity used to move the character controller.
We can now independently tune these things separately.
2016-09-27 16:38:48 -07:00
Anthony J. Thibault
c327c5c6ce
coding convention fix
2016-09-27 09:47:44 -07:00
Anthony J. Thibault
9567ec11af
Prevent character from walking when pinned against collision.
...
This is fixed by using the pre-action velocity from CharacterController, which does not include any motors or follow velocity.
This pre-action velocity reflects the actual rigid body velocity after collision constraints are resolved.
This should prevent the character f
2016-09-23 15:22:52 -07:00
Andrew Meadows
819e1dc694
prevent avatars from walking up vertical walls
2016-09-22 16:12:35 -07:00
Andrew Meadows
06ff984f90
sky-hook for walking up steps
2016-09-22 09:48:59 -07:00
Anthony J. Thibault
9fa8fc11c9
More stability in hips offset calculation.
2016-09-21 18:20:35 -07:00
Andrew Meadows
3c5e13b34b
final tuning of follow speeds
2016-09-20 13:45:31 -07:00
Andrew Meadows
3e02bac412
more velocity tuning
2016-09-20 10:45:13 -07:00
Andrew Meadows
55e1d05887
more follow velocity tuning
2016-09-20 10:11:25 -07:00
Andrew Meadows
0ef8ef4734
tune follow speeds
2016-09-20 09:37:51 -07:00
Andrew Meadows
59e6ca8f8d
avatar follows HMD using velocity motor
2016-09-20 08:29:55 -07:00
Andrew Meadows
a8af8d6027
move code into CharacterController::updateState()
2016-09-20 08:29:55 -07:00
Andrew Meadows
8dd5c9b92b
fix kinematic motion for ground and hover
2016-09-20 08:29:55 -07:00
Andrew Meadows
1db1295556
cleanup around CharacterController::_targetVelocity
2016-09-20 08:29:55 -07:00
Andrew Meadows
c77f6a7c16
Merge pull request #8614 from hyperlogic/out-of-body-experience
...
Turn and drive the HMD with linear velocity
2016-09-16 15:43:29 -07:00
Andrew Meadows
20418d5f58
fix hips sweep test
2016-09-15 18:39:57 -07:00
Anthony J. Thibault
c7caf9fe06
Turn and drive the HMD with linear velocity
2016-09-15 17:08:36 -07:00
Andrew Meadows
83157b573a
measure max hips offset and clamp it in IK
2016-09-15 14:55:04 -07:00
Andrew Meadows
821570fa76
fix Windows build and minor format/namechange
2016-09-15 09:32:03 -07:00
Andrew Meadows
d444603a54
simplified Aabb management for GhostObject
2016-09-14 14:57:47 -07:00
Andrew Meadows
418271e06b
ghost tracks the collision group
2016-09-14 11:49:00 -07:00
Andrew Meadows
f5c5c68937
adding kinematic character controller demo
2016-09-14 11:43:52 -07:00
Andrew Meadows
954d690b8a
expose setting avatar collisionless
2016-09-12 16:24:08 -07:00
Andrew Meadows
bc56df0be1
out-of-body with reduced recovery speeds
2016-09-08 14:31:31 -07:00
Seth Alves
87dbfa7e47
add -Wsuggest-override to compile flags and deal with fallout
2016-08-18 09:51:41 -07:00
Seth Alves
aeadbda1e1
adjust ground-to-fly logic
2016-08-04 11:34:42 -07:00
Seth Alves
e1c7ced652
increase GROUND_TO_AUTOFLY_THRESHOLD
2016-08-04 09:54:26 -07:00
Seth Alves
78e59106b4
adjust threshold for how far above the ground will cause the avatar to auto-fly
2016-08-03 15:21:49 -07:00
Atlante45
3ca158265a
Make sure getVelocityChange returns the velocityChange
2016-06-02 16:44:13 -07:00
Seth Alves
74520f5c92
Merge branch 'master' of github.com:highfidelity/hifi into no-fly-zones
2016-05-19 09:49:44 -07:00
Andrew Meadows
9786c0bfd3
remove warning about signed/unsigned conversion
2016-05-17 15:34:09 -07:00
Andrew Meadows
2f39968a03
remove debug cruft
2016-05-17 14:32:20 -07:00
Andrew Meadows
e4cb6e2b87
order-independent CharacterController motors
2016-05-17 14:02:49 -07:00
Andrew Meadows
1749bfbc58
transition to InAir state when not thrusting up
2016-05-17 14:02:47 -07:00
Andrew Meadows
9b7bf97891
enable vertical thrust while walking
2016-05-17 14:02:46 -07:00
Seth Alves
c9c619916c
Merge branch 'master' of github.com:highfidelity/hifi into no-fly-zones
2016-05-11 19:37:57 -07:00
Atlante45
bc6544a3c5
Fix MyAvatar's velocity change
2016-05-05 14:55:28 -07:00
Seth Alves
ef85cc7803
hook up zone flyingAllowed flag to character controller
2016-05-01 14:47:12 -07:00
Anthony J. Thibault
0b7a5c4df8
CharacterController: leak fix for btRigidBody and it's shape
2016-04-15 15:05:54 -07:00
Anthony J. Thibault
97bcc54360
CharacterController: separate target velocity from parent velocity.
...
Also, disable damping on the rigidBody used by the CharacterController.
2016-02-08 16:01:36 -08:00
Anthony J. Thibault
f13e31c7fc
CharacterController: removed unnecessary code.
2016-02-05 10:53:58 -08:00
Anthony J. Thibault
8ca8550f26
MyAvatar: Standing Takeoff and In-Air Animations
...
Now there are two sets of of jump takeoff and in-air animations.
* Run - Used when the character jumps or falls with a small forward velocity.
* Standing - Used when the character jumps or falls in-place or backward.
CharacterController
* increased takeoff duration to 250 ms
* increased takeoff to fly duration to 1100 ms
* added standing jump and in-air animations
* added 250 milisecond delay between ground and hover, to prevent going into hover when walking over cracks.
* take-off to in-air transitions now use the new snapshotPrev interp type for a smoother tweening.
2016-02-04 17:56:07 -08:00
Anthony J. Thibault
fff603e4e2
Removed comment
2016-02-03 10:21:27 -08:00
Anthony J. Thibault
6cc3b2b47f
Fixed unused variable warnings on OSX and Linux
2016-02-02 15:04:28 -08:00
Anthony J. Thibault
c4e1509aa2
CharacterController: better debug support of internal state machine
...
Head is no longer visible when flying fast, in first-person HMD mode.
2016-02-02 11:26:18 -08:00
Anthony J. Thibault
8b5cf3e49a
CharacterController: refined state machine.
2016-02-02 11:26:17 -08:00
Anthony J. Thibault
47f3ce3786
CharacterController jump is more reliable.
2016-02-02 11:26:16 -08:00
Anthony J. Thibault
2936811484
Added takeoff animation, WIP
...
Character controller still has some jump/in-air bugs.
2016-02-02 11:26:15 -08:00
Anthony J. Thibault
61c55ebf6c
Updated character controller with a state enumeration
...
Also, adjusted checkForSupport logic such that very slanted walls are not considered support.
2016-02-02 11:26:15 -08:00
Anthony J. Thibault
c771c925c8
MyAvatar: copy body velocity + hmd follow velocity onto avatar
...
This was inadvertently removed in a previous PR.
https://github.com/highfidelity/hifi/pull/6895
Also, renamed Velocity stat to Speed.
2016-01-27 11:20:32 -08:00
Anthony J. Thibault
bc9621baab
CharacterController: Improve ground support detection
...
In addition to the existing line probe ground check, also check if the bottom sphere of the capsule is contact with any geometry before going into hover mode.
This should prevent going into the fly animation when standing or walking on collision shapes with small gaps between elements.
2016-01-25 21:54:35 -08:00