Commit Graph

198 Commits

Author SHA1 Message Date
cedric caillaud
a7f17d399a Chaos: replication imporvement
- Add a timer based hard snap for updating cluster position on the client
- Change remove on break to be replication aware to make sure server authoritative cluster cannot be broken by the client

#rb none
#preflight 63215a28b602881e8e03c4a6

[CL 22011198 by cedric caillaud in ue5-main branch]
2022-09-14 13:58:55 -04:00
jimmy andrews
bf1646ed4c make fracture editor more robust to invalid selections
#rb cedric.caillaud
#preflight 631b5b372b7fe03eb6faa73a

[CL 21924660 by jimmy andrews in ue5-main branch]
2022-09-09 14:15:27 -04:00
cedric caillaud
4d8371449d Chaos : geometry collection : fix removal logic for internal clusters
- better check for internal cluster parent and its state
- refactor logic for both remove on sleep and remove on break
- reverted previous fix that was not accounting for some of special cases ( CL 21715207 )

#rb none
#jira none
#preflight 6317ec50ab25bb91f5091cf9

[CL 21837890 by cedric caillaud in ue5-main branch]
2022-09-06 21:29:52 -04:00
cedric caillaud
b316aac562 Chaos destruction : fix internal clusters remove on break behavior
- Unbroken children of internal clusters do not get removed on break anymore

#rb none
#jira none
#preflight 630eac57a416f6df25eabee0

[CL 21715207 by cedric caillaud in ue5-main branch]
2022-08-30 21:32:37 -04:00
cedric caillaud
b9ebee6662 Chaos : fix body instance warning for geomtry collection when calling SetSsimulatePhysics
- make sure we do not set the OwnerComponent before calling the body instance matching function

#rb none
#jira UE-154615
#preflight 63092788e41c77ba7a231746

[CL 21597917 by cedric caillaud in ue5-main branch]
2022-08-26 16:19:48 -04:00
cedric caillaud
7cb43e2d16 Chaos : break and shock damage propapgation
- add per component and geo collection asset damage propagation data
- store damage propapagtion info at the proxy level ( sim parameters )
- refactor clustering code to properly account for procxy suim parameters
- add shock propagation model complementary to the break propagation model

#rb none
#jira none
#fyi brice.criswell
#preflight 63053a185a5d4e46243141d9

[CL 21520742 by cedric caillaud in ue5-main branch]
2022-08-23 17:17:36 -04:00
cedric caillaud
337d00d897 Chaos : geometry collection : now expose sockets from bone names (experimental )
#robomerge EngineMerge

#rb none
#jira none
#preflight 62da08424b6d775f5f21050c

[CL 21214002 by cedric caillaud in ue5-main branch]
2022-07-21 22:26:08 -04:00
Jimmy Andrews
c04af22c23 Guard against Levels attribute not being present on geometry collection in various fracture tools/utilities
#preflight 62d889723c3df3239096f6b2
#rb cedric.caillaud

[CL 21196031 by Jimmy Andrews in ue5-main branch]
2022-07-20 20:17:14 -04:00
cedric caillaud
7f7dc6842e Replication : add internal cluster information to rep clusters
#rb max.whitehead
#preflight 62d5d9f947779a730a48fa9b

#ROBOMERGE-OWNER: cedric.caillaud
#ROBOMERGE-AUTHOR: cedric.caillaud
#ROBOMERGE-SOURCE: CL 21164636 via CL 21165746 via CL 21168913
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21182699 by cedric caillaud in ue5-main branch]
2022-07-20 12:20:09 -04:00
cedric caillaud
572e15d50e Chaos : fix crash with level attribute not being present when copy to physics thread collection happens
#jira none
#preflight 62d6eaf4c0180d80719d74b9
#fyi max.whitehead, bill.henderson
#robomerge EngineMerge

[CL 21164998 by cedric caillaud in ue5-main branch]
2022-07-19 14:11:45 -04:00
cedric caillaud
950d997b41 Chaos geometry collection : Add crumbling event
#rb max.whitehead, brice.criswell
#jira none
#preflight 62cdc362b90bf5396903ec36
#robomerge EngineMerge

[CL 21064286 by cedric caillaud in ue5-main branch]
2022-07-12 17:47:42 -04:00
cedric caillaud
709a69620e Chaos : geometry collection : fix crash in replication code when using embedded geometry
[FYI] ori.cohen, max.whitehead

#ROBOMERGE-OWNER: cedric.caillaud
#ROBOMERGE-AUTHOR: cedric.caillaud
#ROBOMERGE-SOURCE: CL 21017609 via CL 21017668 via CL 21017737
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21023889 by cedric caillaud in ue5-main branch]
2022-07-09 14:05:18 -04:00
devlin willis
85f654e877 Resolve error C2872: 'FSphere': ambiguous symbol
I encountered this state locally, specifying the type explicitly should resolve this

[FYI] cedric.caillaud
#rnx

#ROBOMERGE-OWNER: devlin.willis
#ROBOMERGE-AUTHOR: devlin.willis
#ROBOMERGE-SOURCE: CL 21012113 via CL 21013020 via CL 21013711
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21023807 by devlin willis in ue5-main branch]
2022-07-09 14:03:32 -04:00
Ben Marsh
fc92871a7e Fix static analysis warning (value used before being checked).
#fyi max.whitehead
#preflight none

