Commit Graph

38 Commits

Author SHA1 Message Date
urho3d-travis-ci
1151b8a2d6 Travis CI: bump copyright to 2020. 2020-01-05 06:21:40 +00:00
urho3d-travis-ci
a476f0c401 Travis CI: bump copyright to 2019. 2019-01-12 01:00:16 +00:00
Yao Wei Tjong 姚伟忠
6d08bcd8c0
Clang-Tidy - hicpp-member-init. 2018-02-25 23:32:38 +08:00
urho3d-travis-ci
70049ba582 Travis CI: bump copyright to 2018.
[cache clear]
2018-01-01 05:35:37 +00:00
Yao Wei Tjong 姚伟忠
e2ecc52adc Clang-Tidy - cert-err58-cpp (WIP). 2017-12-31 15:38:09 +08:00
Yao Wei Tjong 姚伟忠
ca97fd9b9b Clang-Tidy - modernize-use-auto. 2017-12-31 12:46:26 +08:00
Eugene Kozlov
59391f9523 Source/Tools and Source/Samples automatic upgrade: override, typedef to using, 0 to nullptr. 2017-08-29 11:40:46 +03:00
Eugene Kozlov
ef3b6efd96 Add streaming mode to Lua samples 15_Navigation and 39_CrowdNavigation. Minor changes. 2017-08-08 01:34:57 +03:00
Eugene Kozlov
f84e9d1392 Add streaming mode to C++ samples 15_Navigation and 39_CrowdNavigation . Fix using outdated navigation mesh data for streaming. 2017-08-08 01:34:57 +03:00
urho3d-travis-ci
ee054a1507 Travis CI: bump copyright to 2017.
[ccache clear]
2017-01-01 13:01:31 +00:00
1vanK
bba9766c66 39_CrowdNavigation: animation sync 2016-09-14 11:24:20 +03:00
Lasse Öörni
8bef941082 Fix slowed down navigation crowd agent when node dirtied in E_CROWD_AGENT_NODE_REPOSITION. Send the event only after position has been updated. Check for only rotation changing when node dirtied, and do not update position / reset state in that case. Closes #1548. 2016-08-31 12:41:10 +03:00
Yao Wei Tjong 姚伟忠
1243d8bcda Regex replace all the uppercase key bindings with their constants. 2016-06-11 02:56:39 +08:00
Lasse Öörni
a794f9e59b Prefer key constants instead of ascii codes in keydown/keypress checks. (AngelScript & C++) 2016-05-30 20:45:13 +03:00
hdunderscore
467c4bd4e8 - Updated sample mouse mode setup.
- (Web) Removed some of the exit engine logic.
2016-03-27 20:01:22 +11:00
urho3d-travis-ci
c4f6f315ff Travis CI: bump copyright to 2016.
[ccache clear]
2016-01-26 13:55:03 +00:00
Lasse Öörni
af985e0df1 Alternative O key to create obstacles in the navigation demos. Closes #995. 2015-10-31 22:01:04 +02:00
Ivan K
31f3c9ab65 DEFINE_APPLICATION_MAIN -> URHO3D_DEFINE_APPLICATION_MAIN 2015-10-21 23:08:28 +04:00
Ivan K
4bcbae61fe HANDLER -> URHO3D_HANDLER 2015-10-21 21:49:02 +04:00
Lasse Öörni
69f4a405b7 Removed mention of missing functionality from CrowdNavigation help text. Fixed double -> float conversion warning. 2015-09-19 13:29:37 +03:00
Yao Wei Tjong 姚伟忠
c2471a240a Reorganize includes for Samples and Extras.
Since the URHO3D_PCH build option is made available to support non-PCH build, our build system does not rely on precompiled header to include the Urho3D.h export header anymore. The export header is auto-included by one of Urho3D headers when it is required using the right format with the help of URHO3D_IS_BUILDING compiler define. As such, there is no need to explicitly include Urho3D.h in external project too. Sorry for the flip-flop.
2015-08-27 18:07:20 +08:00
aster2013
349a3ee981 Sort include file in samples. 2015-08-27 13:54:54 +08:00
Yao Wei Tjong 姚伟忠
ac0a712f0b Refactor to rename 'filter type' to 'query filter type'.
Minor clean up on the NavBuildData class.
2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
27cc9c4277 Add filter and obstacle avoidance type attribute to CrowdManager class.
Enhance Editor to have functionality to edit the CrowdManager's filter and obstacle avoidance type attributes.
2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
c9bc4cbae3 Add new event for crowd agent formation.
Add convenient methods for querying point, path, raycast, etc using crowd's extent and filter type configuration.
2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
549b6fd8be Add crowd update callback support. Remove redundant vectors. 2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
2c3033d62a Limit interface to use only crowd agent's parameters and public APIs. 2015-08-16 15:43:12 +08:00
Yao Wei Tjong 姚伟忠
88d86548a4 Further minor clean up the CrowdAgent class.
Revise the sample so Jack walk and turn more naturally.
2015-05-28 17:52:12 +08:00
Yao Wei Tjong 姚伟忠
6b72c4412a Minor code clean up and bug fixes for DetourCrowd implementation.
Avoid using multiple vectors to hold the same set of objects in the DetourCrowd sample.
2015-05-27 21:51:10 +08:00
Mike3D
e166e7a84d Added moving obstacles and teleportation to sample 39. Also various behavior tweaks and ground texture modified to break monotony and discriminate with sample 15. If something doesn't appeal it can be reverted.
Also set default mask and areaID at OffMeshConnection initialization.
2015-05-23 09:27:39 +02:00
Mike3D
7f3a6ef86b Added off-mesh connections to sample 39 2015-05-20 10:56:32 +02:00
Mike3D
cca861f6d3 Simplified sample 39 using the crowd manager 2015-05-17 10:15:41 +02:00
Lasse Öörni
5b41352680 Minor whitespace and code convention edits. 2015-05-12 15:37:27 +03:00
JSandusky
ca7a6af1f3 CrowdAgent state handling
- CrowdAgentStateChanged event includes Node and Agent parameters
- CrowdAgentFailure event for target/agent-state failures
- GetAreaCost in NavigationMesh, script bindings updated
- Fixed error spawning Jack nodes on top of boxes in Angelscript sample
- DebugRendering for DynamicNavigationMesh layers
- Rename all references to AreaType as AreaID
- CrowdAgent angelscript enum bindings made consistent
- Include simple example handling of CrowdAgentFailure for faulty
initial state (sides of boxes) in all samples
- Consistent values in samples (box/mushroom counts)
- Completed "todo" for investigating rcFilterLedgeSpans in
DynamicNavigationMesh
2015-05-12 02:29:32 -04:00
Mike3D
581d1b550b Do not hardcode obstacle radius 2015-05-07 17:20:05 +02:00
Yao Wei Tjong 姚伟忠
252206a207 Decouple Physics subsystem from DetourCrowd implementation.
Also minor code clean up (dot the i's and cross the t's).
2015-05-07 16:52:18 +08:00
Lasse Öörni
42c352f2ba Tabs to spaces. Change NavArea Bounds to BoundingBox to match Urho convention elsewhere. Added NavArea component Lua binding. 2015-05-06 11:56:12 +03:00
JSandusky
567a29d74e Implementation of DetourCrowd and DetourTileCache
Added Components:
- DynamicNavigationMesh (uses DetourTileCache)
- Obstacle (interacts with DynamicNavigationMesh)
- DetourCrowdManager (uses DetourCrowd for crowd control)
- CrowdAgent (interacts with DetourCrowdManager)
- NavArea (marks area types)

Changes:
- Refactor NavigationMesh build process
- Addition of cylinder debug rendering
- Exposed Area Type Costs in navigation

CrowdNavigation sample for Lua, Angelscript, and C++ using
DynamicNavigationMesh, Obstacle, CrowdAgent, and DetourCrowdManager
components.
2015-05-04 22:14:00 -04:00