---
title: "[Unity] 关于physics的一些说明"
author: "gqlu"
date: "2013-08-01T23:34:53Z"
tags: []
categories: ["移动开发"]
slug: "unity-physics"
draft: false
lastmod: "2013-08-01T23:34:53Z"
id: 1917656
url: "https://gamedev.iteye.com/blog/1917656"
---

如果一个是设计到unity自带的physics的游戏，不能在FixedUpdate中检测Input，这样会漏掉事件，应该在Update中检测Input，然后记录到一个变量中，然后在FixedUpdate中检查这个变量来决定是否进行特定操作。

对于physics的移动不能直接操作transform，否则不会触发physics的碰撞事件。