查看: 4011|回复: 0
打印 上一主题 下一主题

[提问] 求教如何理解Transform.lossyScale

[复制链接]

9903

主题

126

听众

7万

积分

首席设计师

Rank: 8Rank: 8

纳金币
53464
精华
316

最佳新人 热心会员 灌水之王 活跃会员 突出贡献 荣誉管理 论坛元老

跳转到指定楼层
楼主
发表于 2013-5-19 23:57:04 |只看该作者 |倒序浏览
API文档中的内容:

var lossyScale : Vector3
Description描述
The global scale of the object (Read Only).
物体的全局缩放(只读)。
Please note that if you have a parent transform with scale and a child that is arbitrarily rotated, the scale will be skewed. Thus scale can not be represented correctly in a 3 component vector but only a 3x3 matrix. Such a representation is quite inconvenient to work with however. lossyScale is a convenience property that attempts to match the actual world scale as much as it can. If your objects are not skewed the value will be completely correct and most likely the value will not be very different if it contains skew too.
请注意日光你有一个有缩放的父物体变换和子物体有任意旋转的,缩放将有偏差。因此缩放不能正确的表示在3组件的向量,而是一个3x3矩阵。这样表示工作十分不方便,lossyScale是个很方便的属性,它尽量匹配实际世界缩放,如果你的物体不是有偏差的,这个值将是完全正确的,如果物体包含偏差,这个值也不会有很大的不同。

******
问:
1、当父物体变换有缩放,并且子物体有旋转的情况下,缩放为何会有偏差?
2、什么是3组件的向量?
分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

关闭

站长推荐上一条 /1 下一条

手机版|纳金网 ( 闽ICP备08008928号

GMT+8, 2024-5-8 01:30 , Processed in 0.092974 second(s), 29 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部