Component of ARRMeshActor. UStaticMeshComponent with utils.
More...
#include <RRStaticMeshComponent.h>
|
| virtual void | BeginPlay () override |
| | It is considered that a mesh component should only be physically activated if its Owning Actor is Physically Enabled,. More...
|
| |
◆ URRStaticMeshComponent()
| URRStaticMeshComponent::URRStaticMeshComponent |
( |
| ) |
|
◆ BeginPlay()
| virtual void URRStaticMeshComponent::BeginPlay |
( |
| ) |
|
|
overrideprotectedvirtual |
It is considered that a mesh component should only be physically activated if its Owning Actor is Physically Enabled,.
thus not auto activating physics here! Rather, it is left to the Owning actor to do it!
◆ CreateMesh()
| UStaticMesh* URRStaticMeshComponent::CreateMesh |
( |
const FRRMeshData & |
InMeshData, |
|
|
bool |
bInAsVisualMesh |
|
) |
| |
Create a static mesh.
- Parameters
-
| InMeshData | |
| bInAsVisualMesh | Whether it is created as a visual or collision mesh |
- Returns
- UStaticMesh
◆ CreateMeshBody()
| UStaticMesh* URRStaticMeshComponent::CreateMeshBody |
( |
const FRRMeshData & |
InMeshData | ) |
|
Create a Mesh Body object.
- Note
- This function could be invoked from an async task running in GameThread
- Parameters
-
- Returns
- UStaticMesh*
◆ CreateMeshSection()
| void URRStaticMeshComponent::CreateMeshSection |
( |
const TArray< FRRMeshNodeData > & |
InMeshSectionData, |
|
|
FMeshDescriptionBuilder & |
OutMeshDescBuilder |
|
) |
| |
|
private |
◆ EnableOverlapping()
| void URRStaticMeshComponent::EnableOverlapping |
( |
bool |
bOverlapEventEnabled | ) |
|
◆ GenerateCustomSimpleCollision()
| void URRStaticMeshComponent::GenerateCustomSimpleCollision |
( |
const FRRMeshData & |
InMeshData, |
|
|
UBodySetup * |
OutBodySetup |
|
) |
| |
◆ GetExtent()
| FVector URRStaticMeshComponent::GetExtent |
( |
| ) |
const |
Get the extent of bounding box of the mesh.
- Returns
- FVector
UFUNCTION()
◆ GetScaledExtent()
| FVector URRStaticMeshComponent::GetScaledExtent |
( |
| ) |
const |
◆ GetSize()
| FVector URRStaticMeshComponent::GetSize |
( |
| ) |
const |
Get the Size of bounding box of the mesh.
- Returns
- FVector
UFUNCTION()
◆ HideSelf()
| void URRStaticMeshComponent::HideSelf |
( |
bool |
bInHidden | ) |
|
◆ Initialize()
| void URRStaticMeshComponent::Initialize |
( |
bool |
bInIsStationary, |
|
|
bool |
bInIsPhysicsEnabled |
|
) |
| |
Set Mobility and Physics Enabled.
- Note
- Upon creation, DO NOT enable physics here yet, which will makes mesh comp detached from its parent.
Physics should only be enabled after children mesh comps have also been created, so they will be welded.
Refer to [FBodyInstance::SetInstanceSimulatePhysics()]
- Parameters
-
| bInIsStationary | |
| bInIsPhysicsEnabled | |
◆ InitializeMesh()
| bool URRStaticMeshComponent::InitializeMesh |
( |
const FString & |
InMeshFileName | ) |
|
◆ LockSelf()
| void URRStaticMeshComponent::LockSelf |
( |
| ) |
|
This function is used proprietarily for Generic Link/Joint (Non-Articulation) structure.
UFUNCTION()
◆ SetCollisionModeAvailable()
| void URRStaticMeshComponent::SetCollisionModeAvailable |
( |
bool |
bInCollisionEnabled, |
|
|
bool |
bInHitEventEnabled = false |
|
) |
| |
Set the Collision Mode with some preset parameters.
- Todo:
- is preset parameter cover all use case?
- Parameters
-
| bInCollisionEnabled | |
| bInHitEventEnabled | |
UFUNCTION()
◆ SetMesh()
| void URRStaticMeshComponent::SetMesh |
( |
UStaticMesh * |
InStaticMesh | ) |
|
Set Static mesh from UstaticMesh.
- See also
- SetStaticMesh
- Parameters
-
◆ SetMeshSize()
| void URRStaticMeshComponent::SetMeshSize |
( |
const FVector & |
InSize | ) |
|
|
inline |
◆ URRObjectUtils
| friend class URRObjectUtils |
|
friend |
◆ ActorCommon
◆ bIsStationary
| bool URRStaticMeshComponent::bIsStationary = false |
◆ bMeshRuntimeCreated
| bool URRStaticMeshComponent::bMeshRuntimeCreated = false |
◆ bUseComplexCollision
| bool URRStaticMeshComponent::bUseComplexCollision = false |
Whether a complex collision mesh is built alongside the visual static mesh.
Meant for ECollisionTraceFlag::CTF_UseComplexAsSimple, which only works with ECollisionChannel::ECC_WorldStatic
UPROPERTY()
◆ bUseDefaultSimpleCollision
| bool URRStaticMeshComponent::bUseDefaultSimpleCollision = true |
◆ CUSTOM_DEPTH_STENCIL_VOID
| constexpr int8 URRStaticMeshComponent::CUSTOM_DEPTH_STENCIL_VOID = 0 |
|
staticconstexpr |
◆ MeshUniqueName
| FString URRStaticMeshComponent::MeshUniqueName |
◆ OnMeshCreationDone
| FOnMeshCreationDone URRStaticMeshComponent::OnMeshCreationDone |
◆ OriginRelativeTransform
| FTransform URRStaticMeshComponent::OriginRelativeTransform |
◆ SceneInstanceId
| int8 URRStaticMeshComponent::SceneInstanceId = 0 |
◆ ShapeType
◆ StaticMeshTimerHandle
| FTimerHandle URRStaticMeshComponent::StaticMeshTimerHandle |
|
private |
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/rapyutasimulationplugins/checkouts/devel/Source/RapyutaSimulationPlugins/Public/Core/RRStaticMeshComponent.h