Commit Graph

904 Commits

Author SHA1 Message Date
steve robb
f8d47335a4 Replaced RemoveAt(N, 1, EAllowShrinking::*) with RemoveAt(N, EAllowShrinking::*).
[CL 31626444 by steve robb in ue5-main branch]
2024-02-19 16:51:58 -05:00
nick edwards
40f2773972 Fix compile error caused by an uninitialised const "Unit" member in FNumericUnit when initialising from another unit type.
[CL 31623545 by nick edwards in ue5-main branch]
2024-02-19 15:54:26 -05:00
alex mcadams
45051db531 Chaos Cloth: Kinematic colliders optimizations.
Moved kinematic colliders into their own spatial hash acceleration structure.
Store kinematic collider constraints in a way that they can be applied with ISPC.
#rb kriss.gossart

[CL 31396009 by alex mcadams in ue5-main branch]
2024-02-12 15:40:39 -05:00
steven barnett
f11eed6059 Add soft collision thickness and sticky friction
#rb Chris.Caulfield, benn.gallagher

#changelist validated
#virtualized

[CL 31243694 by steven barnett in ue5-main branch]
2024-02-06 20:40:28 -05:00
edwin maynard
4ca314b447 [Backout] - CL31216640 (backed out due to compile errors)
[FYI] Steven.Barnett
Original CL Desc
-----------------------------------------------------------------
Add soft collision thickness and sticky friction

#rb Benn.Gallagher, Chris.Caulfield

#changelist validated
#virtualized

[CL 31219619 by edwin maynard in ue5-main branch]
2024-02-06 12:37:00 -05:00
steven barnett
3a1992c0d3 Add soft collision thickness and sticky friction
#rb Benn.Gallagher, Chris.Caulfield

#changelist validated
#virtualized

[CL 31218280 by steven barnett in ue5-main branch]
2024-02-06 12:06:07 -05:00
jonathan bard
cb6f9dfcd7 * Added InitFromString function to FIntPoint / FIntVector to mirror their ToString function
* Added unit tests for InitFromString for FColor, FLinearColor, FVector, FVector2D, FVector4, FQuat, FRotator
#rb Josh.Adams
#jira none

[CL 31127398 by jonathan bard in ue5-main branch]
2024-02-02 11:26:03 -05:00
sergio gardeazabal
ccaa19eeab Adding back serialization operator overload that takes an FArchive to the TVector class And FLinearColor. (This was removed 5 years ago).
There are some specific cases where structured archive serialization is not needed, serializing with a plain FArchive is faster.

#jira UE-205238
#rb Steve.Robb

[CL 31099017 by sergio gardeazabal in ue5-main branch]
2024-02-01 15:27:25 -05:00
charles lefebvre
19316f65ff UE Units: Add acceleration (cm/s2 and m/s2)
#rb Yoan.StAmant
#rnx
#tests Tested in editor, preflight

[CL 31057164 by charles lefebvre in ue5-main branch]
2024-01-31 13:59:44 -05:00
alex mcadams
85516efd79 Submitting on behalf of Refik.Karic
ISPC templates integration
#rb alex.mcadams, jeff.rous

[CL 31018238 by alex mcadams in ue5-main branch]
2024-01-30 15:20:51 -05:00
aris theophanidis
fccf9b853c Removal of NetworkVersion.h from Vector2D.h (which gets included everywhere by coreminimal.h)
So NetworkVersion.h ended up being an important part of coreminimal.h
#rb Yoan.StAmant

