분류 전체보기 254

3.움직이는 액터의 제작_2

액터를 움직이는 방법에는 2가지가 있다 이번에는 그 2번째 방법이다 1 2 3 4 5 6 #include "GameFramework/RotatingMovementComponent.h" //RotatingMovement 컴포넌트를 사용하기 위한 해터파일 참조 UPROPERTY(VisibleAnywhere) URotatingMovementComponent* Movement; Colored by Color Scripter cs 우선 Fountain.h 파일에서 URotatingMovementComponent로 Movement 변수를 선언한다 1 2 3 4 5 6 7 8 AFountain::AFountain() //생성자 { Movement = CreateDefaultSubobject(TEXT("MOVEMENT..

3.움직이는 액터의 제작_1

먼저 헤더의 Fountain class 에 float 형으로 RotateSpeed 변수를 선언해줍니다. 1 2 3 4 5 6 7 8 9 10 11 12 AFountain::AFountain() //생성자 { RotateSpeed = 30.0f;//h파일에서 선언한 RotateSpeed 를 Fountain 생성자에서 초기화 } void AFountain::Tick(float DeltaTime) { Super::Tick(DeltaTime); AddActorLocalRotation(FRotator(0.0f, RotateSpeed * DeltaTime, 0.0f)); //AddActorLocalRotation 함수를 사용하여 y 축방향으로 DeltaTime 당 RotateSpeed만큼 회전 } Colored b..

백준 17299 오등큰수 c++

#include #include #include using namespace std; int A_count[1000001] = { 0, };//지역으로 큰 크기의 배열을 선언하면 런타임에러 발생, //전역에서 배열 0으로 초기화 int main() { int n; cin >> n; vector A(n); //vector A; 로 선언하면 오류 발생 vector NGF(n); stack s; for (int i = 0; i > A[i]; } for (int i = 0; i < n; i++) //A[1] == 3, A[2] == 2, A[3] == 1, A[4] == 1 { A_count[A[i]]++; } for (int i = 0; i < n; i++) { whi..