查看: 1928|回复: 3
打印 上一主题 下一主题

[Anark] Gravity (Physics Behavior)

[复制链接]
Asen    

867

主题

0

听众

1万

积分

外协人员

Rank: 7Rank: 7Rank: 7

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






               Gravity (Physics Behavior)
              









           Summary
         

           Provides a constant pull on objects in a particular direction.
         





               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 1.0.4 of the 'Gravity' behavior, current as of 2005-Aug-04)
           

            Description
           


             Attach this behavior to an object to make it feel the
            

             effects of gravity. The object will be constantly accelerated
            

             in the direction indicated by the
            
              Gravity Direction
            
             parameter, at a rate specified by the
            
              Gravity Force
            
             .
            

             (Acceleration is applied by modifying the positionVelocity vector.)
            

             If
            
              Use Terminal Velocity?
            
             is checked, the object will be prevented from going any faster than the
            
              Terminal Velocity
            
             value. Further, the events
            
              Reached Terminal Velocity
            
             and
            
              Under Terminal Velocity
            
             will fire as the object crosses between the two states.
            

             The
            
              Gravity Direction
            
             vector does not need to be normalized, but does not affect the force of gravity.
            

             This behavior can be used in conjunction with Collider for Simulations (and Collision Shell) to cause objects to bounce around in a semi-realistic manner.
            


            Basic Properties
           



              Gravity Force
            

              Acceleration force in units/s^2
            

              Start Immediately?
            

              Start applying gravity immediately, or wait for the Start action to be called?
            



            Advanced Properties
           



              Gravity Direction
            

              Direction for gravity to pull.
            

              Use Terminal Velocity?
            

              Should the object stop accelerating past a certain speed?
            

              Terminal Velocity
            

              Maximum speed for the object, in units/second.
            



            Actions
           



              Start
            

              Start applying gravity.
            

              Stop
            

              Stop applying gravity.
            

              Toggle
            

              If gravity is on, turn it off; otherwise, turn it on.
            



            Events
           



              Started
            

              Fires when gravity is turned on.
            

              Stopped
            

              Fires when gravity is turned off.
            

              Reached Terminal Velocity
            

              Fires if the object hits terminal velocity after having been slower than it.
            

              Under Terminal Velocity
            

              Fires if the object was at terminal velocity and slowed down.
            



            Demonstration
           




              View Demonstration Project
            




              Download Project File
            



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

使用道具 举报

1023

主题

3

听众

359

积分

设计实习生

Rank: 2

纳金币
335582
精华
0

最佳新人

沙发
发表于 2012-2-26 23:31:22 |只看该作者
先垫一块,再说鸟
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

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

板凳
发表于 2012-8-18 23:51:06 |只看该作者
先垫一块,再说鸟
回复

使用道具 举报

tc    

5089

主题

1

听众

33万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

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

地板
发表于 2012-11-14 04:04:00 |只看该作者
呵呵,很好,方便罗。
回复

使用道具 举报

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

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

GMT+8, 2024-9-21 04:36 , Processed in 0.119006 second(s), 27 queries .

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

© 2008-2019 Narkii Inc.

回顶部