124 Commits

Author SHA1 Message Date
yoan stamant
c9729340a7 Removed some headers dependencies on 'FHitResult' and 'FOverlapResult'
#rb Mieszko.Zielinski

[CL 32478772 by yoan stamant in 5.4 branch]
2024-03-25 14:41:09 -04:00
alex kahn
6a6abbfa61 [Backout] - CL31425693 - CIS UE Error Backout 4/4
[FYI] Yoan.StAmant
Original CL Desc
-----------------------------------------------------------------
Removed some headers dependencies on 'FHitResult' and 'FOverlapResult'
#rb Mieszko.Zielinski

[CL 32477731 by alex kahn in 5.4 branch]
2024-03-25 14:17:33 -04:00
yoan stamant
e527080e32 Removed some headers dependencies on 'FHitResult' and 'FOverlapResult'
#rb Mieszko.Zielinski

[CL 32477590 by yoan stamant in 5.4 branch]
2024-03-25 14:14:31 -04:00
sergio gardeazabal
44a7b9ad75 [ChaosVD] Fix an issue where solvers were not flagged as server and RBAN solver will have the incorrect ID recorded.
Without this fix, RBAN solver recording is non functional if a Rigid Solver has an id 1 (usual on first recordings of a session), and some visualization flags that color or hides geometry based on if a particles is from server or client does not work.

#jira UE-207855
#tests Tested by doing a recording of out test map for RBAN and playing it back PIE
#rb Benn.Gallagher, cedric.caillaud, Chris.Caulfield

[CL 31769660 by sergio gardeazabal in 5.4 branch]
2024-02-23 13:23:39 -05:00
benjamin jillich
c07e8034ce Physics is broken for the strings on Taro's hoodie in MH_UEFN_QA
Introduced new flag to ignore the RBAN LOD threshold CVAR and force use the one locally set on the anim graph node.



#changelist validated
#virtualized

[CL 31291138 by benjamin jillich in 5.4 branch]
2024-02-08 10:00:56 -05:00
danny chapman
93bc57fedc Implementing Physics Control Profiles. This continues refactoring to align PhysicsControlComponent and RigidBodyWithControl. Also fixes some problems with collisions
#jira UE-168736,UE-163102
#rb timothy.daoust

[CL 30973916 by danny chapman in 5.4 branch]
2024-01-29 13:25:56 -05:00
sergio gardeazabal
394d9ac363 [ChaosVD] Adding Scene Queries recording support
- Created CVD Macros to trace the three scene query types we have in all their modes
- Create CVD data wrappers for scene queries related data
- Added support to debug draw implicit objects in CVD directly (without creating a mesh)
- Created a new Scene Query Data inspector. This is a custom details panel which will show the data for any selected query in the viewport


#jira UE-193754, UE-203452, UE-203451, UE-193755
#rb Benn.Gallagher

[CL 30821555 by sergio gardeazabal in ue5-main branch]
2024-01-23 17:46:17 -05:00
carles fernandez
ed1ddd0c71 Simplified logic which decides whether RBAN should be enabled or disabled server side.
p.RigidBodyNodeServer has been removed in favor of the already existing "p.RigidBodyNode". We are now setting this CVar to false via DedicatedServerEngine.ini.
Refactored CVarEnableRigidBodyNode to use FAutoConsoleVariableRef instead of TAutoConsoleVariable.
Using bools directly instead of calling (CVar.GetValueOnAnyThread())

#tests Tested in editor and cooked builds (Development and Test configs).
#rb andrew.ladenberger, evgenii.babinets
[FYI] richard.smith

[CL 30816069 by carles fernandez in ue5-main branch]
2024-01-23 15:37:14 -05:00
steve robb
f029468598 Fixed up a lot of bool-taking container resize functions to take EAllowShrinking instead.
[CL 30729174 by steve robb in ue5-main branch]
2024-01-19 16:41:35 -05:00
jaime cifuentes
de0433a64a Reworked Skeleton Mesh Linkup map, to avoid leaving dead data in the LinkUpTable.
#rb Thomas.Sarkanen
#jira UE-199963

[CL 30629970 by jaime cifuentes in ue5-main branch]
2024-01-16 04:26:55 -05:00
carles fernandez
1662680b8d Disabled RBAN (Rigid Body Animation Nodes) on the server.
- Created new cvar: "p.RigidBodyNodeServer" which defaults to 0 (disabled).
- Added new STAT_RigidBodyNodeInitTime_SetupSimulation which tracks the more expensive part of calling FAnimNode_RigidBody::InitPhysics.
#rb matt.harris, richard.smith

#tests Tested in editor and cooked builds (Development and Test configs).
[FYI] richard.smith

[CL 29962655 by carles fernandez in ue5-main branch]
2023-11-28 12:14:00 -05:00
mickael gilabert
c3df45d9f7 Fix OOB when accessing SkeletonBoneIndexToBodyIndex array with a negative index
[REVIEW] [at]nicholas.frechette
#rnx

