当前位置:网站首页>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);
}
边栏推荐
- Is the Flink connector JDBC open source? Where can I download it
- PBR material: basic principle and simple fabrication
- Redis实现短信登入功能(二)Redis实现登入功能
- The subsystem implementing transaction persistence in DBMS is ()
- Unreal 4 learning notes - set player birth point
- 為什麼win10開熱點後電腦沒有網絡?
- Dual domain SSL certificate
- Check London attractions suitable for parents and children in winter vacation
- Qt6 QML Book/Qt Quick 3D/Qt Quick 3D
- Break through the existing customer group marketing, and try customer grouping management (including clustering model and other practical effect evaluation)
猜你喜欢

Yolov5 torch installation

Network high concurrency

SSL universal domain name certificate

File and IO

Qos(Quality of Service)

Imile uses Zadig's multi cloud environment to deploy thousands of times a week to continuously deliver global business across clouds and regions

Approaching history, introduction to the London Guard Museum

Mongodb learning

Method of applying for code signing certificate by enterprise

【Paper】2013_ An efficient model predictive control scheme for an unmanned quadrotor helicopter
随机推荐
The subsystem implementing transaction persistence in DBMS is ()
【Paper】2015_ Coordinated cruise control for high-speed train movements based on a multi-agent model
MySQL查询小工具(一)json格式的字符串字段中,替换json数组中对象的某个属性值
What is the difference between synchronized and lock
【Paper】2021_ Observer-Based Controllers for Incrementally Quadratic Nonlinear Systems With Disturbanc
Use of thread pool
Junior students summarize JS advanced interview questions
Break through the existing customer group marketing, and try customer grouping management (including clustering model and other practical effect evaluation)
一条命令运行rancher
PBR material: basic principle and simple fabrication
One interview question a day - the underlying implementation of synchronize and the lock upgrade process
Difference between request forwarding and redirection
Bean creation process and lazy init delay loading mechanism
【Paper】2021_ Analysis of the Consensus Protocol of Heterogeneous Agents with Time-Delays
Transport layer protocol tcp/udp
Read / write lock example
Junior students summarize JS basic interview questions
Network high concurrency
My idea configuration
Winter vacation parent-child tour, these new york attractions are not only fun but also knowledge