You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Code/Framework/AzFramework/AzFramework/Render
bosnichd f34d3a822e
Add a ray cast API to the terrain system, implement it, and use it so entities can be placed on top of terrain. (#6895)
* Add a ray cast API to the terrain system, implement it, and use it so entities can be placed on top of terrain.

Still to do:
- Unit tests
- Profiling/benchmarks
- Optimization (if needed, may not be now after updating to use the iterative approach, but one option could be to use SIMD to ray cast against both triangles at once)

Signed-off-by: bosnichd <bosnichd@amazon.com>

* Fix typos.

Signed-off-by: bosnichd <bosnichd@amazon.com>

* Added a FindNearestIntersectionIterative to use in place of the first-pass FindnearestIntersectionRecursive attempt.

Signed-off-by: bosnichd <bosnichd@amazon.com>

* Remove some functions that are no longer being used.

Signed-off-by: bosnichd <bosnichd@amazon.com>

* Remove a unicode character from a comment to fix the validation build.

Signed-off-by: bosnichd <bosnichd@amazon.com>

* Remove another unicode character from a comment to fix the validation build.

Signed-off-by: bosnichd <bosnichd@amazon.com>

* Update to bail out as soon as t > 1.0f

Signed-off-by: bosnichd <bosnichd@amazon.com>
4 years ago
..
GameIntersectorComponent.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
GameIntersectorComponent.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
GeometryIntersectionBus.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
GeometryIntersectionStructures.h Removed ununeeded includes from EBus EBus.h and Policies.h (#4256) 4 years ago
Intersector.cpp Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Intersector.h Ensure render geometry is refreshed when the mesh component controller is moved (#6452) 4 years ago
IntersectorInterface.h Add a ray cast API to the terrain system, implement it, and use it so entities can be placed on top of terrain. (#6895) 4 years ago
RenderSystemBus.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago