Commit Graph

179 Commits

Author SHA1 Message Date
henrik karlsson
b744f1cb09 [PhysicsCore]
* Changed "enum EPhysicalSurface" to "enum EPhysicalSurface : int" to be able to forward declare it (it ends up being the same thing, just explicit)

#rb none
#preflight 633e12ee643eefca3d9b751b

[CL 22388111 by henrik karlsson in ue5-main branch]
2022-10-06 19:52:09 -04:00
marc audy
311f7464bf Updated ../Engine/Source/Runtime/... to inline gen.cpp files
Before:
3648 unity files
Total CPU Time: 47886.140625 s
Total time in Parallel executor: 498.81 seconds

After:
3548 unity files
Total CPU Time: 46643.828125 s
Total time in Parallel executor: 486.06 seconds

#jira
#preflight

[CL 22173263 by marc audy in ue5-main branch]
2022-09-24 13:57:58 -04:00
benn gallagher
291363b414 Chaos terminology pass
#rb Chris.Caulfield, Kriss.Gossart, Cedric.Caillaud, Jaco.VanDyk, Michael.Forot
#jira UE-159295, UE-158667, UE-158656, UE-158652, UE-158651, UE-158640, UE-158526
#preflight 6320a9cd9677b738f497c14f

[CL 22035600 by benn gallagher in ue5-main branch]
2022-09-15 15:09:35 -04:00
bryan sefcik
07894f4a07 Removed redundant private include paths from build.cs files.
Fixed include paths to be relative to the private or public folders.
Hid or removed includes that reached into other private module folders.
Updated PublicInclude paths when necessary.

#jira
#preflight 631a717cec45fbf3d74d4ba7

[CL 21916033 by bryan sefcik in ue5-main branch]
2022-09-09 00:53:22 -04:00
vincent robert
b48f2216b7 Raycast Broad Phase Grid (Bounding Volume) optimization :
Early exit when blocked hit is requested. No need to travel in further cell if hit has been found.
#preflight 6308b2c1d65521a5a5a45820

[CL 21587832 by vincent robert in ue5-main branch]
2022-08-26 07:57:28 -04:00
vincent robert
1d57c8eaec Small optimization: Remove unnecessary work
Not computing the raycast position if not necessary
#preflight 63075de603520e063c28d249

[CL 21561982 by vincent robert in ue5-main branch]
2022-08-25 07:45:08 -04:00
Benn Gallagher
ba51de108e Chaos: Remove ensure in GetWorldVelocityAtPoint that required the object to be kinematic or dynamic. It is valid to request a velocity from a static object without firing an ensure - the velocity will always be zero in that case.
In cases where a user is calculating velocity delta between bodies it's valid to just compare two calls to GetWorldVelocityAtPoint rather than having to handle the if is static case at all callsites. This is also how the interface functioned previously.

#rb trivial
#jira none
#preflight 62f63eb1ad3bd8ad646cace9

[CL 21353495 by Benn Gallagher in ue5-main branch]
2022-08-12 08:17:15 -04:00
Benn Gallagher
1cc0b83d89 Fixed crash attempting to retrieve shapes from a body instance that has no actor instance (e.g. welded bodies).
Fixed incorrect identification of owned instance shapes in GetSquaredDistanceToBody for welded instances
#rb Chris.Caulfield, Vincent.Robert
#jira none
#preflight 62ac974b486b5e268708885b

[CL 21267194 by Benn Gallagher in ue5-main branch]
2022-08-08 07:25:52 -04:00
marc audy
c8b2c0644b Fix engine non-unity issues
#rnx
#jira

#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 21234798 via CL 21234809 via CL 21234813
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21234822 by marc audy in ue5-main branch]
2022-07-24 13:15:58 -04:00
Bryan sefcik
b4a6e947d8 Ran IWYU on Public headers under Engine/Source/Runtime/...
Headers are updated to contain any missing #includes needed to compile and #includes are sorted.  Nothing is removed.

#ushell-cherrypick of 21065896 by bryan.sefcik
#preflight 62d4b1a5a6141b6adfb0c892
#jira

#ROBOMERGE-OWNER: Bryan.sefcik
#ROBOMERGE-AUTHOR: bryan.sefcik
#ROBOMERGE-SOURCE: CL 21150156 via CL 21151754 via CL 21154719
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)
#ROBOMERGE-CONFLICT from-shelf

[CL 21181076 by Bryan sefcik in ue5-main branch]
2022-07-20 11:31:36 -04:00
vincent robert
a5fa3e7800 Fix Height Field Raycast bug on flat HeightField
#preflight 62cede0ad00f3c208e4912bd

[CL 21076195 by vincent robert in ue5-main branch]
2022-07-13 14:13:53 -04:00
Benn Gallagher
5f457aece9 Chaos: Changed null actor release message from Warning to Verbose as it is a valid codepath currently when welding shapes into a body instance of a parent that is set to NoCollision.
#rb trivial
#jira none
#preflight 62c2cdd9a3568e306666b976

[CL 20933534 by Benn Gallagher in ue5-main branch]
2022-07-04 07:30:34 -04:00
steven barnett
58f9a385d7 Add Probe and QueryAndProbe to ECollisionEnabled. Single shpaes or entire objects can now be marked as physics probes, meaning that they will generate constraints, contact data, and hit results, without physically responding.
[REVIEW] chris.caulfield, benn.gallagher

#ROBOMERGE-AUTHOR: steven.barnett
#ROBOMERGE-SOURCE: CL 20780284 via CL 20781025 via CL 20781737
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v970-20704180)

