Wang Kai
ffa6a9d6e2
Fix UI scale issues. ( #2779 )
...
* Fix UI scale issues.
* Fixing of UI scaling issue.
* Unify cursor in UI scaled position.
* Scaled UI issue: JSCanvasSize modification
* Remove extra space.
* Fixed Editor viewport related issues when UI scaled.
2021-02-21 21:08:16 +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
Eugene Kozlov
f7573971f4
Update Navigation AS API. Add streaming mode to AS sample 39_CrowdNavigation. Disable bounding box padding on NavigationMesh::Allocate. Send E_NAVIGATION_MESH_REBUILT on NavigationMesh::Allocate.
2017-08-08 01:34:56 +03:00
1vanK
150c4fb26d
Export some consts to AngelScript
2017-04-09 22:17:34 +03: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
Lasse Öörni
af985e0df1
Alternative O key to create obstacles in the navigation demos. Closes #995 .
2015-10-31 22:01:04 +02:00
Yao Wei Tjong 姚伟忠
c0d8415ae8
Fix the spawn button label in CrowdNavigation demo.
...
[ci skip]
2015-10-31 14:41:26 +08:00
Lasse Öörni
b362c9a953
Remove unnecessary enum qualification.
2015-09-30 10:45:05 +03: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 姚伟忠
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
Lasse Öörni
f9f920964f
Remove agents & obstacles on OnNodeSet(null), similar to Drawables. Do not allow adding an agent when node is already null. Added missing enum in AngelScript navigation API. Do not keep a persistent array of agent handles in the AngelScript crowd example, as that keeps the agents alive even past removal from scene. Closes #729 .
2015-05-17 16:54:57 +03:00
Mike3D
cca861f6d3
Simplified sample 39 using the crowd manager
2015-05-17 10:15:41 +02: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
8f29e751b7
Fix memory leak in NavBuildData. Match capitalization of the CrowdNavigation help text in all versions.
2015-05-05 17:58:31 +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