查看: 2127|回复: 5
打印 上一主题 下一主题

[Anark] Collider for Walkthroughs (Physics Behavior)

[复制链接]
Asen    

867

主题

0

听众

1万

积分

外协人员

Rank: 7Rank: 7Rank: 7

纳金币
17488
精华
1
跳转到指定楼层
楼主
发表于 2011-10-20 15:41:00 |只看该作者 |倒序浏览






               Collider for Walkthroughs (Physics Behavior)
              









           Summary
         

           Causes the parent object to interact with any Collision Shells in a way that is appropriate for walkthroughs.
         





               Category
              


              Latest Behaviors
            




               Author
              


              Gavin Kistner
            




               Difficulty
              


              (Reference)
            




               Time to Complete
              


              5 Minutes
            








           Downloads
         


            Click Here
           
           to download the associated files.
         


            (This document covers version 3.3.2 of the 'Collider for Walkthroughs' behavior, current as of 2005-Feb-11)
           

            Description
           


             Attach this behavior to an object to cause it to collide with any objects which have the Collision Shell behavior attached.
            

             When an object collides with a collision shell:
            


              the Collision Shell fires a ‘Collided With’ event
            

              this behavior fires a
              
               Collided
              
              event
            


             This behavior is designed to be placed on a Camera or other other object which is controlled by a behavior like ‘Fly’ or ‘Walk’. It prevents the object from penetrating any collision shells, and (unlike Collider for Simulations) does so without ‘reflecting’ the parent object.
            

             The parent object must be in ‘global space’ for this behavior to work properly. If it is placed inside any parent object which is scaled, rotated, of offset, this behavior will not work as expected.
            

             While the geometry of the collision shells are used to find the collision, the geometry of the Collider object is
            
              NOT
            
             used. Instead, the
            
              Collision Distance
            
             property is used to set up rays which extend in front of the object (along the direction of movement) radiating from the ‘center’ (pivot point) of the object out to the distance specified by the
            
              Radius
            
             property. As the object is moved, these rays test whether or not the parent object has hit any Collision Shell.
            

             It does not matter whether the parent object is moved due to its position velocity, animation or script setting its position directly; the difference in position of the object is used in all cases to determine that it has moved.
            

             Unlike the Collider for Simulations behavior, this behavior does not use the
            
              Elasticity
            
             setting for collision shells.
            

             Finally, note that the collision detection is only based on the movement of the collider,
            
              NOT
            
             the collision shell. If you have the collider sitting still and you move/rotate a collision shell into it (for example, a moving wall) the collider may not experience a collision.
            


            Basic Properties
           



              Collision Distance
            

              How far from the center of the parent should a collision be looked for?
            



            Advanced Properties
           



              Stay in XZ?
            

              Never affect the global Y position of the parent? (Needed with 'Walk')
            



            Events
           



              Collided
            

              Fires when the parent object collides with a collision shell.
            



            Demonstration
           




              View Demonstration Project
            




              Download Project File
            



分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

5969

主题

1

听众

39万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

沙发
发表于 2012-3-18 23:32:22 |只看该作者
谢谢楼主,真是太实用了
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

板凳
发表于 2012-3-31 23:29:53 |只看该作者
我就看看,我不说话
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

地板
发表于 2012-4-18 23:18:07 |只看该作者
好铁多多发,感激分享
回复

使用道具 举报

tc    

5089

主题

1

听众

33万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

5#
发表于 2012-4-21 23:18:51 |只看该作者
我就看看,我不说话
回复

使用道具 举报

1023

主题

3

听众

359

积分

设计实习生

Rank: 2

纳金币
335582
精华
0

最佳新人

6#
发表于 2012-6-19 23:19:24 |只看该作者
佩服,好多阿 ,哈哈
回复

使用道具 举报

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

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2025-7-21 09:13 , Processed in 0.072348 second(s), 29 queries .

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

© 2008-2019 Narkii Inc.

回顶部