[CL 30776723 by aris theophanidis in ue5-main branch]
2024-01-22 11:56:02 -05:00
nick edwards
4d77b481ae Fix TMatrix2x2 rotation constructor. TQuat2 should be used instead of FQuat2D.
[CL 30773802 by nick edwards in ue5-main branch]
2024-01-22 10:37:46 -05:00
steve robb
f029468598 Fixed up a lot of bool-taking container resize functions to take EAllowShrinking instead.
[CL 30729174 by steve robb in ue5-main branch]
2024-01-19 16:41:35 -05:00
steve robb
7da84c1d1b Replaced UE_NODISCARD with [[nodiscard]].
[CL 30593744 by steve robb in ue5-main branch]
2024-01-12 10:47:04 -05:00
marc audy
26e65d08c3 Silence PVS warnings
[CL 30538540 by marc audy in ue5-main branch]
2024-01-10 11:38:07 -05:00
wouter dek
49f11777a6 Add cpp types for DoubleFloat vectors/matrices.
#rb Kevin.Ortegren
#jira UE-171685

[CL 30478263 by wouter dek in ue5-main branch]
2024-01-08 06:29:21 -05:00
wyatt marvil
3549108dd6 Fix incorrect tangent computation in FInterpCurve::AutoSetTangents for linear InterpCurves
#rb huw.bowles, Richard.TalbotWatkin
#jira UE-203159

[CL 30412566 by wyatt marvil in ue5-main branch]
2023-12-20 10:43:51 -05:00
steve robb
fd871cfac0 Replaced loop with modulo in FMath::Wrap to make it run in constant time.
Added some tests that would have failed with the previous implementation due to lack of floating point precision.
Added some constexpr tests, though only the integer tests can be supported before C++23.

#rb fabian.giesen, jodon.karlik
#jira UE-202852

[CL 30374367 by steve robb in ue5-main branch]
2023-12-18 07:49:44 -05:00
ola olsson
3b2e929dc1 Fixed incorrect use of non-templated vector type in TSphere
#rb Rune.Stubbe
#rnx

[CL 30176281 by ola olsson in ue5-main branch]
2023-12-07 06:01:44 -05:00
charles bloom
8ce6a974a9 Fix some color conversion rounding in AgcReadback and OpenGLRenderTarget
#rb fabian.giesen

[CL 30032555 by charles bloom in ue5-main branch]
2023-11-30 22:37:23 -05:00
steve robb
2b77ddbfde Fix for compile error in FMath::Wrap due to using a check() in a constexpr context.
[CL 30016100 by steve robb in ue5-main branch]
2023-11-30 11:10:15 -05:00
steve robb
41b295c875 Added floating point unit tests for FMath::Wrap.
Added a new FMath::Modulo which generically encapsulates integral/float differences.

#rb fabian.giesen, jodon.karlik

[CL 30015486 by steve robb in ue5-main branch]
2023-11-30 10:44:32 -05:00
kiaran ritchie
4e92dad5ee Fixes IK Rig rotation engine test. Issues caused by floating point discrepency in Rotator/Quat conversion between Linux/Windows platforms.
#JIRA UE-198900
#rb halfdan.ingvarsson



#virtualized

[CL 29989343 by kiaran ritchie in ue5-main branch]
2023-11-29 11:07:09 -05:00
richard selneck
9d6ebecdd5 Default initialize FoundPoint in FInterpCurve<T>::FindNearestOnSegment()
#rb david.lesage steve.robb

[CL 29876932 by richard selneck in ue5-main branch]
2023-11-21 18:06:40 -05:00
alex mcadams
2280ae46c0 Update the Cloth solver plugin to optionally use the new Softs::FEvolution.
Currently Softs::FEvolution should have the same behavior as PBDEvolution, but Softs::FEvolution will ultimately support a force-based linear system solver, hence why it is keyed on EnableForceBasedSolver. The new evolution will be created if ANY LOD requests a ForceBasedSolver since the ForceBasedSolver can also just do vanilla PBD.

In the long run, we might want to just swap to the new solver entirely and clean up a bunch of code, but not doing that yet.

I did some basic tests, and due to the optimizations in presubstep, the new solver is slightly faster than the old solver.
#rb kriss.gossart
#jira UE-200450

[CL 29753593 by alex mcadams in ue5-main branch]
2023-11-15 13:51:00 -05:00