예제 #1
0
// @TODO: Deprecated, remove me.
void APawn::LaunchPawn(FVector LaunchVelocity, bool bXYOverride, bool bZOverride)
{
	ACharacter* Character = Cast<ACharacter>(this);
	if (Character)
	{
		Character->LaunchCharacter(LaunchVelocity, bXYOverride, bZOverride);
	}
}
예제 #2
0
void ASpringBoard::Spring()
{
	SpriteComponent->SetSprite(UpSprite);
	bIsReady = true;
	ACharacter *Character = UGameplayStatics::GetPlayerCharacter(GetWorld(), 0);
	Character->LaunchCharacter(FVector(0, 0, Character->GetCharacterMovement()->JumpZVelocity * SpringFactor), false, false);
	SpringSound->Play();
}