I have a class inheriting from AActor…
I would like to add a collision to the static mesh component property I have added to the class. What are the methods to do this?
Any documentation for this?
I currently have this:
// Instantiate stuff
StaticMeshComponent = PCIP.CreateDefaultSubobject <UStaticMeshComponent>(this, TEXT("mySubObject"));
SceneComponent = PCIP.CreateDefaultSubobject<USceneComponent>(this, TEXT("SceneComp"));
// Set up mesh stuff
static ConstructorHelpers::FObjectFinder<UStaticMesh> staticMesh(TEXT("StaticMesh'/Engine/EditorMeshes/EditorPlane'"));
StaticMeshObject = staticMesh.Object;
// These 2 properties allow the movement arms in the editor to actually position the static mesh
RootComponent = SceneComponent;
StaticMeshComponent->AttachTo(RootComponent);
StaticMeshComponent->SetStaticMesh(StaticMeshObject);
// What do I need to call on the Static mesh to enable a simple box collision for example?