其他分享
首页 > 其他分享> > 「笔记」一、游戏引擎基础

「笔记」一、游戏引擎基础

作者:互联网

1,游戏引擎

物理引擎:PhysX、Havok
植被系统:SpeedTree
语言聊天:Vivox
集成众多功能:Unreal、CryEngine(来源于Crysis)、Godot(开 源)、Unity

2,地形系统

基本组成:高程图<=>灰度像素图(一个颜色通道),黑色->地面;白色->最高点。
高程图可用于凹凸映射、位移映射。
导入地形:长、宽为2的整数幂,raw格式
在这里插入图片描述

3,游戏对象

包括灯光、摄像机
类似容器,本身无功能;添加各种组件组成特定游戏物体。

4,脚本语言

底层:C/C++,Java;高层:C#,Python,Lua

脚本示例:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public TheCube : MonoBehaviour{
	public float RotateSpeed = 20;
	void Start(){
		
	}
	
	void Update(){
		transform.RotateAround(Vector3.zero, Vector3.up, RotateSpeed * Time.deltatime);
		//public void RotateAround (Vector3 point, Vector3 axis, float angle);
		//将变换围绕穿过世界坐标中的 point 的 axis 旋转 angle 度。
	}
}

标签:游戏,void,Vector3,笔记,引擎,using,public
来源: https://blog.csdn.net/qq_51449531/article/details/122761679