Commit Graph

164 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
danny couture
2f37ebba08 Optimize bodysetup build by skipping DDC request when building is expected to be faster than a DDC fetch
- The number of unique bodysetup generated by splite update during load make DDC fetch irrelevant as it is a garanteed miss both on Horde Storage and on disk.
    - 8m47s to 1m26s for loading Apollo_Terrain with -DDC-Local-MissTypes=ChaosGeometryData
    - 3m05s to 1m08s for loading Apollo_Terrain normally (warm run)

#rnx
#rb Jaco.Vandyk, Francis.Hurteau, Cedric.Caillaud
#preflight 6256bc9d6520cc71237bdf8f

[CL 19753402 by danny couture in ue5-main branch]
2022-04-14 07:45:34 -04:00
Steve Robb
cc12aaac04 Math macro prefix fixes for CoreUObject and Engine.
#rb none
#jira UE-140139
#preflight 624af57b637925b5d3fb9fef

[CL 19609424 by Steve Robb in ue5-main branch]
2022-04-04 11:13:42 -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
ilya loshchinin
8d6372223e Improved allocation policy of Chaos query hit results: use an inline allocator to avoid dynamic memory allocation in base cases.
#tests FN Squads games with a server on a cloud machine (m5.4)
#rb ori.cohen

#ROBOMERGE-OWNER: ilya.loshchinin
#ROBOMERGE-AUTHOR: ilya.loshchinin
#ROBOMERGE-SOURCE: CL 19053156 via CL 19053172 via CL 19053184 via CL 19059483
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v918-19018356)

[CL 19066288 by ilya loshchinin in ue5-main branch]
2022-02-21 02:02:45 -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
kriss gossart
c256b9165e Chaos Cloth - Move back the post LWC solver to float for performance reason, since cloth is being simulated in local space.
- Fixes one remaining issue with the cloth data output transforms in LWC.
- Remove using namespace Chaos from global scope to help with unity builds.

#rb Cedric.Caillaud, Benn.Gallagher, Chris.Caulfield
#preflight 61fbd50f7b1aa76bb413ef92
#jira UE-140723, UE-126763

#ROBOMERGE-AUTHOR: kriss.gossart
#ROBOMERGE-SOURCE: CL 18842837 in //UE5/Release-5.0/... via CL 18842845 via CL 18843033
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18843045 by kriss gossart in ue5-main branch]
2022-02-03 10:12:39 -05:00
fred kimberley
7fbfaf57c8 Require explicit constructors/casts when converting between FVector, FVector3d, and FVector3f.
#jira UE-122078
#rb Andrew.Davidson, Colin.McGinley
#preflight standard build

#ROBOMERGE-AUTHOR: fred.kimberley
#ROBOMERGE-SOURCE: CL 18817999 in //UE5/Release-5.0/... via CL 18818012 via CL 18822871
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18824721 by fred kimberley in ue5-main branch]
2022-02-02 07:59:31 -05:00