Commit Graph

123 Commits

Author SHA1 Message Date
Benn Gallagher
8757cb3641 Physics interface cleanup.
* Removed deprecated or dead code paths
* Simplified build system setup for physics support
* Deprecated build system flags and unsupported macros

#jira none
#rb Chris.Caulfield, Kriss.Gossart
#preflight 62963ec0fe779f23c8ea0c5e

[CL 20450744 by Benn Gallagher in ue5-main branch]
2022-06-01 06:59:18 -04:00
vincent robert
0dc8cfa330 broad phase optimization:
Using bounding volume of rotated geometry instead of rotating AABB
#preflight : 627bfff89f7ad2a14b73b2ae

[CL 20148456 by vincent robert in ue5-main branch]
2022-05-11 16:05:33 -04:00
Chris Caulfield
91c3a26d3f Chaos
- projectionphase  in main solver
- add teleport projection
- recombine projection flags into one flag
- remove unused iteration counts
- correct the iteration count names

#jira none
#rb jaco.vandyk, michael.forot
#preflight 6271490afe09c0cfbc3c5a1e

[CL 20026916 by Chris Caulfield in ue5-main branch]
2022-05-03 11:54:26 -04:00
Chris Caulfield
ec02986fbe Chaos - joint stabilization
- add Inertia Conditioning system to increase inertia for long, thin, or small objects (enabled by default)
- also considiers joints with connectors outside the shape
- move some particle settings into a bitfield to reduce size
- add FVec3f as shorthand for TVec3-FRealSingle

#rb cedric.caillaud, jaco.vandyk,michael.forot
#jira none
#preflight 626c1f925c220f34acf5e912

[CL 19982249 by Chris Caulfield in ue5-main branch]
2022-04-29 13:53:51 -04:00
Benn Gallagher
ffe664d2f7 Chaos: Fix geometry collection/provider asserting that its geometry is of inner types without unwrapping its implicit. Caused crash inside collision analyzer when resolving which shape type was hit.
Chaos: Fix the cast helpers for Chaos geometies only accepting callable objects that return value types

#rb Cedric.Caillaud, Vincent.Robert
#jira none
#preflight 626921835a77b946d9eb24fd

[CL 19937133 by Benn Gallagher in ue5-main branch]
2022-04-27 07:14:48 -04:00
max whitehead
b5530d6d49 Fix Sweep inflated bounds test assuming start position is at bounds center. Fixes incorrect results with objects with geometry not centered at origin.
#preflight 62682559dd35c0d6cab4c439
#rb benn.gallagher

#ROBOMERGE-AUTHOR: max.whitehead
#ROBOMERGE-SOURCE: CL 19923922 via CL 19925481 via CL 19926286
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 19929049 by max whitehead in ue5-main branch]
2022-04-26 17:16:14 -04:00
jaco vandyk
a5d28b59d2 Fixed a non uniform scaling bug for meshes
UE-148004: Collision ImpactNormal is incorrect with scaled meshes

#rb Chris.Caulfield
#fyi Michael.Lentine, Benn.Gallagher, Chris.Caulfield
#jira UE-148004

#review-19754511 @Chris.Caulfield
#preflight 625853b17a394d0082abf8e6

[CL 19759254 by jaco vandyk in ue5-main branch]
2022-04-14 13:12:06 -04:00
Benn Gallagher
e2725d6446 Chaos: Enable mask filters
Masks are now propagated to shapes correctly whereas previously the call to SetMaskFilter was a no-op and dropped the mask filter.

To match previous behaviour for mask filters (completely ignored for simulation - only ever considered for query) the mask filter check was removed for the sim filter and sim pre-filter.

#rb Max.Whitehead
#jira none
#preflight 62419e707d49f37dfd4d9e80

[CL 19525439 by Benn Gallagher in ue5-main branch]
2022-03-28 08:20:29 -04:00
Michael Lentine
3c9dfe96d1 Delete PhysX.
#rb Benn.Gallagher
#preflight 62292a4bcc09078bab64d667

