Commit Graph

138 Commits

Author SHA1 Message Date
henrik karlsson
5b96352978 Fixes for c++ headerunits/modules.
* Adding forward declarations
* Adding "inline" in front of const/constexpr variables in headers
* Adding includes
* A few moves of ctor/dtor to cpp file

#preflight 6372b3ac0c74adb48b49f313
#rb none

[CL 23130896 by henrik karlsson in ue5-main branch]
2022-11-14 19:59:41 -05:00
benn gallagher
3750363eb2 Chaos: Fixed global namespace exposure in source files leading to ambiguous symbols in unity builds.
#rb Chris.Caulfield, Kriss.Gossart
#jira UE-168670
#preflight 636270551a32af63a8dcc721
#preflight 636264d11a32af63a8d8caec

[CL 22922321 by benn gallagher in ue5-main branch]
2022-11-02 14:19:06 -04:00
chris caulfield
df4403588a Chaos - add a flag to disable joint mass conditioning
- disable mass conditioning for all joints in TM_PhysGetSetMulti teeter-totter test

#rb benn.gallagher
#jira UE-128000

#ushell-cherrypick of 22694413 by Chris.Caulfield
#preflight 6360639fef6d25c67425b9c6

[CL 22891166 by chris caulfield in ue5-main branch]
2022-11-01 16:40:37 -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
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
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
Michael Lentine
3c9dfe96d1 Delete PhysX.
#rb Benn.Gallagher
#preflight 62292a4bcc09078bab64d667

[CL 19337868 by Michael Lentine in ue5-main branch]
2022-03-10 12:26:39 -05:00
benn gallagher
72bf15bd8c Chaos: Fix sweep face selection for triangle meshes that are separate but co-located, ensuring we pick the face most opposing the sweep direction.
#rb Chris.Caulfield
#jira UE-144050
#preflight 62214db5a00412627d17ffbe

#ROBOMERGE-AUTHOR: benn.gallagher
#ROBOMERGE-SOURCE: CL 19257225 in //UE5/Release-5.0/... via CL 19258505
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v924-19243027)

[CL 19263811 by benn gallagher in ue5-main branch]
2022-03-04 04:08:15 -05:00