Go to the documentation of this file.
21 #include "ProceduralMeshComponent.h"
37 #include "RRProceduralMeshComponent.generated.h"
124 void Initialize(
bool bIsStaticBody,
bool bInIsPhysicsEnabled);
144 bool InitializeMesh(
const FString& InMeshFileName);
157 FTransform OriginRelativeTransform = FTransform::Identity;
166 bool bIsStationary =
false;
180 void SetMeshSize(
const FVector& InSize);
190 return FVector::ZeroVector;
200 return 0.5f * GetSize();
224 void SetCollisionModeAvailable(
bool bIsOn,
bool bIsHitEventEnabled =
false);
226 void EnableOverlapping(
bool bOverlapEventEnabled);
230 bool IsMeshDataValid()
const;
232 bool GetMeshData(
FRRMeshData& OutMeshData,
bool bFromBuffer);
286 bool CreateMeshBody(
const FRRMeshData& InMeshData);
290 void CreateMeshSection(
const TArray<FRRMeshNodeData>& InMeshSectionData);
294 void FinalizeMeshBodyCreation(UBodySetup* InBodySetup,
const FString& InBodySetupModelName);
static FORCEINLINE FString ComposeDynamicResourceName(const FString &InPrefix, const FString &InResourceUniqueName)
Definition: RRUObjectUtils.h:204
FString GetBodySetupModelName() const
Definition: RRProceduralMeshComponent.h:91
virtual bool ShouldCreatePhysicsState() const override
Definition: RRProceduralMeshComponent.h:244
FString MeshUniqueName
Definition: RRProceduralMeshComponent.h:87
FTimerHandle CollisionCookingTimerHandle
Definition: RRProceduralMeshComponent.h:261
FTimerHandle BodySetupTimerHandle
Definition: RRProceduralMeshComponent.h:268
Procedural mesh components. this class is used to spawn robot and object from ROS 2 service.
Definition: RRProceduralMeshComponent.h:54
static constexpr const FORCEINLINE TCHAR * GetAssetNamePrefix(const ERRResourceDataType InDataType)
Get name prefix of asset.
Definition: RRGameSingleton.h:328
void GetLocalBounds(FVector &OutMinBounds, FVector &OutMaxBounds)
Definition: RRProceduralMeshComponent.h:234
ERRShapeType
Shape types.
Definition: RRObjectCommon.h:137
void HideSelf(bool IsHidden)
Definition: RRProceduralMeshComponent.h:214
todo
Definition: RRMeshData.h:523
FOnMeshCreationDone OnMeshCreationDone
Definition: RRProceduralMeshComponent.h:148
void LockSelf()
Definition: RRProceduralMeshComponent.h:206
FVector GetSize() const
Definition: RRProceduralMeshComponent.h:184
FVector GetExtent() const
Definition: RRProceduralMeshComponent.h:196