[CL 19337868 by Michael Lentine in ue5-main branch]
2022-03-10 12:26:39 -05:00
benn gallagher
72bf15bd8c Chaos: Fix sweep face selection for triangle meshes that are separate but co-located, ensuring we pick the face most opposing the sweep direction.
#rb Chris.Caulfield
#jira UE-144050
#preflight 62214db5a00412627d17ffbe

#ROBOMERGE-AUTHOR: benn.gallagher
#ROBOMERGE-SOURCE: CL 19257225 in //UE5/Release-5.0/... via CL 19258505
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v924-19243027)

[CL 19263811 by benn gallagher in ue5-main branch]
2022-03-04 04:08:15 -05:00
max whitehead
e0352240d3 Fix FVector conversion errors after FVector constructor was made explicit.
#jira UE-144720
#preflight 62213cc9c57f5f14ed17fd76
#rb michael.lentine
#lockdown michael.lentine

#ROBOMERGE-AUTHOR: max.whitehead
#ROBOMERGE-SOURCE: CL 19255271 in //UE5/Release-5.0/... via CL 19258192
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v924-19243027)

[CL 19263560 by max whitehead in ue5-main branch]
2022-03-04 03:51:07 -05:00
max whitehead
74c623880b Store local inertia tensor/inverse tensor diagonals in vec3 instead of matrix, reducing memory.
#jira FORT-444042
#rb cedric.caillaud
#preflight 62212e4ea00412627d0e1a7b
#lockdown michael.lentine

#ROBOMERGE-OWNER: max.whitehead
#ROBOMERGE-AUTHOR: max.whitehead
#ROBOMERGE-SOURCE: CL 19253465 in //UE5/Release-5.0/... via CL 19257870
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v924-19243027)

[CL 19263523 by max whitehead in ue5-main branch]
2022-03-04 03:47:40 -05:00
benn gallagher
7088366645 Chaos: Implement SetLocalTransform for Chaos interface.
- Re-enabled copying of scaled implicits
 - Refactored UpdateBodyScale to work with transformed shapes and match behaviour with 4.27 (clears current local transform)
 - Added support to all geometry paths for transformed and scaled objects

#rb Cedric.Caillaud, Max.Whitehead
#jira UE-144199
#preflight 621e0eb6f1206ae3ea45cd61
#lockdown Michael.Lentine

#ROBOMERGE-AUTHOR: benn.gallagher
#ROBOMERGE-SOURCE: CL 19196943 in //UE5/Release-5.0/... via CL 19197043
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19212789 by benn gallagher in ue5-main branch]
2022-03-01 19:55:30 -05:00
chris caulfield
1010d59e0e Chaos
- RBAN QPBD and linear joint solver support
- Add 3rd phase to solver loop for projection
- Add settings for QPBD to PhysicsAsset
- Add cvar overrides for all settings
- Hide settings for legacy solver

#rb michael.forot
#jira UE-140717
#preflight

#ROBOMERGE-AUTHOR: chris.caulfield
#ROBOMERGE-SOURCE: CL 19156094 in //UE5/Release-5.0/... via CL 19159784
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19161460 by chris caulfield in ue5-main branch]
2022-02-25 19:46:14 -05:00
max whitehead
b6b8dacc30 Remove ImplicitShapeMap to save memory. Collision detection passes shapes down with implicits and stores on constraints.
#preflight 62167eda0f71e491cc09f010
#rb chris.caulfield
#lockdown michael.lentine


#ROBOMERGE-OWNER: max.whitehead
#ROBOMERGE-AUTHOR: max.whitehead
#ROBOMERGE-SOURCE: CL 19096716 via CL 19098343 via CL 19099263 via CL 19099962 via CL 19109882
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19147198 by max whitehead in ue5-main branch]
2022-02-25 10:08:21 -05:00
benn gallagher
95da3d05c1 Fixed Chaos scene using a game thread only API for an external call which can come from any non-physics thread
#rb Bill.Henderson
#jira UE-121588
#preflight 620cf085492761fc5cb54f58

