What is the difference between using a script and an animation?

1.

Scripted movement is easier for movements that can be described as a simple algorithm (the simplest being moving in a straight line at a fixed pace). Scripted movement is prohibitively hard for something as complex as realistic human and animal movement.

Animated movement is easier for complex maneuvers that cannot be easily described via an algorithm. You set the keyframes for position and rotation and let Unity fill in the gaps for you. Creating an animation is a bit laborious, though, hence scripts being easier for simple movements.

Another thing to note is that it is easy to adjust a movement script to work for any given start and end point, but it is harder to do the same for an animation (though still possible, I think).

2.This has the advantage of allowing more specific control, but it's generally difficult to create more complex moving paths. 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值