当前位置:网站首页>0 foundation starts self-study unit notes control direction becomes larger
0 foundation starts self-study unit notes control direction becomes larger
2022-06-30 04:47:00 【Chef Li, who has just returned from cosmetic surgery in the Uni】
// Front, back, left, right
public Rigidbody rd; // Pre rigid body
void Update()
{
float f = Input.GetAxis("Horizontal");
float l = Input.GetAxis("Vertical");
rd.AddForce(new Vector3 (f,0,l));
}
private void OnTriggerEnter(Collider other) // label
{
int foodnum = 0;
if (other.tag == "Food")
{
Destroy(other.gameObject); // damage
foodnum += 1;
Vector3 scale = transform.localScale;// Bigger
transform.localScale = scale*(1 + foodnum);
}
边栏推荐
- A must see cruise experience in Bangkok: visit the Mekong River and enjoy the scenery on both sides of the river
- Recommended cultural landmarks of these tourist attractions in Bangkok
- 输入输出及中断技术——微机第六章学习笔记
- Mongodb learning
- What to do when the alicloud SSL certificate expires
- [UAV] gyroscope data analysis, taking Victor intelligent jy901b as an example
- Create a simple battle game with photon pun
- 图的一些表示方式、邻居和度的介绍
- Yolov5 torch installation
- Enter the date format string as the production date of the commodity, and enter the shelf life (days); Calculate the number of days until today before the expiration date of the product. 1. Change the
猜你喜欢

Network layer protocol hardware

Beanfactory creation process

A collection of errors encountered in machine learning with unity

Foreign SSL certificate

Approaching history, introduction to the London Guard Museum

harbor api 2.0查询

Window10 jar double click to run without response

Using the command line to convert JSON to dart file in fluent
![[UAV] kinematic analysis from single propeller to four rotor UAV](/img/32/1a88b102f832ffbbc1a7e57798260a.jpg)
[UAV] kinematic analysis from single propeller to four rotor UAV

Connect to the database and run node JS running database shows that the database is missing
随机推荐
Unity enables simple music visualization
System programming summary
Use of thread pool
【Paper】2020_ Research on defense and evaluation strategy of heterogeneous UAV formation_ Zuojiankai
Autowired注解警告的解决办法
Keywords implements and @override
My idea configuration
Redis实现短信登入功能(一)传统的Session登入
Static keyword
[FPGA] IIC读写EEPROM 的实现
This connection is not a private connection this website may be pretending to steal your personal or financial information
Introduction to some representations, neighbors and degrees of Graphs
Connect to the database and run node JS running database shows that the database is missing
Foreign SSL certificate
Junior students summarize JS advanced interview questions
Efficiency test of adding and querying ArrayList and LinkedList
Redis implements SMS login function (II) redis implements login function
A collection of errors encountered in machine learning with unity
Imile uses Zadig's multi cloud environment to deploy thousands of times a week to continuously deliver global business across clouds and regions
Singapore parent-child tour, these popular attractions must be arranged