#ROBOMERGE-AUTHOR: benn.gallagher
#ROBOMERGE-SOURCE: CL 19067885 in //UE5/Release-5.0/... via CL 19087955
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19127202 by benn gallagher in ue5-main branch]
2022-02-24 17:15:52 -05:00
chris caulfield
4680bfa98c Chaos - joint shock propagation in QPBD solver (disabled)
#rb michael.forot, zhengling.geng
#jira ue-140717
#preflight 62069640e24662ad5f719a80

#ROBOMERGE-AUTHOR: chris.caulfield
#ROBOMERGE-SOURCE: CL 18954551 in //UE5/Release-5.0/... via CL 18955115 via CL 18955743
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589)

[CL 18958301 by chris caulfield in ue5-main branch]
2022-02-11 14:42:03 -05:00
brice criswell
a09c8ab306 Engine : Default Destruciton Physics Material
- Added a default material for destructable objects.
#rb Benn.Gallagher
#jira UE-134121
#preflight 61fd9712f370b0d3111f77ee

#ROBOMERGE-AUTHOR: brice.criswell
#ROBOMERGE-SOURCE: CL 18892341 in //UE5/Release-5.0/... via CL 18892952 via CL 18893310
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18893342 by brice criswell in ue5-main branch]
2022-02-07 16:26:46 -05:00
Ori Cohen
e66fedd07a Added templated boilerplate for sweep and overlap on PT
#rb Max.Whitehead
#preflight 6201585397149bc07a82af88

[CL 18887996 by Ori Cohen in ue5-main branch]
2022-02-07 13:02:04 -05:00
Ori Cohen
3c734cef27 More template boilerplate to be able to do scene queries against PT data
#rb Max.Whitehead
#preflight 61fd6596e65336d14549afe3

[CL 18866111 by Ori Cohen in ue5-main branch]
2022-02-04 12:58:24 -05:00
chris caulfield
28accb1164 Chaos
- add smooth edge collision flag
- remove unused collision flag
- clean up collision flag setting API

#rb brice.criswell, cedric.caillaud
#jira none
#preflight 61f481286b5aea38e5c7a925

#ROBOMERGE-AUTHOR: chris.caulfield
#ROBOMERGE-SOURCE: CL 18781024 in //UE5/Release-5.0/... via CL 18781091 via CL 18781561
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18781679 by chris caulfield in ue5-main branch]
2022-01-28 19:50:28 -05:00
ben woodhouse
6649f31020 Simple chaos optimization
- Disable the csv category AABBTreeExpensiveStats by default
- Disable stat recording altogether in shipping
This saves 0.4ms on the GT when the CSV profiler is compiled in
#rb Zhenglin.Geng

#ROBOMERGE-AUTHOR: ben.woodhouse
#ROBOMERGE-SOURCE: CL 18758846 via CL 18758952 via CL 18758961 via CL 18761270 via CL 18762829
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18763168 by ben woodhouse in ue5-main branch]
2022-01-27 17:02:09 -05:00
andrew davidson
6d32872c8b Type truncation fixes - Physics
#rb cedric.caillaud
#preflight 61d824165d522c9b40a4ccf3

#ROBOMERGE-AUTHOR: andrew.davidson
#ROBOMERGE-SOURCE: CL 18541410 in //UE5/Release-5.0/... via CL 18541424
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18541440 by andrew davidson in ue5-release-engine-test branch]
2022-01-07 06:59:26 -05:00
noah presser
92983b66c0 Engine changes to expose velocity functionality to location based impulses
[REVIEW] [at]todd.eckert [at]jon.sourbeer [at]benn.gallagher

#ROBOMERGE-AUTHOR: noah.presser
#ROBOMERGE-SOURCE: CL 18532679 via CL 18532683 via CL 18532691 via CL 18532695 via CL 18532710 via CL 18533464 via CL 18533985
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18534176 by noah presser in ue5-release-engine-test branch]
2022-01-06 14:18:54 -05:00
brandon boswell
247068fef2 Back out changelist 18472458
#ROBOMERGE-AUTHOR: brandon.boswell
#ROBOMERGE-SOURCE: CL 18473000 via CL 18473001 via CL 18473004 via CL 18473005 via CL 18473982 via CL 18480580
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18480680 by brandon boswell in ue5-release-engine-test branch]
2021-12-16 18:20:08 -05:00