Commit Graph

347 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
cedric caillaud
efbfce8de7 Chaos destruction : make geometry collection use the inertia conditioning option
[FYI] chris.caulfield

#ROBOMERGE-AUTHOR: cedric.caillaud
#ROBOMERGE-SOURCE: CL 20443210 via CL 20443211 via CL 20443217
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20449542 by cedric caillaud in ue5-main branch]
2022-06-01 04:25:06 -04:00
Jimmy Andrews
42244fd882 fix crash in Geometry Collection Proxy when we try to use GetPrimitiveSceneInfo() to get the general hitproxy color for the collection, but it returns null
#preflight 62968c1e9d75300f41bfe60a

[CL 20444420 by Jimmy Andrews in ue5-main branch]
2022-05-31 19:24:34 -04:00
cedric caillaud
1fcbb82cb7 Chaos destruction : imporvement on the remove on sleep feature
- Now also remove of the piece does not move for a certain amount of time ( velocity based ) ( behind a Cvar )
- Fix bugs with shrinking not going all the way down to zero
- Simplify math for computing off-center scale matrix ( removed most of the Transform conversion and multiplication )
- Internal clusters can now break upon removal
- Passing more info about internal clusters from PT to GT
- More memory efficient structure passed between PT and GT

#rb none
#jira none
#preflight 62918fdddb0a62f25ce74d44

[CL 20403162 by cedric caillaud in ue5-main branch]
2022-05-28 00:20:07 -04:00
max whitehead
5bc4aabca9 Add support for Geometry Collection collision filter changes at runtime
#preflight 628e7d2dc826bd5a7f02ed32
#rb cedric.caillaud

#ROBOMERGE-AUTHOR: max.whitehead
#ROBOMERGE-SOURCE: CL 20387019 via CL 20387027 via CL 20387056
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20388252 by max whitehead in ue5-main branch]
2022-05-26 20:17:19 -04:00
cedric caillaud
5ddbe667f4 Chaos destruction : allow import of collision shapes from static meshes when creating a geometry collection
#rb brice.criswell, ori.cohen
#jira none
#preflight 628dabdcaf7a2e956ba42d3d

[CL 20380362 by cedric caillaud in ue5-main branch]
2022-05-26 12:02:54 -04:00
cedric caillaud
a847b97fa2 Chaos destruction : Make sure geometry component inherits damagethreshold settings from rest collection asset
#rb trivial
#jira none
#preflight none

[CL 20349865 by cedric caillaud in ue5-main branch]
2022-05-24 12:10:43 -04:00
Rolando Caloca
1d2beccda3 Deprecated ChaosVersionString for ChaosVersionGUID to avoid a memory allocation per DLL (Found during Insights trace analysis)
#rb Ian.Fox, Benn.Gallagher
#jira none
#preflight 628ced3bc22f607f305c54db

[CL 20348406 by Rolando Caloca in ue5-main branch]
2022-05-24 10:59:08 -04:00
Jimmy Andrews
c72601ba18 fix geometry collection hit proxies when bone selection is not enabled
#jira UE-153186

#rb cedric.caillaud
#preflight 628bf826016e5daa1cd3b008

[CL 20343691 by Jimmy Andrews in ue5-main branch]
2022-05-23 22:53:11 -04:00
evgenii babinets
b98b25b1ba Enabling ISPC on more supporting platforms, but defaulting all per-system toggles to off besides cloth, since most of those show a regression so we'll start conservative and enable only for cloth for now.
This saves about ~40% of the cloth simulation cost.

#rb jeff.newquist

#ROBOMERGE-OWNER: evgenii.babinets
#ROBOMERGE-AUTHOR: evgenii.babinets
#ROBOMERGE-SOURCE: CL 20294167 via CL 20294181 via CL 20295375 via CL 20295420
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v948-20297126)

[CL 20305169 by evgenii babinets in ue5-main branch]
2022-05-20 18:55:54 -04:00
cedric caillaud
d8a335e82f Chaos : add new connection graph generation method ( delaunay filtered by bounds )
#rb none
#jira none
#preflight 6287e7b22c34da686af5b808

[CL 20301053 by cedric caillaud in ue5-main branch]
2022-05-20 15:20:13 -04:00
Jeremy Moore
ff967b1163 Remove PRIMITIVE_SCENE_DATA_FLAG_DRAWS_VELOCITY and only use PRIMITIVE_SCENE_DATA_FLAG_OUTPUT_VELOCITY.
Tidy up use of FPrimitiveSceneProxy velocity getters.
Now DrawsVelocity() is only for velocity relevance.
And HasDynamicTransform() is for determining if we need to store previous transform state.
VSM caching was using PRIMITIVE_SCENE_DATA_FLAG_DRAWS_VELOCITY so replaced that with PRIMITIVE_SCENE_DATA_FLAG_SHOULD_CACHE_SHADOW which should use the old behavior and can be tweaked in future using ShouldCacheShadow().

