5-游戏设计-3D-VirTools-3物理模块.ppt

  1. 1、本文档共49页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
5-游戏设计-3D-VirTools-3物理模块

齐鲁软件学院 徐延宁 VirTools 物理模块 What Is The Physics Library The Physics Library is a simulation engine that works in parallel with the existing Virtools Behavioral Engine. Create your physics world representation (also called physics environement). Destroy physics stuffs from the physics simulation (remove objects, springs, constraints ...etc) Modify physics properties (friction, spring properties, mass, gravity ...etc) Get control on your physics objects (move them with Virtools standard building blocks, retrieve information, react on collisions ...etc) And get profits of advanced SDK developments through building blocks like Physics Car, Convert to Buoyancy ...etc Demo: balance 1 Getting Started Creating a Physics Environment General Steps Create the physics environment. Identify particular elements of your composition as belonging to the physics environment. Configure the physical characteristics of the elements that are part of the physics environment. 1-General Physics- Physicalize Dragn Drop the Physicalize building block on the object. Parameter the physics properties of the object Parameter the physics properties of the object Fixed: 是否固定(不受任何力作用) Friction: 物体摩擦系数 0 没有任何摩擦力 0.1 = 冰面 3 = 非常粗糙. 物体A与B之间的滑动取决于A与B的摩擦系数共同作用。两者相乘 Elasticity: 物体的弹性 1.0 永远不会终止弹跳 0.2 时,模拟需要更多的CPU时间 注意不要给太离谱的弹力数值(例如10),可能导致系统的不稳定 Mass: 物体的重量(吨),注意:如果是一个约束系统的root对象,该值不要太小;如果与一个小的物体碰撞,该值不要太大。 Parameter the physics properties of the object Collision Group: 过滤字符串,定义该物体的碰撞原则 NULL string (ie: ) 该物体与所有物体碰撞 Non-NULL string (like car) 该物体与所有物体碰撞,除了在同一个组中的物体(例如car) 注意:该字符串不要超过8个字符 Start Frozen: 该物体不会被重力影响,直到其他的事件唤醒该物体 (例如,与其他物体碰撞、与弹簧连接)。 应用:需要对地面上的大量物体附加物理属性,但不希望物理引擎同时计算所有的物体。 Enable Collision: 该物体是否进行碰撞检测, Shift Mass Center: 缺省情况下,质心自动计算,但可以设定通过该参数(相对于自动计算的质心的偏移),改变质心可以是物体更稳定,如果设置Automatic Calculate Mass Center,则该参数无效。 Parameter the physics properties of the object Linear Speed Dampening: 线速度减速(阻尼运动)0.0 无减速,1.0每秒减到30%, 0.1 减到90%每秒。可以应用于模拟空气阻力。参数数值太低,则物体可能不真实的加速 Rot Speed Dampening: 角速度减

文档评论(0)

yurixiang1314 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档