본문 바로가기

728x90

MIDIA SOFTWARE

(102)
Basic C++ Programming Concepts: Variables and Data Types/ 기본 C++ 프로그래밍 개념: 변수 및 데이터 유형 C++ is a popular programming language that is widely used in software development. Understanding the basic concepts of C++ programming, variables, and data types is essential for anyone who wants to learn the language. Here is a detailed explanation of these concepts: Basic C++ Programming Concepts: a. Control Structures: Control structures are used to control the flow of a program. They include..
Here's a possible step-by-step table of contents for learning C++/C++ 학습을 위한 가능한 단계별 목차 Here's a possible step-by-step table of contents for learning C++: Introduction to Programming with C++ What is programming? What is C++? Advantages of C++ over other programming languages Overview of C++ tools and environments Getting Started with C++ Installing C++ development tools Writing and compiling your first program Understanding the structure of a C++ program Basic C++ Programming Conc..
유니티 게임엔진으로 캐릭터가 이동시 애니메이션이 호출/When a character moves to the Unity game engine, the animation is called. This script gets the Animator component attached to the character in the Start() method and then moves the character and plays the appropriate animation based on input in the Update() method. It also checks if the space key is pressed and plays the "jp" animation while adding a force to the character's rigidbody to jump. Make sure to adjust the force value to your liking. using UnityEngine; publ..
Unity camera rotation script. In Unity, a camera rotation script can be used to control the rotation of a camera in your game or application. The camera is an important component of any game or application that involves a 3D environment, as it determines what the player or user can see. There are many ways to create a camera rotation script in Unity, but the basic concept is to use input from the user (e.g. mouse movement or..
유니티 플레이어 카메라 고정/ 유니티 카메라 고정 기존 포스팅하였던 카메라 스크립트를 오브젝트에 고정하여 따라올수 있도록하는 스크립트입니다 트렌스폼을 targetTransform으로 하였고, CameraOffset을 사용하였습니다 transform.position = targetTransform.position + CameraOffset; 이렇게 트렌스폼 포지션을 지정하였습니다 using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraController : MonoBehaviour { public float rotateSpeed = 5.0f; public float limitAngle = 70.0f; private bool isRotat..
유니티 플레이어 리기드바디 이동/ 유니티 캐릭터 이동 구현/ 유니티 보는 방향으로 회전 이동 케릭터가 방향을 입력받아 입력받은 방향으로 객체를 회전하여 이동하는 스크립트입니다 충돌 옵션을 위해 리기드로 구현하였습니다 using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { public float moveSpeed; private Rigidbody charRigidbody; void Start() { charRigidbody = GetComponent(); } void Update() { float hAxis = Input.GetAxisRaw("Horizontal"); float vAxis = Input.GetAxisRaw("Vertical"); ..
유니티 드래그 카메라 구현/ 유니티 카메라 이동 구현/ 유니티 드래그 카메라 회전 오른쪽 마우스 드래그를 통하여 마우스가 향하는 쪽으로 카메라를 회전시키는 스크립트입니다 회전 속도 public float rotateSpeed와 리미트 앵글public float limitAngle 을 설정하였고 마우스 x,y를 불러옵니다 마우스의 오른쪽 버튼이 활성화 되었을때 이동 시키므로 Input.GetMouseButtonDown(1) True로 합니다 마우스 오른쪽 버튼이 비활성화 되었을 경우에는 Input.GetMouseButtonUp(1) False 로 비활성화 합니다 using UnityEngine; public class CameraMove : MonoBehaviour { public float rotateSpeed = 5.0f; public float limitAngle = 70.0f; ..
유니티 포톤 로비 생성하기/포톤 로비 만들기/ 유니티 멀티서버 구현 로비 생성하기 1. 메인 씬 복사 2. 작동 프리펩 리무브 3. 메인 카메라 위치 세팅 4. 캔버스 생성 5. 포톤 메니저 수정 Awake PhotonNetwork.AutomaticallySyncScene = true; Start void Start() { Debug.Log("00. 포톤 매니저 시작"); PhotonNetwork.NickName = userId; } public override void OnConnectedToMaster() { Debug.Log("01. 포톤 서버 접속"); PhotonNetwork.JoinRandomRoom(); } public void OnStartBtn() { PhotonNetwork.JoinRandomRoom(); } 조인룸 public override void..

728x90