[CL 20784443 by steven barnett in ue5-main branch]
2022-06-22 18:59:24 -04:00
satchit subramanian
c70285bb89 Chaos:
SetGlobalPose now no longer discards the same XR if you're kinematic or sleeping.
#rb Benn.Gallagher

#ROBOMERGE-AUTHOR: satchit.subramanian
#ROBOMERGE-SOURCE: CL 20778060 via CL 20778070 via CL 20778076
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v970-20704180)

[CL 20779880 by satchit subramanian in ue5-main branch]
2022-06-22 15:44:37 -04:00
satchit subramanian
6cf6570bec SetGlobalPose_AssumesLocked doesn't do anything if both X and R haven't changed.
#rb Benn.Gallagher
[FYI] Jeff.Bauer

#ROBOMERGE-AUTHOR: satchit.subramanian
#ROBOMERGE-SOURCE: CL 20705968 via CL 20705989 via CL 20706008
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v968-20684695)

[CL 20709289 by satchit subramanian in ue5-main branch]
2022-06-17 16:42:06 -04:00
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
vincent robert
0dc8cfa330 broad phase optimization:
Using bounding volume of rotated geometry instead of rotating AABB
#preflight : 627bfff89f7ad2a14b73b2ae

[CL 20148456 by vincent robert in ue5-main branch]
2022-05-11 16:05:33 -04:00
Chris Caulfield
91c3a26d3f Chaos
- projectionphase  in main solver
- add teleport projection
- recombine projection flags into one flag
- remove unused iteration counts
- correct the iteration count names

#jira none
#rb jaco.vandyk, michael.forot
#preflight 6271490afe09c0cfbc3c5a1e

[CL 20026916 by Chris Caulfield in ue5-main branch]
2022-05-03 11:54:26 -04:00
Chris Caulfield
ec02986fbe Chaos - joint stabilization
- add Inertia Conditioning system to increase inertia for long, thin, or small objects (enabled by default)
- also considiers joints with connectors outside the shape
- move some particle settings into a bitfield to reduce size
- add FVec3f as shorthand for TVec3-FRealSingle

#rb cedric.caillaud, jaco.vandyk,michael.forot
#jira none
#preflight 626c1f925c220f34acf5e912

[CL 19982249 by Chris Caulfield in ue5-main branch]
2022-04-29 13:53:51 -04:00
Benn Gallagher
ffe664d2f7 Chaos: Fix geometry collection/provider asserting that its geometry is of inner types without unwrapping its implicit. Caused crash inside collision analyzer when resolving which shape type was hit.
Chaos: Fix the cast helpers for Chaos geometies only accepting callable objects that return value types

#rb Cedric.Caillaud, Vincent.Robert
#jira none
#preflight 626921835a77b946d9eb24fd

[CL 19937133 by Benn Gallagher in ue5-main branch]
2022-04-27 07:14:48 -04:00
max whitehead
b5530d6d49 Fix Sweep inflated bounds test assuming start position is at bounds center. Fixes incorrect results with objects with geometry not centered at origin.
#preflight 62682559dd35c0d6cab4c439
#rb benn.gallagher

#ROBOMERGE-AUTHOR: max.whitehead
#ROBOMERGE-SOURCE: CL 19923922 via CL 19925481 via CL 19926286
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 19929049 by max whitehead in ue5-main branch]
2022-04-26 17:16:14 -04:00
jaco vandyk
a5d28b59d2 Fixed a non uniform scaling bug for meshes
UE-148004: Collision ImpactNormal is incorrect with scaled meshes

#rb Chris.Caulfield
#fyi Michael.Lentine, Benn.Gallagher, Chris.Caulfield
#jira UE-148004

#review-19754511 @Chris.Caulfield
#preflight 625853b17a394d0082abf8e6

[CL 19759254 by jaco vandyk in ue5-main branch]
2022-04-14 13:12:06 -04:00
danny couture
2f37ebba08 Optimize bodysetup build by skipping DDC request when building is expected to be faster than a DDC fetch
- The number of unique bodysetup generated by splite update during load make DDC fetch irrelevant as it is a garanteed miss both on Horde Storage and on disk.
    - 8m47s to 1m26s for loading Apollo_Terrain with -DDC-Local-MissTypes=ChaosGeometryData
    - 3m05s to 1m08s for loading Apollo_Terrain normally (warm run)

#rnx
#rb Jaco.Vandyk, Francis.Hurteau, Cedric.Caillaud
#preflight 6256bc9d6520cc71237bdf8f

[CL 19753402 by danny couture in ue5-main branch]
2022-04-14 07:45:34 -04:00
Steve Robb
cc12aaac04 Math macro prefix fixes for CoreUObject and Engine.
#rb none
#jira UE-140139
#preflight 624af57b637925b5d3fb9fef

[CL 19609424 by Steve Robb in ue5-main branch]
2022-04-04 11:13:42 -04:00
Benn Gallagher
e2725d6446 Chaos: Enable mask filters
Masks are now propagated to shapes correctly whereas previously the call to SetMaskFilter was a no-op and dropped the mask filter.

To match previous behaviour for mask filters (completely ignored for simulation - only ever considered for query) the mask filter check was removed for the sim filter and sim pre-filter.

#rb Max.Whitehead
#jira none
#preflight 62419e707d49f37dfd4d9e80

[CL 19525439 by Benn Gallagher in ue5-main branch]
2022-03-28 08:20:29 -04:00