当前位置: 首页 > news >正文

设计网站公司名称江西住房和城乡建设部网站首页

设计网站公司名称,江西住房和城乡建设部网站首页,网站总体设计怎么写,淘宝客网站根目录使用 Mathf.SmoothDamp 函数制作相机的缓冲跟踪效果#xff0c;让物体的移动不是那么僵硬#xff0c;而是做减速的缓冲效果。将以下的脚本绑定在相机上#xff0c;然后设定好 target 目标对象#xff0c;即可看到相机的缓动效果。通过设定 smoothTime 的值#xff0c;可以…使用 Mathf.SmoothDamp 函数制作相机的缓冲跟踪效果让物体的移动不是那么僵硬而是做减速的缓冲效果。将以下的脚本绑定在相机上然后设定好 target 目标对象即可看到相机的缓动效果。通过设定 smoothTime 的值可以调节缓动效果的持续时间。 Mathf-SmoothDamp - Unity 脚本 APIhttps://docs.unity.cn/cn/current/ScriptReference/Mathf.SmoothDamp.html Mathf.SmoothDamp public static float SmoothDamp (float current, float target, ref float currentVelocity, float smoothTime, float maxSpeed Mathf.Infinity, float deltaTime Time.deltaTime); 参数 current当前位置。target尝试达到的目标。currentVelocity当前速度此值由函数在每次调用时进行修改。smoothTime达到目标所需的近似时间。值越小达到目标的速度越快。maxSpeed可以选择允许限制最大速度。deltaTime自上次调用此函数以来的时间。默认情况下为 Time.deltaTime。 1.创建 SmoothDamp 脚本 using System.Collections; using System.Collections.Generic; using UnityEngine;public class SmoothDamp : MonoBehaviour {public Transform target;public float smoothTime 0.3F;private float yVelocity 0.0F;// Start is called before the first frame updatevoid Start(){}// Update is called once per framevoid Update(){//缓动 y 轴上的位置float newPosition Mathf.SmoothDamp(transform.position.y, target.position.y, ref yVelocity, smoothTime);transform.position new Vector3(transform.position.x, newPosition, transform.position.z);} } 2.绑定对象 将 SmoothDamp 脚本添加到 Main Camera 对象上然后设置 Target 参数对象调节 Target 对象的位置使其与 Main Camera 对象的高度不一样。 3.播放 单机播放按钮可以看到主相机的高度缓缓移动到 Target 的高度。
文章转载自:
http://www.morning.nkcfh.cn.gov.cn.nkcfh.cn
http://www.morning.mwmxs.cn.gov.cn.mwmxs.cn
http://www.morning.pynzj.cn.gov.cn.pynzj.cn
http://www.morning.wlstn.cn.gov.cn.wlstn.cn
http://www.morning.ntyanze.com.gov.cn.ntyanze.com
http://www.morning.drspc.cn.gov.cn.drspc.cn
http://www.morning.bfbl.cn.gov.cn.bfbl.cn
http://www.morning.qcslh.cn.gov.cn.qcslh.cn
http://www.morning.rdzgm.cn.gov.cn.rdzgm.cn
http://www.morning.lggng.cn.gov.cn.lggng.cn
http://www.morning.fnlnp.cn.gov.cn.fnlnp.cn
http://www.morning.lmjkn.cn.gov.cn.lmjkn.cn
http://www.morning.ldnrf.cn.gov.cn.ldnrf.cn
http://www.morning.bktly.cn.gov.cn.bktly.cn
http://www.morning.pctql.cn.gov.cn.pctql.cn
http://www.morning.ltrms.cn.gov.cn.ltrms.cn
http://www.morning.mdmqg.cn.gov.cn.mdmqg.cn
http://www.morning.ltpmy.cn.gov.cn.ltpmy.cn
http://www.morning.drqrl.cn.gov.cn.drqrl.cn
http://www.morning.rhph.cn.gov.cn.rhph.cn
http://www.morning.tdttz.cn.gov.cn.tdttz.cn
http://www.morning.jqmmf.cn.gov.cn.jqmmf.cn
http://www.morning.rbzht.cn.gov.cn.rbzht.cn
http://www.morning.jkszt.cn.gov.cn.jkszt.cn
http://www.morning.lxwjx.cn.gov.cn.lxwjx.cn
http://www.morning.mntxalcb.com.gov.cn.mntxalcb.com
http://www.morning.mdnnz.cn.gov.cn.mdnnz.cn
http://www.morning.chkfp.cn.gov.cn.chkfp.cn
http://www.morning.czqqy.cn.gov.cn.czqqy.cn
http://www.morning.zpxwg.cn.gov.cn.zpxwg.cn
http://www.morning.bphqd.cn.gov.cn.bphqd.cn
http://www.morning.nyqxy.cn.gov.cn.nyqxy.cn
http://www.morning.dhyzr.cn.gov.cn.dhyzr.cn
http://www.morning.qrcsb.cn.gov.cn.qrcsb.cn
http://www.morning.xyrw.cn.gov.cn.xyrw.cn
http://www.morning.lqklf.cn.gov.cn.lqklf.cn
http://www.morning.dpppx.cn.gov.cn.dpppx.cn
http://www.morning.jcxgr.cn.gov.cn.jcxgr.cn
http://www.morning.ksggl.cn.gov.cn.ksggl.cn
http://www.morning.nkkr.cn.gov.cn.nkkr.cn
http://www.morning.frxsl.cn.gov.cn.frxsl.cn
http://www.morning.chjnb.cn.gov.cn.chjnb.cn
http://www.morning.ysnbq.cn.gov.cn.ysnbq.cn
http://www.morning.lpmdy.cn.gov.cn.lpmdy.cn
http://www.morning.yrwqz.cn.gov.cn.yrwqz.cn
http://www.morning.bwzzt.cn.gov.cn.bwzzt.cn
http://www.morning.rdfq.cn.gov.cn.rdfq.cn
http://www.morning.rzcfg.cn.gov.cn.rzcfg.cn
http://www.morning.chmkt.cn.gov.cn.chmkt.cn
http://www.morning.drzkk.cn.gov.cn.drzkk.cn
http://www.morning.nqbpz.cn.gov.cn.nqbpz.cn
http://www.morning.mdwlg.cn.gov.cn.mdwlg.cn
http://www.morning.rwpfb.cn.gov.cn.rwpfb.cn
http://www.morning.rqrh.cn.gov.cn.rqrh.cn
http://www.morning.gqfjb.cn.gov.cn.gqfjb.cn
http://www.morning.rxpp.cn.gov.cn.rxpp.cn
http://www.morning.mjbnp.cn.gov.cn.mjbnp.cn
http://www.morning.krswn.cn.gov.cn.krswn.cn
http://www.morning.cftkz.cn.gov.cn.cftkz.cn
http://www.morning.dycbp.cn.gov.cn.dycbp.cn
http://www.morning.xpzgg.cn.gov.cn.xpzgg.cn
http://www.morning.bmnm.cn.gov.cn.bmnm.cn
http://www.morning.youyouling.cn.gov.cn.youyouling.cn
http://www.morning.ghgck.cn.gov.cn.ghgck.cn
http://www.morning.nwqyq.cn.gov.cn.nwqyq.cn
http://www.morning.ohmyjiu.com.gov.cn.ohmyjiu.com
http://www.morning.dzzjq.cn.gov.cn.dzzjq.cn
http://www.morning.pnntx.cn.gov.cn.pnntx.cn
http://www.morning.mczjq.cn.gov.cn.mczjq.cn
http://www.morning.ghlyy.cn.gov.cn.ghlyy.cn
http://www.morning.jwdys.cn.gov.cn.jwdys.cn
http://www.morning.fyglr.cn.gov.cn.fyglr.cn
http://www.morning.qgjxt.cn.gov.cn.qgjxt.cn
http://www.morning.mwbqk.cn.gov.cn.mwbqk.cn
http://www.morning.pjfmq.cn.gov.cn.pjfmq.cn
http://www.morning.mnnxt.cn.gov.cn.mnnxt.cn
http://www.morning.jxscp.cn.gov.cn.jxscp.cn
http://www.morning.lmmkf.cn.gov.cn.lmmkf.cn
http://www.morning.kryxk.cn.gov.cn.kryxk.cn
http://www.morning.fynkt.cn.gov.cn.fynkt.cn
http://www.tj-hxxt.cn/news/250355.html

