#include <ProjectileMovementLinear.h>
◆ Activate()
| void UProjectileMovementLinear::Activate |
( |
const FVector & |
InStart, |
|
|
const FVector & |
InDirection |
|
) |
| |
|
overridevirtual |
9{
12}
FVector CurrentVelocity
Definition ProjectileMovementBase.h:28
FVector FlightDirection
Definition ProjectileMovementLinear.h:27
float Speed
Definition ProjectileMovementLinear.h:24
◆ Simulate()
| bool UProjectileMovementLinear::Simulate |
( |
float |
InDeltaTime, |
|
|
AActor * |
InOwner |
|
) |
| |
|
overridevirtual |
16{
17 const FVector NewLocation = InOwner->GetActorLocation() +
CurrentVelocity * InDeltaTime;
18 InOwner->SetActorLocation(NewLocation, true);
19
20 return false;
21}
◆ FlightDirection
| FVector UProjectileMovementLinear::FlightDirection = FVector::ZeroVector |
|
private |
◆ Speed
| float UProjectileMovementLinear::Speed = 1000.f |
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: