Commit Graph

384 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
thomas sarkanen
58c99c971c Fixed various issues with the revised re-instancing code path for anim BPs
Fixed RBAN not re-initialzing correctly on re-instancing - added a special case to reinit the simulation.
Made reinstancing handler virtual so users can add their own fallbacks in the future.
Fixed dynamic AnimGraphLayers not (un)linking correctly after live-recompile, as it was trying to link against the old (replaced) animation instance

#rb Jurre.deBaare
#preflight 628cf1dec97e4beea3a2f541

#ROBOMERGE-AUTHOR: thomas.sarkanen
#ROBOMERGE-SOURCE: CL 20349883 via CL 20349893 via CL 20349912
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v948-20297126)

[CL 20352477 by thomas sarkanen in ue5-main branch]
2022-05-24 14:26:39 -04:00
robert manuszewski
f8a812a32f Converting hardcoded short class/enum names to pathnames ahead of ANY_PACKAGE removal
#rb trivial
#jira UE-99463
#preflight 6288fd998828ea88c8aef3d0

#ROBOMERGE-OWNER: robert.manuszewski
#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 20314896 via CL 20314897 via CL 20314903 via CL 20314904
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v948-20297126)

[CL 20315214 by robert manuszewski in ue5-main branch]
2022-05-22 10:30:02 -04:00
frederick lupien
cde944102b Add GetRelevantAnimTimeRemaining & GetRelevantAnimTimeRemainingFraction to FAnimNode_StateMachine API
Add GetRelevantAnimTimeRemaining & GetRelevantAnimTimeRemainingFraction to AnimationStateMachineLibrary

[REVIEW] [at]Thomas.Sarkanen, [at]Aaron.Cox

#ROBOMERGE-OWNER: frederick.lupien
#ROBOMERGE-AUTHOR: frederick.lupien
#ROBOMERGE-SOURCE: CL 20278729 via CL 20278746 via CL 20278801 via CL 20278827
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20279575 by frederick lupien in ue5-main branch]
2022-05-19 09:57:01 -04:00
Max Chen
e26088ad53 Sequencer: Swap Root Bone with Component Root, Actor Root to put the root motion on the skeletal mesh component or the actor's root component.
#jira UE-113072
#preflight 626f2adf42539d7264367825
#rb mike.zyracki

[CL 20010505 by Max Chen in ue5-main branch]
2022-05-02 12:35:36 -04:00
christopher waters
dbede8cc23 AnimInstanceProxy.h dependency cleanup.
The original target was its include of AnimBlueprintGeneratedClass.h but more opportunities presented themselves.
Moved FNodeVisit and FAttributeRecord out of FAnimBlueprintDebugData so they could be forward declared.

#jira none
#rb steve.robb, thomas.sarkanen
#preflight 6269b3bef97c319bebbb7ded

[CL 19948162 by christopher waters in ue5-main branch]
2022-04-27 17:54:49 -04:00
braeden shosa
a08224d20c PoseSearch: Don't reset asset time when switching blend spaces in motion matching
#preflight 62685d9d2f53f9169a867b0a
#rb daniel.holden

[CL 19929211 by braeden shosa in ue5-main branch]
2022-04-26 17:22:41 -04:00
Max Chen
513caaf507 Sequencer: Added a new option, "Swap Root Bone With Component Root", to put the root motion on the skeletal mesh component.
When this option is enabled, the root bone is evaluated as usual, cached and then set to 0. The cached root bone transform is then set on the skeletal mesh component in FAnimSequencerInstanceProxy::PostEvaluate. If there is an existing transform track on the skeletal mesh component, however, the cached root bone transform is applied additively to that. Without this, the skeletal mesh wouldn't be able to be globally transformed by Sequencer.

Deprecated UpdateAnimTrackWithRootMotion so that it now takes FAnimSequencerData instead of each individual parameter separately.

#jira UE-113072
#preflight 6261a7a67d162829ae87670e
#rb mike.zyracki

[CL 19872424 by Max Chen in ue5-main branch]
2022-04-22 16:32:06 -04:00
thomas sarkanen
572b5fc0cd Fixed crash compiling a template animation blueprint with a layered blend per bone node in it
#jira UE-146422
#preflight 625ecdca3e0f6f80adb39d51
#rb Jurre.deBaare

#ROBOMERGE-AUTHOR: thomas.sarkanen
#ROBOMERGE-SOURCE: CL 19845750 in //UE5/Release-5.0/... via CL 19846121
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v940-19807014)

