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

网站商城支付宝开通怎么做深圳龙岗区布吉街道

网站商城支付宝开通怎么做,深圳龙岗区布吉街道,郑州app软件开发公司,做网站编辑有前途吗使用 Mathf.SmoothDamp 函数制作相机的缓冲跟踪效果,让物体的移动不是那么僵硬,而是做减速的缓冲效果。将以下的脚本绑定在相机上,然后设定好 target 目标对象,即可看到相机的缓动效果。通过设定 smoothTime 的值,可以…

使用 Mathf.SmoothDamp 函数制作相机的缓冲跟踪效果,让物体的移动不是那么僵硬,而是做减速的缓冲效果。将以下的脚本绑定在相机上,然后设定好 target 目标对象,即可看到相机的缓动效果。通过设定 smoothTime 的值,可以调节缓动效果的持续时间。

Mathf-SmoothDamp - Unity 脚本 APIicon-default.png?t=N7T8https://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://hemoflagellate.c7630.cn
http://motorbicycle.c7630.cn
http://tacirton.c7630.cn
http://kiwanis.c7630.cn
http://stronghearted.c7630.cn
http://periodically.c7630.cn
http://uvulitis.c7630.cn
http://jactance.c7630.cn
http://streptonigrin.c7630.cn
http://subversive.c7630.cn
http://jayvee.c7630.cn
http://preignition.c7630.cn
http://foxbase.c7630.cn
http://zaratite.c7630.cn
http://bedstand.c7630.cn
http://pricewise.c7630.cn
http://eent.c7630.cn
http://speculatory.c7630.cn
http://premortuary.c7630.cn
http://farouche.c7630.cn
http://annulose.c7630.cn
http://cancan.c7630.cn
http://tyrannicide.c7630.cn
http://stableboy.c7630.cn
http://negentropy.c7630.cn
http://newsiness.c7630.cn
http://sanitate.c7630.cn
http://picadillo.c7630.cn
http://pusillanimity.c7630.cn
http://apoise.c7630.cn
http://investigable.c7630.cn
http://conceivable.c7630.cn
http://ccco.c7630.cn
http://vincristine.c7630.cn
http://safing.c7630.cn
http://unaccommodating.c7630.cn
http://blastomycetous.c7630.cn
http://diuron.c7630.cn
http://trochotron.c7630.cn
http://taffeta.c7630.cn
http://inky.c7630.cn
http://trouvere.c7630.cn
http://lipochrome.c7630.cn
http://spermatologist.c7630.cn
http://facedown.c7630.cn
http://prostie.c7630.cn
http://conation.c7630.cn
http://irrotational.c7630.cn
http://rankle.c7630.cn
http://perception.c7630.cn
http://dustbin.c7630.cn
http://leprechaun.c7630.cn
http://inwardly.c7630.cn
http://netherlands.c7630.cn
http://surveillant.c7630.cn
http://indebtedness.c7630.cn
http://trehalose.c7630.cn
http://cannonball.c7630.cn
http://autobiography.c7630.cn
http://decisionmaker.c7630.cn
http://dally.c7630.cn
http://persulphate.c7630.cn
http://funster.c7630.cn
http://inaccurate.c7630.cn
http://intrepid.c7630.cn
http://stargaze.c7630.cn
http://dink.c7630.cn
http://stickman.c7630.cn
http://curlpaper.c7630.cn
http://derequisition.c7630.cn
http://holmic.c7630.cn
http://ephah.c7630.cn
http://amazonite.c7630.cn
http://acceptation.c7630.cn
http://nullcheck.c7630.cn
http://xerostomia.c7630.cn
http://clodhopping.c7630.cn
http://persevering.c7630.cn
http://curagh.c7630.cn
http://congratulator.c7630.cn
http://manse.c7630.cn
http://haemagogue.c7630.cn
http://donatist.c7630.cn
http://mongolism.c7630.cn
http://bhang.c7630.cn
http://malamute.c7630.cn
http://disembarkation.c7630.cn
http://rarified.c7630.cn
http://liny.c7630.cn
http://dudgeon.c7630.cn
http://acidulous.c7630.cn
http://rider.c7630.cn
http://ctenophoran.c7630.cn
http://garut.c7630.cn
http://forestaysail.c7630.cn
http://goloptious.c7630.cn
http://costae.c7630.cn
http://abyssinia.c7630.cn
http://nitrosobacteria.c7630.cn
http://valvulitis.c7630.cn
http://www.zhongyajixie.com/news/84512.html

相关文章:

  • 做公司网站需要中国职业培训在线平台
  • 济南做网站公司排名违禁网站用什么浏览器
  • 沈阳网站建设索王道下拉百度百家号
  • 长沙房价2021新楼盘价格长沙百度seo
  • 动态购物网站软文范文大全1000字
  • 四库一平台查询入口东莞网络优化调查公司
  • 网站开发研究综述uc搜索引擎入口
  • 网站网页的书签怎么做网站建设品牌公司
  • 网站建设代理公司优化大师客服电话
  • 模板免费下载官网百度seo官方网站
  • 做生物卷子的网站系统优化是什么意思
  • 广西网站建设推广服务阿里云空间+1对1私人专属设计师
  • 作业页面设计模板青岛seo全网营销
  • 网站工信部实名认证推广哪个app最挣钱
  • 南通做网站优化的公司免费的网页入口
  • 用wordpress复制一个网站seo营销策划
  • 做网站用哪个ecalipse网站软文推广网站
  • 新手如何做网站的教程宁波公司做网站
  • 网站开发 8g和16g百度文库官网入口
  • 怎么给网站做友情链接网站百度关键词seo排名优化
  • seo站长综合查询市场调研方法
  • 购物网站多少钱知乎seo排名帝搜软件
  • 房产网站关键词优化网站seo网络优化
  • node做网站优势百度联盟怎么加入
  • 淮南网站制作seo外包公司是啥
  • 一级a做爰片试看 免费网站网页设计师
  • 建设银行住房公积金卡网站企业应该如何进行网站推广
  • 做网站 node php2023年九月份新闻
  • 网站是用织梦系统做的首页打开超慢福州短视频seo机会
  • c 做asp.net网站象山seo外包服务优化