Select Git revision
GrabbingBehaviorComponent.cpp
-
initial commit, this feature will extend the pawn to be able to grab Actors which implement the Grabable interface, the default grabbing behavior can be extended by adding a GrabbingBehaviorComponent
initial commit, this feature will extend the pawn to be able to grab Actors which implement the Grabable interface, the default grabbing behavior can be extended by adding a GrabbingBehaviorComponent
GrabbingBehaviorComponent.cpp 812 B
// Fill out your copyright notice in the Description page of Project Settings.
#include "GrabbingBehaviorComponent.h"
// Sets default values for this component's properties
UGrabbingBehaviorComponent::UGrabbingBehaviorComponent()
{
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
// off to improve performance if you don't need them.
PrimaryComponentTick.bCanEverTick = true;
// ...
}
// Called when the game starts
void UGrabbingBehaviorComponent::BeginPlay()
{
Super::BeginPlay();
// ...
}
// Called every frame
void UGrabbingBehaviorComponent::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
{
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
// ...
}