[CL 19846531 by thomas sarkanen in ue5-main branch]
2022-04-21 06:46:05 -04:00
samuele rigamonti
5c829b13df Fix for LayeredBoneBlend improper handling of invalid curve weight values
[REVIEW] [at]Jose Villarroel
#preflight 624df9c3334cad33ce031e73

#ROBOMERGE-AUTHOR: samuele.rigamonti
#ROBOMERGE-SOURCE: CL 19656522 via CL 19657139 via CL 19657278
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v938-19570697)

[CL 19665914 by samuele rigamonti in ue5-main branch]
2022-04-07 04:38:07 -04:00
nick brett
63417968d2 [UE][FEATURE] RBAN Access to cloth colliders
- Rigid Body Animation Nodes can now add kinematic objects at runtime to represent any Cloth Colliders defined in a parent skeleton. This can be used to improve the behavior of  RBAN alternatives to cloth simulation (often used at lower LODs).
- There is a new Checkbox (called Use External Cloth Collision) on the RBAN node preferences panel to enable this feature .

[REVIEW] [at]Chris.Caulfield, [at]Kriss.Gossart
[FYI] [at]Charles.Anderson
#preflight 62419a0e4271438b073c931a

#ROBOMERGE-AUTHOR: nick.brett
#ROBOMERGE-SOURCE: CL 19525550 via CL 19525561 via CL 19525566
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v937-19513599)

[CL 19532620 by nick brett in ue5-main branch]
2022-03-28 16:24:16 -04:00
evgenii babinets
ea2b43fcf0 Fixing CIS warning for AnimNode_RigidBody and initializing it to default.
#rb jordan.cristiano

#ROBOMERGE-AUTHOR: evgenii.babinets
#ROBOMERGE-SOURCE: CL 19483684 via CL 19484981 via CL 19486898 via CL 19496784 via CL 19497168
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v936-19480137)

[CL 19498484 by evgenii babinets in ue5-main branch]
2022-03-24 13:30:10 -04:00
evgenii babinets
45d1b35de8 Added a flag on RigidBody AnimNode to allow it to use synchronous physics simulation. Renamed the CVar to reflect that it's the project default, not an override.
#rb andrew.ladenberger
[FYI] randall.hess, dae.han, harry.boltz

#ROBOMERGE-AUTHOR: evgenii.babinets
#ROBOMERGE-SOURCE: CL 19482937 via CL 19484049 via CL 19486673 via CL 19496583 via CL 19497072
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v936-19480137)

[CL 19498475 by evgenii babinets in ue5-main branch]
2022-03-24 13:29:40 -04:00
daniel holden
e7a99d3aaf Blend space support for Motion Matching
#rb braeden.shosa, thomas.sarkanen, timothy.daoust, aaron.cox
#jira UE-133724
#preflight 62348d933f685c2b421e9c39

[CL 19435264 by daniel holden in ue5-main branch]
2022-03-18 10:45:08 -04:00
lucas dower
e143a6672a Fix for incorrect behavior in Spline IK node
#jira UE-143518
#rb thomas.sarkanen
#preflight 621f48eb31454c90ccf5ecd2

[CL 19220561 by lucas dower in ue5-main branch]
2022-03-02 08:10:35 -05:00
michael noland
e132a8476e Animation: CopyPoseFromMesh and RetargetPoseFromMesh will now walk up the attach parent hierarchy to the parent mesh component when using bUseAttachedParent instead of only checking the immediate parent, which fixes issues when the owning actor is attached via, e.g., a child actor component
#jira UE-143947
#rb marc.audy
#preflight 621982be42189ae62269b48d
#lockdown julien.marchand

#ROBOMERGE-OWNER: michael.noland
#ROBOMERGE-AUTHOR: michael.noland
#ROBOMERGE-SOURCE: CL 19162668 in //UE5/Release-5.0/... via CL 19162967
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19163001 by michael noland in ue5-main branch]
2022-02-25 22:00:29 -05:00
chris caulfield
1010d59e0e Chaos
- RBAN QPBD and linear joint solver support
- Add 3rd phase to solver loop for projection
- Add settings for QPBD to PhysicsAsset
- Add cvar overrides for all settings
- Hide settings for legacy solver

#rb michael.forot
#jira UE-140717
#preflight

#ROBOMERGE-AUTHOR: chris.caulfield
#ROBOMERGE-SOURCE: CL 19156094 in //UE5/Release-5.0/... via CL 19159784
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19161460 by chris caulfield in ue5-main branch]
2022-02-25 19:46:14 -05:00
timothy daoust
52dcf64db7 Fixed a bug where mirroring did not work correctly with some skeletons
Cherry pick with additional edits from CL18522092, CL18536881, CL18811714

