- 最后登录
- 2017-4-1
- 注册时间
- 2011-7-26
- 阅读权限
- 90
- 积分
- 24690
  
- 纳金币
- 24658
- 精华
- 6
|
很实用的一个小扩展,可以实现场景中物体的阵列功能!
This is a simple, but effective, tool for creating repeating formations of objects. For those familiar with Blender, this essentially implements the array modifier via an editor script: 'startTransform' is used to set the starting location, and the current object is used to modify this with each instantiation of the given object, 'obj' - up to a set count. Like blender, this is all rebuilt in realtime via OnSceneGUI(), and some pretty cool stuff can be done with this once arrays of arrays of objects are created...
Anyways, I expect that this should be a welcome boon to anyone building platform, arcade, or any other type of game that uses repeated placements of pickups/obstacles and the like. More creative uses also probably exist - let me know if you make anything cool with it
Edit: Note - Object handles must be set from 'center' to 'pivot' for this to work correctly
点击下载 |
|