Commit Graph

255 Commits

Author SHA1 Message Date
vincent robert
db50b7029e In RBAN add an option not to run the narrow phase every solver iteration.
#prefligh 660f13bda77c355f53880216
#rb chris.caulfield

[CL 32756197 by vincent robert in ue5-main branch]
2024-04-05 07:12:38 -04:00
christopher waters
b80d33a5d6 Moving USkeletalBodySetup out of "PhysicsEngine/PhysicsAsset.h" and into its own header "PhysicsEngine/SkeletalBodySetup.h"
#rb Tim.Smith

[CL 32451501 by christopher waters in ue5-main branch]
2024-03-22 17:23:45 -04:00
sergio gardeazabal
3a17ab43c6 [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 31772836 by sergio gardeazabal in ue5-main branch]
2024-02-23 14:55:18 -05:00
nick brett
41ac13c3fb [UE] Fix for AnimDynamics debug draw transforms
- Removed unrequired transform into component space
- Removed unused ToWorldT lambda
- Added a check on bone index validity in the debug draw code to avoid an assert - incorrect debug draw is probably better than an editor crash when a node is not setup correctly.
- Green sphere representing the origin still behaves oddly when in root relative sim space, but I don't think the problem is in the debug draw code.


[REVIEW] [at]Thomas.Sarkanen
#jira UE-204875
#rnx

[CL 31566735 by nick brett in ue5-main branch]
2024-02-16 11:07:57 -05:00
yoan stamant
0d5635a910 Removed some headers dependencies on 'FHitResult' and 'FOverlapResult'
#rb Mieszko.Zielinski

[CL 31470741 by yoan stamant in ue5-main branch]
2024-02-14 09:15:30 -05:00
alex kahn
cdfd11e33e [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 31440421 by alex kahn in ue5-main branch]
2024-02-13 14:37:03 -05:00
yoan stamant
00a0c5ac5d Removed some headers dependencies on 'FHitResult' and 'FOverlapResult'
#rb Mieszko.Zielinski

[CL 31425867 by yoan stamant in ue5-main branch]
2024-02-13 09:57:09 -05:00
benjamin jillich
fb830776ad 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 31291341 by benjamin jillich in ue5-main branch]
2024-02-08 10:05:16 -05:00
danny chapman
c33560173d 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 30968089 by danny chapman in ue5-main branch]
2024-01-29 09:31:30 -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
frederick lupien
36ea43ac2c Add Per axis alpha parameter to hand IK retarget node to allow to apply the resulting translation with custom weights for each axis
#rb Jose.Villarroel
[FYI] Paul.McLaurin

[CL 30813743 by frederick lupien in ue5-main branch]
2024-01-23 14:38:17 -05:00
kiaran ritchie
3b9a1b5ca7 Prevent pop in soft IK when idling in Leg IK node.
#rb halfdan.ingvarsson
#JIRA UE-204487

[CL 30788951 by kiaran ritchie in ue5-main branch]
2024-01-22 18:09:29 -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
frederick lupien
3ec67cb51a Add a console command variable to disable hand ik retargeting anim node (a.AnimNode.HandIKRetargeting.Enable 1/0)
#rb Jose.Villarroel
[FYI] Paul.McLaurin

[CL 30599297 by frederick lupien in ue5-main branch]
2024-01-12 13:46:24 -05:00
kiaran ritchie
959c72b0a4 Adding "soft IK" to LegIK anim node.
#rb jose.villarroel
#JIRA UE-201320

[CL 30164446 by kiaran ritchie in ue5-main branch]
2023-12-06 14:46:33 -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
nick brett
10231b385e [UE] AnimDynamics CVars to override the clamp on the component linear acceleration and set a global gravity scale
- Added p.AnimDynamics.ComponentAppliedLinearAccClampOverride CVar to override the clamp on the component linear acceleration applied to AnimDynamics simulation for all assets.
- Added p.AnimDynamics.GravityScale Cvar to set a gravity scale that is applied to the default gravity and the gravity override vector.
- Prior to this change, when the sim space was set to World, the gravity override vector was only applied on init. Now it will now be applied every update with any sim space setting.

[REVIEW] [at]Benn.Gallagher
[FYI] [at]Charles.Anderson

[CL 29146184 by nick brett in ue5-main branch]
2023-10-26 15:30:36 -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
nicholas frechette
5e0c9d5dcb Add attribute check to avoid compilation failure on earlier clang versions
[REVIEW] [at]john.huelin
#rb John.Huelin

[CL 29001100 by nicholas frechette in ue5-main branch]
2023-10-21 14:25:06 -04:00