Commit Graph

244 Commits

Author SHA1 Message Date
vincent robert
7f353a6ace Fix accessing deleted proxy when dispatching events
#rb cedric.caillaud

[CL 29993523 by vincent robert in ue5-main branch]
2023-11-29 13:25:49 -05:00
benn gallagher
2d111770bf Fixed physics scene pending tasks causing hangs when dispatched during world shutdown
#rb Cedric.Caillaud

[CL 29662059 by benn gallagher in ue5-main branch]
2023-11-10 18:44:55 -05:00
jaco vandyk
33813433dc The Acceleration structure Async task in Evolution will now Cancel if it did not have a chance to run before destruction
Solves:
Editor Soft-Locks at end of MRQ Render
#rb Benn.Gallagher
#jira UE-191073

[CL 29542061 by jaco vandyk in ue5-main branch]
2023-11-07 19:09:17 -05:00
marc audy
c3eef33523 Deprecate PhysXIncludes and NvClothIncludes.h
[CL 29431392 by marc audy in ue5-main branch]
2023-11-03 19:34:54 -04:00
sergio gardeazabal
5eae9be4f8 [Chaos] Removing the need to create a temp TArray when calling FPhysicsObjectExternalInterface::LockRead with a single object.
This reduces memory allocations/deallocations done by that array, which can add up when a lot of calls are made.

[REVIEW] michael.bao

[CL 28947240 by sergio gardeazabal in ue5-main branch]
2023-10-19 20:58:29 -04:00
chris caulfield
8c608be937 Chaos - support per-particle InitialOverlapDepenetrationVelocity
- remove the now-superfluous on/off flag

This connects FBodyInstance::MaxDepenetrationVelocity (previously unused in Chaos) to InitialOverlapDepenetrationVelocity on rigid particles.

#rb benn.gallagher

[CL 28823891 by chris caulfield in ue5-main branch]
2023-10-16 19:00:25 -04:00
chris caulfield
379f26a007 Chaos - fix FChaosEngineInterface::SetGlobalPose_AssumesLocked for kinematics
Set the kinematic target in SetGlobalPose so that this is a teleport and velocity reset for kinematics as intended (if a teleport is not desired, the user should be calling SetKinematicTarget, not SetGlobalPose). Previously there could be problems with interpolation in async physics.

#jira UE-196442
#rb cedric.caillaud

[CL 28665908 by chris caulfield in ue5-main branch]
2023-10-11 11:25:36 -04:00
chris caulfield
78f9c2a427 Add a flag to BodyInstance to enable/disable the initial-overlap depenetration system on a per-body basis.
#rb benn.gallagher

[CL 28479005 by chris caulfield in ue5-main branch]
2023-10-04 18:12:30 -04:00
chris caulfield
0970048e1b Chaos - add show queryonly, simonly, probeonly options to debugdraw
#rb cedric.caillaud

[CL 28303060 by chris caulfield in ue5-main branch]
2023-09-27 20:12:09 -04:00
brandon schaefer
253cb99625 AutoRTFM-ifi some missing modules
Add missing std lib calls to auto open

#rb Michael Nicolella

[CL 28205907 by brandon schaefer in ue5-main branch]
2023-09-25 17:12:18 -04:00
bill henderson
fb5a35d90c Enabling Object interface with suspension constraint.
Using Constraint Suspension on modular vehicles

#rb Michael.Bao

[CL 28079045 by bill henderson in ue5-main branch]
2023-09-21 04:14:21 -04:00
michael forot
07d641f8e9 Convex shapes simplification
#rb chris.caulfield, cedric.caillaud
#jira UE-191748, UE-193615, PLAY-6863

[CL 27995506 by michael forot in ue5-main branch]
2023-09-19 10:42:54 -04:00
danny chapman
b848218903 Clarify/fix handling of kinematics with the write-back from simulation, in particular when using the cvar SyncKinematicOnGameThread
#rb chris.caulfield

