UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CastingUtilities.h File Reference

Go to the source code of this file.

Namespaces

namespace  Chaos
 
namespace  Chaos::Utilities
 

Functions

template<typename Lambda >
FORCEINLINE_DEBUGGABLE decltype(autoChaos::Utilities::CastHelper (const FImplicitObject &Geom, const Lambda &Func)
 
template<typename Lambda >
FORCEINLINE_DEBUGGABLE decltype(autoChaos::Utilities::CastHelper (const FImplicitObject &Geom, const FRigidTransform3 &TM, const Lambda &Func)
 
template<typename Lambda >
FORCEINLINE_DEBUGGABLE decltype(autoChaos::Utilities::CastHelperNoUnwrap (const FImplicitObject &Geom, const FRigidTransform3 &TM, const Lambda &Func)
 
template<typename Lambda >
FORCEINLINE_DEBUGGABLE decltype(autoChaos::Utilities::CastHelperNoUnwrap (const FImplicitObject &Geom, const FRigidTransform3 &TM0, const FRigidTransform3 &TM1, const Lambda &Func)
 
const FImplicitObjectChaos::Utilities::ImplicitChildHelper (const FImplicitObject *ImplicitObject)
 
template<typename T , typename Lambda >
FORCEINLINE_DEBUGGABLE decltype(autoChaos::Utilities::CastWrapped (const FImplicitObject &A, const Lambda &Func)
 Given an ImplicitObject known to be of type T or a wrapper around T, call the Lambda with the concrete type which will be const T*, const TImplicitObjectInstanced<T>*, or const TImplicitObjectScaled<T>*.
 
template<typename Lambda , bool bRootObject>
FORCEINLINE_DEBUGGABLE void Chaos::Utilities::VisitConcreteObjectsImpl (const FImplicitObject &Geom, const Lambda &Func, int32 RootObjectIndex)
 
template<typename Lambda >
FORCEINLINE_DEBUGGABLE void Chaos::Utilities::VisitConcreteObjects (const FImplicitObject &Geom, const Lambda &Func)
 Similar to FImplicitObject::VisitLeafObjects, but provides only the root object index (ie, the index into a particle's ShapeInstance array) and the concrete type of the leaf object. This is useful to avoid requiring users to write lambdas inside lambdas or do manual type checking if all the caller wants to do is perform some operation on each of the underlying geometries.