Commit Graph

543 Commits

Author SHA1 Message Date
roland munguia
5175e025fa Allow users to cast a Anim Node Reference to a Mirror Node inside a Anim Node Function.
- Allow the user to set/get Mirror flag, and BlendTime using a Mirror Anim Node Reference.

#rb aaron.cox, jose.villarroel, thomas.sarkanen

[CL 26570163 by roland munguia in ue5-main branch]
2023-07-25 08:48:32 -04:00
jose villarroel
6dc26fd3fb Added "Update If Active" flag to property access, to allow freezing specific properties during blend out.
[REVIEW] [at]Thomas.Sarkanen

[CL 26478895 by jose villarroel in ue5-main branch]
2023-07-19 21:32:37 -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
frederick lupien
43ce4fa211 Add animstats.h headers to node that use verbose profiling
[REVIEW] [at]thomas.sarkanen
[FYI] Paul.McLaurin, Jose.Villarroel

[CL 26146900 by frederick lupien in ue5-main branch]
2023-06-21 09:46:47 -04:00
daniel holden
09a76f64c4 RewindDebugger: Added ability to click on AnimNodes in the rewind debugger and get shown them in the Animation Blueprint. Made inertialization record the node and AnimInstance that made the inertialization request and made these clickable in rewind debugger. Made it so that the inertialization track will not show unless you have inertialization nodes used in your graph. Some small refactoring of the rewind debugger display of AnimNodeValues to reduce the code duplication a bit.
#rb keith.yerek

[CL 26099764 by daniel holden in ue5-main branch]
2023-06-19 15:03:03 -04:00
henrik karlsson
5db685f97d [Engine]
* Moved dllexport from type to methods/staticvar in all Engine runtime code. This improves compile times, memory and performance in dll builds

[CL 26082269 by henrik karlsson in ue5-main branch]
2023-06-17 18:13:06 -04:00
roland munguia
93720bd718 Fixes for automatic transitions rules and added the feature to manually set their trigger time.
- Added support for explicitly specifying the transitions trigger time when using state machine automatic transition rules.
- Fixed state machine automatic transitions rules not triggering from a looping animation.
- Fixed state machine automatic transitions rules that have their next state as a conduit state triggering before reaching the end of the animation.
- Consolidate all the ways to check if asset in asset player is looping into a single api call, IsLooping().
- Added getter for a AssetPlayer's DeltaTimeRecord.
- Added warning when a asset player is using looping animations with automatic rule based transitions.

#jira UE-171299, UE-180844, UE-185174

[CL 25877647 by roland munguia in ue5-main branch]
2023-06-08 14:19:19 -04:00
frederick lupien
4b5b01668c Add a define to enable verbose animation node profiling tags. Disabled by default. See ANIMNODE_STATS_VERBOSE in AnimStats.h
[REVIEW] [at]thomas.sarkanen

[CL 25815262 by frederick lupien in ue5-main branch]
2023-06-06 10:07:01 -04:00
daniel holden
c0320979ff Added inertialization track to rewind debugger. Made it so that inertialization requests track the origin of the request for debugging purposes.
#rb keith.yerek
#jira UE-185306

[CL 25794669 by daniel holden in ue5-main branch]
2023-06-05 12:21:53 -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
jose villarroel
bfd65f960c Added twist offset to LegIK node.
This allows animators inject knee motion either manually or with procedural controls within the graph.
[REVIEW] [at]Aaron.Cox, [at]Thomas.Sarkanen
#preflight 6474508d8137a37b85494382

[CL 25683102 by jose villarroel in ue5-main branch]
2023-05-30 14:35:39 -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
roland munguia
9bd181ad63 Added a deprecation warning for AnimNode_StateResult.h located in AnimGraphRuntime module since the file got moved to Engine/Animation in CL 25613502.
#jira UE-184572
#preflight 646f9474407983b9980af164

[CL 25645220 by roland munguia in ue5-main branch]
2023-05-26 12:17:49 -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
roland munguia
7dc3bb57a2 State machine entry, exit, fully blended in, and fully blended out anim node functions.
Additional changes:
- Added warnings for users using anim state events since we want to push towards using the state node functions.
- Added support for anim nodes to show any bound functions and not have them hardcoded.
- Added base context type for FAnimExecutionContext.
- Now users can specify the string for the default binding name of a function member reference in a BP by using the "DefaultBindingName" metadata tag. This will give the functionality to avoid having the default binding name be "NewFunction" and instead use the input string from the metadata tag.

#jira UE-184572
#rb Thomas.Sarkanen, jose.villarroel, aaron.cox
#preflight 646e6a836c2a2532b1f91efd

[CL 25631664 by roland munguia in ue5-main branch]
2023-05-25 18:06:26 -04:00
daniel holden
6ccf5e03c5 Added experimental DeadBlending animation graph node.
#jira UE-184569
#rb keith.yerek
#rb danny.champman
#preflight 646e0593f85111e06c8ff205

[CL 25601022 by daniel holden in ue5-main branch]
2023-05-24 09:01:31 -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
daniel holden
63ba9cb8d7 [Backout] - CL25578176
[FYI] daniel.holden
Original CL Desc
-----------------------------------------------------------------
Added experimental DeadBlending animation graph node.

#preflight 646c76414422ba05f47337a2
#rb keith.yerek, danny.chapman
#jira UE-184569

[CL 25579640 by daniel holden in ue5-main branch]
2023-05-23 07:48:35 -04:00
daniel holden
e4e1a07f7d Added experimental DeadBlending animation graph node.
#preflight 646c76414422ba05f47337a2
#rb keith.yerek, danny.chapman
#jira UE-184569

[CL 25579599 by daniel holden in ue5-main branch]
2023-05-23 07:47:40 -04:00
jose villarroel
3cb566d700 Fix for build error in AnimNode_RotateRootBone
#jira UE-186619
#rb trivial
#preflight skip

#ushell-cherrypick of 25567535 by jose.villarroel

[CL 25567676 by jose villarroel in ue5-main branch]
2023-05-22 14:10:59 -04:00
jose villarroel
07ea17b98f Rotate root bone can opt-in to rotate the root motion custom attribute
[REVIEW] [at]Aaron.Cox, [at]Fernando.Coello, [at]Thomas.Sarkanen
#preflight 6467b3770577c206c7bc6557

[CL 25553334 by jose villarroel in ue5-main branch]
2023-05-19 17:51:59 -04:00
Steve Robb
cdf61a7e2b Removed operator new (TArray) usage from headers.
#rb james.hopkin
#jira none
#preflight 6454fcdc4574b81df4e18dc5

[CL 25353357 by Steve Robb in ue5-main branch]
2023-05-05 09:13:53 -04:00
benjamin jillich
50ff8d4637 Small typo fixes
#preflight 64413668b91c13075807ce9d

[CL 25125893 by benjamin jillich in ue5-main branch]
2023-04-20 09:13:09 -04:00
sergio gardeazabal
d907da5d37 [Chaos VD] Implemented Recording using Trace
- Created a set of macros to trace data about Solver Frames, Solver Steps, and Solver Particles on Rigid Solvers and RBAN solvers
- Added a way to have the context between CVDTrace calls to know which solver started the call on a determined solver step or particle without having to copy that information to every object

#rb benn.gallagher
#jira UE-181330
#preflight 643d9d4c0a5a4b944e348487

[CL 25077633 by sergio gardeazabal in ue5-main branch]
2023-04-17 18:20:36 -04:00