Tag:
Branch:
Tree:
d636049a6f
3.0
JavaSaBr-added_new_var_type
accellbaker
cleanup_build_scripts
define_list_fix
empirephoenix-patch-1
experimental
fix-456
fix-openal-soft-deadlink
gradle-4.1
in-pass-shadows
master
monkanim
native-compilation-test
opengles2-fixes
revert-573-cleanup_build_scripts
revert-671-backport_changes_from_3.2
shader-nodes-enhancement
v3.1
v3.2
v3.3
3.1-github-tag-test
3.1-snapshot-test
3.1-snapshot-test-2
3.1-snapshot-test-3
3.1-snapshot-test-4
v3.1-alpha1
v3.1.0-alpha2
v3.1.0-alpha3
v3.1.0-alpha4
v3.1.0-alpha5
v3.1.0-beta1
v3.1.0-beta2
v3.1.0-beta3
v3.1.0-beta4
v3.1.0-stable
v3.2.0-alpha1
v3.2.0-alpha2
v3.2.0-alpha3
v3.2.0-beta1
v3.2.0-beta2
v3.2.0-stable
v3.2.1-stable
v3.2.2-beta1
v3.2.2-stable
v3.2.3-stable
v3.2.4-stable
v3.3.0-alpha1
v3.3.0-alpha2
v3.3.0-alpha3
v3.3.0-alpha4
v3.3.0-alpha5
v3.3.0-beta1
v3.3.0-beta2
v3.3.0-stable
v3.3.2-stable
${ noResults }
1 Commits (d636049a6ffdc1b225cf4d9a4abb7ec7c17bd51c)
Author | SHA1 | Message | Date |
---|---|---|---|
|
3ec89ce499 |
Fix and Improve TerrainPicking (#1049)
* Fix TerrainPicking by not adding "ghost" collisions to the CollisionResults (which weren't removed). Improve TerrainPicking by allowing to do more ray tracing (previously, it stopped on the first hit, now it will stop on the first hit within range). * Upgraded TerrainTestCollision to support multiple collisions and print the collision results detailed. MultiCollision can easily be turned on/off in simpleInitApp(). During testing, I noticed a bug where in very rare cases the first collision isn't what is expected but the back side of the clicked mountain. It has to be validated if this is due to the following changes or was already present. * Added Basic Unit Tests for Collision * TerrainPicker: Change API to return int to conform with collideWith * TerrainQuad: Conform with Picker now returning the number of collisions and allow to set multipleCollisions true or false. * TerrainPicking: Fixed a bug where the perpendicular collision always returned true, no matter the result of checkTriangles. Also add support for multiple collisions (which is toggleable to the old behavior, because the picker can early out then). * Try to fix Travis Build * Fixed a Regression which occurred due to Multi Collision Handling: The method used to provide duplicate results, which is why I commented it out. This lead to corner-cases not colliding at all anymore, thus I added a unit-test and removed the commented code and instead made addCollision de-duplicate entries. |
6 years ago |