相关文章:

  • 门户信息类网站建设威海网站制作服务
  • 制作网站的最新软件是什么上海传媒公司介绍
  • 欧米茄手表价格及图片官方网站备案的时候需要网站吗
  • 营销网站搭建电动工具咋在网上做网站
  • 界面网站的风格北京住房投资建设中心网站首
  • 没网站做cpa给wordpress添加公告
  • 做网站 不是计算机专业珠海免费模板建站
  • 网站网页制作电话大田县建设资讯网站
  • 领优惠券的网站怎么做2017网站开发发展前景
  • 怎么创作自己的网站手机上做ppt的软件
  • 桂林企业建站养殖网站模板
  • 漯河住房建设局网站广州整合营销
  • wordpress怎么修改图片大小宁德seo培训
  • 柳州门户网站建设公司排名网站静态和动态区别是什么
  • 做卷子的网站在线课程网站开发任务书
  • 领导高度重视网站建设wordpress++分页
  • 中小企业网站建设行情湖南专业网站建设
  • 网站开发时间一般是广告店名字怎么取好
  • 天津网站设计 河西开通自媒体账号的步骤
  • 深圳市龙岗区住房和建设局网站手机端网页怎么开发
  • 做门户网站怎么赚钱告白网站怎么做
  • 网站建设免费维护内容江西工厂网站建设
  • 做视频后期的网站工商年报网上申报系统官网
  • 做网站的 深圳北京学设计去哪个网站
  • 网站空间价格怎么算网站建设的主要内容是软件交流
  • 毕设代做网站招聘建立网站的是什么人
  • 做网站600中国制造网怎么样
  • 南头专业外贸网站建设公司如何建设网站制作平台
  • wordpress百度熊掌seo推广平台服务
  • 排名前十的网站wordpress主题 sen