#jira UE-142948
#lockdown laurent.delayan
#rb thomas.sarkanen
#preflight 620ede42c91bcd0017afa29a


#ROBOMERGE-AUTHOR: timothy.daoust
#ROBOMERGE-SOURCE: CL 19090710 via CL 19092613 via CL 19094336 via CL 19095814 via CL 19101845
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19141885 by timothy daoust in ue5-main branch]
2022-02-25 00:11:37 -05:00
daniel holden
12b9a1a1b1 Allowed BlendSpaceEvaluators to run with non-zero playrate so that they can generate notifies during playback.
#jira UE-130693
#rb thomas.sarkanen, jurre.debaare, timothy.daoust
#preflight 6214e672a97c2c3348cbda4c

[CL 19071787 by daniel holden in ue5-main branch]
2022-02-22 08:43:10 -05:00
nick brett
63e7f2d5ee [UE][FIX] Log spam in Rigid Body Anim Node
#preflight 620a323b015ab8f37a3ed156

#ROBOMERGE-AUTHOR: nick.brett
#ROBOMERGE-SOURCE: CL 18977642 via CL 18977644 via CL 18977645 via CL 18992700 via CL 18992997
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589)

[CL 18997304 by nick brett in ue5-main branch]
2022-02-15 11:33:37 -05:00
bob tellez
5a80ba8267 [Backout] - CL18693092
[FYI] Keith.Yerex
Original CL Desc
-----------------------------------------------------------------
Lazy initialization of AnimNode_RigidBody - Memory saving optimization.
#rb Thomas.Sarkanen
#preflight 61eb033745399e9f503e5260

#ROBOMERGE-AUTHOR: bob.tellez
#ROBOMERGE-SOURCE: CL 18963605 in //UE5/Release-5.0/... via CL 18964066 via CL 18965010
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589)

[CL 18965045 by bob tellez in ue5-main branch]
2022-02-11 18:24:10 -05:00
nick brett
4d0e098cfe [UE][FIX]] AnimDynamics - Ensure all parts of BodyDef are copied on chain update.
#rmx

#ROBOMERGE-AUTHOR: nick.brett
#ROBOMERGE-SOURCE: CL 18950697 via CL 18950706 via CL 18950707 via CL 18953728 via CL 18954314
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589)

[CL 18954423 by nick brett in ue5-main branch]
2022-02-11 12:19:32 -05:00
jose villarroel
bdf00e88d0 Added missing exposed value handler update in FAnimNode_SequenceEvaluatorBase::Initialize_AnyThread
#jira UE-141852
[REVIEW] [at]Thomas.Sarkanen
#rnx
#preflight 6203d392174d2620c3be066f
#lockdown Laurent.Delayen

#ROBOMERGE-AUTHOR: jose.villarroel
#ROBOMERGE-SOURCE: CL 18917632 in //UE5/Release-5.0/... via CL 18926647 via CL 18928179
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v916-18915374)

[CL 18928422 by jose villarroel in ue5-main branch]
2022-02-09 19:03:10 -05:00
jose villarroel
e754e08fca Added anim state machine set/get state functions
#jira none
#review-18894918 @Thomas.Sarkanen, @Koray.Hagen, @Aaron.Cox
#preflight 620410a4a65a8a2846254b62

[CL 18922530 by jose villarroel in ue5-main branch]
2022-02-09 14:20:43 -05:00
nick brett
6d3811e933 [UE][FIX] Bug fixes for Anim Dynamics UI
- Removed cached USkeletalMeshComponent* from AnimGraphNode as we can now get it from AnimGraphNode_Base
- Add a templatized version of AnimGraphNode_Base::GetDebuggedAnimNode() that allows retrival of derived node types
- Can now calculate chain bones without waiting for the node to be compiled - removed associated warning from UI
- Prevent Copy+Paste of bone names in chain bone array, improving workflow
- Ensure that changing bound bone name does not reset physics body parameters, improving workflow
- Improve chain body UI

[REVIEW] [at]Thomas.Sarkanen
[FYI] [at]Charles.Anderson

#ROBOMERGE-OWNER: nick.brett
#ROBOMERGE-AUTHOR: nick.brett
#ROBOMERGE-SOURCE: CL 18903371 via CL 18903392 via CL 18903410 via CL 18915322 via CL 18915359
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v915-18905420)

[CL 18915362 by nick brett in ue5-main branch]
2022-02-09 05:02:00 -05:00