纳金网

标题: Explode (Physics Behavior) [打印本页]

作者: Asen    时间: 2011-10-20 15:45
标题: Explode (Physics Behavior)






               Explode (Physics Behavior)
              









           Summary
         

           Simulates an explosion by forcing (pre-made) objects in a group away from one another.
         





               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.5.2.1 of the 'Explode' behavior, current as of 2005-Feb-11)
           

            Description
           


             This behavior simulates an explosion from an object when the mouse is clicked on it.
            

             The behavior should be attached to a component/group, where it listens for mouse clicks on all of its children. When a child is clicked on explosion vectors are calculated for all other children on the group and they are animated for the explosion. This behavior is recursive so it will animate models within subgroups independently. All calculations are done with global transforms so the explosion vectors should be consisten through sub-groups.
            

             The
            
              Power
            
             property needs to be modified based on the relative distance between objects. If no objects move when the explostion occurs, in the scene, increase the power. If the objects disappear immediately, then decrease it.
            

             The
            
              Depth
            
             property (if not 0) is great for making explosions come right at the screen or away from the screen.
            


            Basic Properties
           



              Power
            

              The amount of TNT in the explosion.
            

              Impact
            

              The impact radius of the explosion, used for calculating the velocity decay over distance.
            

              Depth
            

              The z-index of the explosion.
            

              On Event
            





            Actions
           



              Explode
            

              Initiate the explosion.
            



            Demonstration
           




              View Demonstration Project
            




              Download Project File
            




作者: 奇    时间: 2012-1-22 23:31
年末来了,事情也多了!总结一年的经验,续写明年的计划!亲爱的朋友们,要注意身体,要开开心心的工作,健健康康的生活,舒舒服服的过年!

作者: C.R.CAN    时间: 2012-4-7 23:24
我无语!

作者: tc    时间: 2012-4-15 23:26
长了不少见识

作者: 菜刀吻电线    时间: 2012-5-10 23:27
“再次路过……”我造一个-----特别路过

作者: 奇    时间: 2012-8-11 00:11
很有心,部分已收录自用,谢谢

作者: tc    时间: 2012-10-2 23:20
呵呵,很好,方便罗。

作者: C.R.CAN    时间: 2012-10-19 23:31
心中有爱,爱咋咋地

作者: 奇    时间: 2012-12-2 23:26
谢谢楼主,真是太实用了

作者: tc    时间: 2012-12-14 23:18
很有心,部分已收录自用,谢谢

作者: tc    时间: 2013-3-5 23:25
“再次路过……”我造一个-----特别路过





欢迎光临 纳金网 (http://go.narkii.com/club/) Powered by Discuz! X2.5