[CL 21009808 by Ben Marsh in ue5-main branch]
2022-07-08 13:09:18 -04:00
cedric caillaud
9f63c4cd12 Chaos geometry collection: add anchored property
- add context menu to set a transform to be anchored
- add new array to clustered particle to be marked as anchored
- changed UpdateKinematicProperty to account for anchored flag

#rb brice.criswell, jimmy.andrews, harsha.reddy
#jira none
#preflight 62c74d63324817d81488b05e
#robomerge EngineMerge

[CL 20993384 by cedric caillaud in ue5-main branch]
2022-07-07 17:38:17 -04:00
max whitehead
e2b97e41a1 Implement Geometry Collection replication abandon cluster above level.
Add counters for replication fracture/cluster counts.
Compute GC level attribute during cook and serialize.
#preflight 62c6074e2a05d4f55b291751
#rb cedric.caillaud

#ROBOMERGE-AUTHOR: max.whitehead
#ROBOMERGE-SOURCE: CL 20985796 via CL 20985858 via CL 20986088
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 20989016 by max whitehead in ue5-main branch]
2022-07-07 14:41:38 -04:00
cedric caillaud
7c5a3bac01 Chaos geometry collection : BP functions
- extended apply external strain node to have a radius and proapgation  parameters
- added an internal strain node similar to external strain

#rb none
#jira none
#preflight 62c631b8a6654f9729a3b97a
#robomerge EngineMerge

[CL 20979120 by cedric caillaud in ue5-main branch]
2022-07-06 21:50:26 -04:00
cedric caillaud
ab5ccc1600 Chaos destruction : simplify removal runtime system code paths
- both removal system are now using common methods
- both of them are supporting crumbling of clusters ( both regular and internal )
- Abstraction of the logic into facade classes to avoid direct access to the attributes
- Fix bug with slow moving detection always return true

#rb brice.criswell, harsha.reddy, jimmy.andrew
#jira none
#preflight 62c4dad0f514983340ea85fb
#robomerge EngineMerge

[CL 20970940 by cedric caillaud in ue5-main branch]
2022-07-06 15:00:45 -04:00
Jimmy Andrews
46d8a9957f Add support for Geometry Collection in Mesh Painting mode
+ Fix bounding box calculation issues in GeometryCollectionComponent (which caused issues w/ painting)
 + Add vertex color rendering to Geometry Collection Scene Proxy (so you can see what you're painting)

#preflight 62c5a4693c5171c8170a718c
#rb cedric.caillaud

[CL 20967543 by Jimmy Andrews in ue5-main branch]
2022-07-06 11:17:25 -04:00
cedric caillaud
42ece73e37 Chaos : Add several geometry collectiion UFunction
- ApplyLinearVelocity / ApplyAngularVelocity
- ApplyBreakingLinearVelocity / ApplyBreakingAngularVelocity
- GetInitialLevel

#rb none
#jira none
#preflight 62c34ebda3568e306683a6eb
#robomerge EngineMerge

[CL 20937292 by cedric caillaud in ue5-main branch]
2022-07-04 16:46:24 -04:00
cedric caillaud
2a32876b62 Chaos geometry collection : add support for supporting internal cluster through blueprint hitResults
- added a ItemIndex abstration class to deal with regular transform indices and cluster index ones ( UniqueIdx )
- simplified the BP functions that are leverage the new ItemIndex abstraction
- simplified  the proxy equovalent function by consolidating the code in Clustering class
- adjusted removal crumbling  code to use the new APIs
- propagate internal cluster information from PT to GT ( no GT particle , but a way to query internal cluster index by the GT children for queries to use )

#rb brice.criswell, max.whitehead
#jira none
#preflight 62be14228d5e678759dfc1bf
#robomerge EngineMerge

[CL 20917279 by cedric caillaud in ue5-main branch]
2022-07-01 13:54:00 -04:00
Jimmy Andrews
894309a18b fix fracture tool selection not correctly scrolling to the newly selected bone with view levels other than 'all' + selection not respecting view level w/ shift+click
#rb cedric.caillaud
#preflight 62ba8055de2c0f4cf8af39f8

[CL 20862179 by Jimmy Andrews in ue5-main branch]
2022-06-28 14:18:01 -04:00
cedric caillaud
9df01d47f2 Chaos : add _External postfix to geometry collection physics proxy to make sure we clearly communicate what can be ran on the gamethread
#rb Benn.Gallagher
#jira none
#preflight 62b5d3b6583ff55d45f3bfd6

[CL 20809762 by cedric caillaud in ue5-main branch]
2022-06-24 11:19:02 -04:00
cedric caillaud
3d33761792 Chaos destruction : add per component control of removal ( sleep and break )
#rb none
#jira none
#preflight 62b277b4a2769f2a2d925a5e
#robomerge EngineMerge

[CL 20769683 by cedric caillaud in ue5-main branch]
2022-06-21 22:08:04 -04:00
cedric caillaud
9553ab5604 Chaos : add item index to queries for geometry collection
- added a crumbling and apply strain BP functions to geometry collection component

#rb brice.criswell, benn.gallagher
#jira none
#preflight 62b0d8d5640ffd8ee9cf4c1b

[CL 20768665 by cedric caillaud in ue5-main branch]
2022-06-21 20:12:20 -04:00