Ken Pruiksma
b455b915a8
Making terrain query resolution a single float instead of a Vector2 ( #7186 )
...
* Making terrain query resolution a single float instead of a Vector2
Signed-off-by: Ken Pruiksma <pruiksma@amazon.com >
* Keeping the concept of different x/y step sizes in region queries since that may be useful and is separate from query resolution. Also keeping the concept of different x/y step sizes in physics since that's independent of the terrain gem.
Signed-off-by: Ken Pruiksma <pruiksma@amazon.com >
* Formatting cleanups
Signed-off-by: Ken Pruiksma <pruiksma@amazon.com >
* A few more minor cleanups
Signed-off-by: Ken Pruiksma <pruiksma@amazon.com >
* Added support to convert serialized Vector2 query resolution to a single float.
Signed-off-by: Ken Pruiksma <pruiksma@amazon.com >
* Switch ray intersection check back to using separate values for x and y resolution
Signed-off-by: Ken Pruiksma <pruiksma@amazon.com >
* Fixing new unit tests added to use float query resolution.
Signed-off-by: Ken Pruiksma <pruiksma@amazon.com >
* Updating automated test
Signed-off-by: Ken Pruiksma <pruiksma@amazon.com >
2022-01-31 16:10:03 -06:00
Sergey Pereslavtsev
bb93dd3315
PR feedback + refactored some code duplication in tests
...
Signed-off-by: Sergey Pereslavtsev <pereslav@amazon.com >
2022-01-27 16:08:22 +00:00
Sergey Pereslavtsev
4c01c5b67f
LYN-7637 Allow Terrain Physics Collider to assign a default physics material
...
Signed-off-by: Sergey Pereslavtsev <pereslav@amazon.com >
2022-01-26 19:15:34 +00:00
amzn-sj
8e08e42c86
Fix some warnings about unused parameters
...
Signed-off-by: amzn-sj <srikkant@amazon.com >
2022-01-20 11:01:00 -08:00
amzn-sj
4b5f4042f2
Move common code used by multiple tests into functions to reduce code duplication.
...
Signed-off-by: amzn-sj <srikkant@amazon.com >
2022-01-19 16:05:51 -08:00
amzn-sj
8fa0440030
Update TerrainPhysicsColliderTests to add mocks for the ProcessRegion functions since the TerrainPhysicsColliderComponent now uses the ProcessRegion functions
...
Signed-off-by: amzn-sj <srikkant@amazon.com >
2022-01-14 16:59:26 -08:00
sphrose
a8539a7b03
Added default material return when no mapping is assigned.
...
Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com >
2021-12-02 15:35:46 +00:00
sphrose
7e93addd53
LYN-6431 Added materials support to TerrainPhysicsCollider
...
Signed-off-by: sphrose <82213493+sphrose@users.noreply.github.com >
2021-12-01 12:56:19 +00:00
John Jones-Steele
2259cb3dc0
Moved TerrainDataRquestBus to AzFrameworkTestShared ( #5835 )
...
* Moved TerrainDataRquestBus to AzFrameworkTestShared
Signed-off-by: John Jones-Steele <82226755+jjjoness@users.noreply.github.com >
* Changes from PR
Signed-off-by: John Jones-Steele <82226755+jjjoness@users.noreply.github.com >
2021-11-24 09:29:40 +00:00
John Jones-Steele
3d67be162c
Terrain Physics Heightfield support
...
* New Heightfield Components
Signed-off-by: John Jones-Steele <jjjoness@amazon.com >
* Misc PR fixes
* Fixed linux build failure from bad #include
* Renamed "Terrain Physics Collider" to "Terrain Physics Heightfield Collider" per physics team feedback
* Fixed 1/5 -> 1/4 typo in a comment
* Added missing member copies in HeightfieldShapeConfiguration
Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com >
* Addressed PR feedback
Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com >
* Changes from review
Signed-off-by: John Jones-Steele <jjjoness@amazon.com >
* Remove tabs accidently added
Signed-off-by: John Jones-Steele <jjjoness@amazon.com >
* Fixed overly complicated scaling math.
Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com >
* Added comments to make it more obvious what's happening on CreateEnd / DestroyBegin.
Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com >
* Moved Heightfield CreatePxGeometryFromConfig into its own function
Signed-off-by: John Jones-Steele <jjjoness@amazon.com >
Co-authored-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com >
2021-10-22 10:19:36 -05:00