A common pattern for determining whether to output velocity now is to check if a previous transform exists, and to OR in AlwaysHasVelocity().
I found some proxy types that don't check for previous transform.
Also I found that the debug physics aggregate types *never* check for previous transform.
These are pre-existing potential bugs for fixing in another pass.

Also I found some proxies that don't currently fill out velocity relevance.
These are pre-existing potential bugs for fixing in another pass.

#preflight 62863f789016c6dd897f1cd2
#fyi andrew.lauritzen

[CL 20279797 by Jeremy Moore in ue5-main branch]
2022-05-19 10:08:15 -04:00
cedric caillaud
31d702e7cc Add support for the Start Awake flag for geometry collections
#rb none
#jira none
#preflight 627e7f290d2d1f6ed8d8360b

[CL 20183182 by cedric caillaud in ue5-main branch]
2022-05-13 12:55:08 -04:00
max whitehead
aff6fd52b2 Set OwnerComponent on GeometryCollection's BodyInstance, fixes component ID not set in filter data, fixing ignore component SQ param for GC.
#preflight 627ac55210766ef8c10c8c2c
#rb cedric.caillaud

#ROBOMERGE-AUTHOR: max.whitehead
#ROBOMERGE-SOURCE: CL 20143294 via CL 20143672 via CL 20144386
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20148106 by max whitehead in ue5-main branch]
2022-05-11 15:55:55 -04:00
cedric caillaud
f3c0ea7460 Fix non-nanite GC not properly updating their bounds in editor when using sequencer
#rb brice.criswell
#jira UE-147330
#preflight 627b207fde22b71c01953634

[CL 20143564 by cedric caillaud in ue5-main branch]
2022-05-11 13:06:19 -04:00
cedric caillaud
e9527f4af6 Chaos destruction : fix support for per-component gravity flag for geometry collections ( only accounted for at initialization, does not yet work at runtime )
#rb trivial
#jira none
#preflight 627af7a9c42338be6534cdca

[CL 20132209 by cedric caillaud in ue5-main branch]
2022-05-10 19:47:19 -04:00
cedric caillaud
a156b97f48 Chaos : harden manageArray Api for better detection of modification to the array
this is a step towards more automated recompoutation of some attributes dependent on others

#rb brice.criswell
#jira none
#preflight 627ae07e7e5f24d1ede8e730

[CL 20131611 by cedric caillaud in ue5-main branch]
2022-05-10 18:56:28 -04:00
cedric caillaud
8975ed02ea Chaos : Fixed crash in PIE when setting trailing event on certain geometry collection
#rb brice.criswell
#jira UE-150985
#preflight 6271d8c0e95a8b960e87b4c4

[CL 20054195 by cedric caillaud in ue5-main branch]
2022-05-04 22:12:17 -04:00
Ori Cohen
9476d7773f Made it so geometry collections can replicate from blueprints as well as handle initial dormancy
#rb Benn.Gallagher
#preflight 6272a6a6e543c1dae422f5a2

[CL 20043630 by Ori Cohen in ue5-main branch]
2022-05-04 12:47:38 -04:00
cedric caillaud
f2c5b1b18b Chaos : detsruction : better damage threshold generation
- damage threshold are now by default generated per GC piece and no more at the cluster level propagating to children
- added a checkbox to keep the compatibility with older assets
- this allow for finer artist control and make the size specific parameters to be more effective

#rb brice.criswell, max.whitehead
#jira none
#preflight 626a26172735a2c0eaeb68be

[CL 19973874 by cedric caillaud in ue5-main branch]
2022-04-28 20:20:32 -04:00
Ori Cohen
6e39819f01 Allow components to register and unregister async physics tick.
Make it so GeometryCollection doesn't register async physics tick unless replication is needed and the object simulates

#rb Cedric.Caillaud
#preflight 6268330f853fdb6fddc33c82

[CL 19925401 by Ori Cohen in ue5-main branch]
2022-04-26 14:28:07 -04:00
Ori Cohen
23e09060ca Updated GeometryCollection replication so that going in and out of relevancy works and does a hard snap.
#rb Benn.Gallagher
#preflight none

[CL 19904911 by Ori Cohen in ue5-main branch]
2022-04-25 13:09:18 -04:00
cedric caillaud
dd00e4a56a Chaos : Make sure the simulation sizespecific array has the default MaxSize to be always higher than anything the user will set
#fyi brice.criswell
#jira none
#preflight none

[CL 19857510 by cedric caillaud in ue5-main branch]
2022-04-21 18:50:41 -04:00
Tiantian Xie
aa420c06ae Fix geometry collection regression
#jira none
#rb Chris.Kulla
#preflight 626097e2886befa9a5d1897d

[CL 19841838 by Tiantian Xie in ue5-main branch]
2022-04-20 19:47:30 -04:00
Jimmy Andrews
4ef74ccc3e make fracture 'hide' array only hide already-visible faces, and never show intended-invisible faces
#jira UE-146807
#rb lonnie.li
#preflight 625d9e8e691f49969eae9914

[CL 19789991 by Jimmy Andrews in ue5-main branch]
2022-04-18 13:43:49 -04:00