[CL 27873397 by danny chapman in ue5-main branch]
2023-09-14 06:07:30 -04:00
steve robb
da9f5a828a Replaced TChooseClass with std::conditional_t.
#rb none
#jira UE-195271

[CL 27816205 by steve robb in ue5-main branch]
2023-09-12 19:55:55 -04:00
steven barnett
ba608ec265 Add density to FPhysicsMaterial and use it for buoyancy
[CL 26926802 by steven barnett in ue5-main branch]
2023-08-08 15:22:55 -04:00
cedric caillaud
61000b99b1 Add damage modifier to physics material and an option in Geometry Collection asset to opt for it
#rb steven.barnett

[CL 26918152 by cedric caillaud in ue5-main branch]
2023-08-08 11:31:47 -04:00
jaco vandyk
f7cfdab382 UE-191196
- Zero length sweeps will now return correct normals and hit positions
- Overlaps can now return hit positions, and the normals will be in global space for all shape types

#rb Benn.Gallagher
[FYI] Tom.waterson
#jira UE-191196
[REVIEW] [at]Benn.Gallagher

[CL 26811848 by jaco vandyk in ue5-main branch]
2023-08-03 11:16:11 -04:00
steven barnett
944979e508 Add metric density to unit conversions. Use g/cm3 for physical material density.
#rb cedric.caillaud

[CL 26727986 by steven barnett in ue5-main branch]
2023-07-31 20:36:48 -04:00
michael forot
6e4094da3e Chaos implicit object ref counted ptr + union simple shapes (WIP)
#rb chris.caulfield

[CL 26722951 by michael forot in ue5-main branch]
2023-07-31 17:46:47 -04:00
vincent robert
f5a2caa9c3 Swap events double buffer on the game thread.
#rb cedric.caillaud

[CL 26445279 by vincent robert in ue5-main branch]
2023-07-18 16:11:02 -04:00
vincent robert
162b18e29a Fix missing event bug
Physics Thread is swapping the event double buffer every step, but the Game Thread has not necessarily read the data from the buffer. So the Game Thread was missing some events.
[FYI] cedric.caillaud

[CL 26361431 by vincent robert in ue5-main branch]
2023-06-30 21:47:40 -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
henrik karlsson
541c9938bd [Engine]
* Moved dll export from type to methods/static variables. This is changelist is produced by a script and contains 900+ files.

#rb none

[CL 25898513 by henrik karlsson in ue5-main branch]
2023-06-09 13:36:39 -04:00
marc audy
9c6637c501 introduce new external context safe payload that can be used for chaos acceleration structures - revamp SQ interfaces a bit to be able to accept additional types of SQ overrides
- cluster union acceleration structure is now safe even when a child physics state is destroyed

#rb jaco.vandyk, vincent.robert, benn.gallagher
#preflight 646be970b82cb3fe678098cc

[CL 25645285 by marc audy in ue5-main branch]
2023-05-26 12:18:38 -04:00
michael bao
232859631d add cvar (ClusterUnion.UseAccelerationStructure, default false for now) to add an acceleration structure to the cluster union component that'll be used for component level sweeps/raycasts/overlaps
- Modified all the low-level overlap/raycast/sweep functions to take in an optional acceleration structure override pointer.
- Converted GeomSweepSingle into a template function similar to GeomSweepMulti and GeomOverlapMulti.
- Added template specializations to take in FPhysicsGeometry for GeomSweepSingle, GeomSweepMulti, and GeomOverlapMulti.
- Added override for FChaosEngineInterface::GetGeometryCollection to take in a FPhysicsGeometry.
- Also changed the cluster union to remove the primitive component from it if the primitive component's physics state is destroyed

#rb benn.gallagher, cedric.caillaud, jaco.vandyk
#preflight 64653a88c34c2e1212aff4c0

[CL 25518722 by michael bao in ue5-main branch]
2023-05-17 19:11:33 -04:00