Showing

「Unreal」 vr painting 프로젝트 사전조사 본문

Unreal

「Unreal」 vr painting 프로젝트 사전조사

RabbitCode 2023. 10. 18. 17:03

https://youtu.be/TckqNdrdbgk?si=o5LXLYuF1-ifJ9ws tilt brush

https://youtu.be/h3TrGxojF_w?si=-bTg1Co7fYcpFiGC

https://youtu.be/DafgiEcXr6c?si=vJwVRw0FP4ibZNDU

 ETriggerEvent::Triggered

// Called to bind functionality to input
void APlayerPawn::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
	Super::SetupPlayerInputComponent(PlayerInputComponent);
	if (UEnhancedInputComponent* EnhancedInputComponent = CastChecked< UEnhancedInputComponent>(PlayerInputComponent))
	{
		EnhancedInputComponent->BindAction(MoveAxis, ETriggerEvent::Triggered, this, &APlayerPawn::Move);
		EnhancedInputComponent->BindAction(FireAction, ETriggerEvent::Triggered, this, &APlayerPawn::Fire);
	}
}

Fire
쿨타임 설정을 따로 안해주면, 총알이 연이어서 발사가 되면서 이어져보이는 시각적 효과를 보여준다.

void APlayerPawn::Fire(const FInputActionValue& value) // value = IA_Fire bool
{
	if (Controller && value.Get<bool>()==true) {
		GetWorld()->SpawnActor<ABullet>(magazine, myArrowComp->GetComponentLocation(),myArrowComp->GetComponentRotation());
	}
}

https://youtu.be/zP_paWcXkaE?si=UTf4a_Ukzh2saLp4
Generative Art : 오브젝트가 연속적으로 특정 방향으로 생성됨

+ vfx

https://youtu.be/hiwGSEws50w?si=AtLzV5EMUb3WPz8Z
https://youtube.com/shorts/-YW8FPaofEI?si=fidOCqW_Y7R-WxN4