blaster/Source/Blaster/Weapon/RocketMovementComponent.cpp

18 lines
642 B
C++
Raw Normal View History

2022-05-19 09:10:41 +00:00
// Fill out your copyright notice in the Description page of Project Settings.
#include "RocketMovementComponent.h"
UProjectileMovementComponent::EHandleBlockingHitResult URocketMovementComponent::HandleBlockingHit(const FHitResult& Hit, float TimeTick,
const FVector& MoveDelta, float& SubTickTimeRemaining)
{
Super::HandleBlockingHit(Hit, TimeTick, MoveDelta, SubTickTimeRemaining);
return EHandleBlockingHitResult::AdvanceNextSubstep;
}
void URocketMovementComponent::HandleImpact(const FHitResult& Hit, float TimeSlice, const FVector& MoveDelta)
{
// Rockets should not stop; only explode when their CollisionBox detects a hit
}