blaster/Source/Blaster/Weapon/RocketMovementComponent.cpp

17 lines
637 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"
2022-05-29 09:59:15 +00:00
URocketMovementComponent::EHandleBlockingHitResult URocketMovementComponent::HandleBlockingHit(const FHitResult& Hit, float TimeTick,
2022-05-19 09:10:41 +00:00
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
}