[CL 29277618 by mickael gilabert in ue5-main branch]
2023-10-31 11:43:27 -04:00
benjamin jillich
3ddf102b31 Runtime switching override physics assets on rigid body animation node using function library
A few days ago I've added runtime switching for the override physics assets by exposing the override physics assets as a pin. To align better with the pattern we use with larger objects, I've now changed that to a function library.


#changelist validated

#virtualized

[CL 29127203 by benjamin jillich in ue5-main branch]
2023-10-26 05:08:54 -04:00
stan hormell
8c1ae5f6e9 [Backout] - CL29082994 - CIS Error
[FYI] benjamin.jillich
Original CL Desc
-----------------------------------------------------------------
Runtime switching override physics assets on rigid body animation node using function library

A few days ago I've added runtime switching for the override physics assets by exposing the override physics assets as a pin. To align better with the pattern we use with larger objects, I've now changed that to a function library.

[CL 29110798 by stan hormell in ue5-main branch]
2023-10-25 19:44:03 -04:00
benjamin jillich
21abf94281 Runtime switching override physics assets on rigid body animation node using function library
A few days ago I've added runtime switching for the override physics assets by exposing the override physics assets as a pin. To align better with the pattern we use with larger objects, I've now changed that to a function library.

[CL 29083014 by benjamin jillich in ue5-main branch]
2023-10-25 05:49:26 -04:00
dan kaufman
2ab516c284 Add new physics controls for use with RigidBody AnimNodes
Slack thread with more info
https://epicgames.slack.com/archives/C045B1XPYTA/p1698083710894179
NOTE:  Tested w/ full Durian run (PIE) in DEV-FN-27 with changes applied locally
[FYI] Chris.Caulfield, Charles.Anderson
#rnx

[CL 29077898 by dan kaufman in ue5-main branch]
2023-10-25 02:58:29 -04:00
benjamin jillich
7df2820f11 RBAN Static analysis fix
[CL 28884867 by benjamin jillich in ue5-main branch]
2023-10-18 14:33:06 -04:00
benjamin jillich
04ce605fee RBAN can now expose the override physics asset as a pin
* Detects changes on the physics override asset in case it gets piped in as a pin and re-initializes physics along with the bone references.
* Added a new property to control if the physics asset shall be defaulted to the one set to the skeletal mesh in case the overwrite physics asset is not specified. Default is true to ensure behavior doesn't change.

[CL 28873907 by benjamin jillich in ue5-main branch]
2023-10-18 07:42:40 -04:00
nick brett
d1c6023925 [UE] RBAN Add CVar to force the use of the default deferred simulation CVar to determine whether to defer simulation, ignoring any settings in individual nodes.
- This can be used to force deferred simulation on or off for all RBAN

#rb [at]chris.caulfield
[FYI] [at]Ryan.Wiederkehr, [at]Charles.Anderson

[CL 28268650 by nick brett in ue5-main branch]
2023-09-27 06:37:32 -04:00
nick brett
829ee6bc87 [UE] Call FActorHandle::SetKinematicTarget instead of FActorHandle::SetWorldTransform in FAnimNode_RigidBody
- Fixes bug (introduced in CL-25315823) where Kinematic bodies included in an RBAN simuation to represent cloth colliders or world space objects fail to collide with other bodies because their bounding boxes are not updated after calls to FActorHandle::SetWorldTransform.

[REVIEW] [at]Chris.Caulfield
#rnx

[CL 26428233 by nick brett in ue5-main branch]
2023-07-18 05:09:25 -04:00
nick brett
88e3641ff5 [UE] RBAN Cloth Colliders fix for missing bodies
- Check for the the presence of collider assets in PreUpdate rather than InitPhysics as the bodies are not always present by the time InitPhysics is called. This mimics the behaviour of the cloth system.

#rb [at]Chris.Caulfield
#rnx

[CL 26288712 by nick brett in ue5-main branch]
2023-06-28 12:34:34 -04:00
danny chapman
0e5c4849f3 Build fix - make some functions inline so they can be used elsewhere
#rb trivial
#preflight 647a01e3e75a2263919b0dc5

[CL 25764895 by danny chapman in ue5-main branch]
2023-06-02 12:32:07 -04:00
kirill zorin
b6ee3a6c64 Fix UE_LOG callsites that have format string-related UB
#rb trivial
#preflight 647107780a6634dbb236a0a6

[CL 25651638 by kirill zorin in ue5-main branch]
2023-05-26 15:52:39 -04:00
dan oconnor
0a97a12d8b Mark FSimSpaceSettings as POD, it has a constructor but can be copied with memcpy, this will result in STRUCT_IsPlainOldData being set, which will speed up working with UserDefinedStructs that aggregate this structure. This structure has been embedded heavily in some UserDefinedStruct (ex. RBANParamsStruct). Drawback to this change is that if we add NON-Pod data to this structure we will memcpy it.
#rb chris.caulfield
#jira
#rnx

[CL 25644740 by dan oconnor in ue5-main branch]
2023-05-26 12:11:11 -04:00
chris caulfield
dd1b9b3b14 RBAN - temp workaround and logging for OOB access of BodyAnimData
#rb benn.gallagher

[CL 25592108 by chris caulfield in ue5-main branch]
2023-05-23 18:11:16 -04:00