⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 line3d.as

📁 一个2D基于verlet的Flash物理引擎。它用AS3编写而成。Fisix的目标是应用到游戏等计算量很大的实时应用中。尽管flash比c/c++要慢,很棒的物理引擎
💻 AS
字号:
package org.papervision3d.core.geom.renderables{		/**	 * @Author Ralph Hauwert	 */	 	import org.papervision3d.core.geom.Lines3D;	import org.papervision3d.core.render.command.IRenderListItem;	import org.papervision3d.core.render.command.RenderLine;	import org.papervision3d.materials.special.LineMaterial;	public class Line3D implements IRenderable	{				public var v0:Vertex3D;		public var v1:Vertex3D;		public var cV:Vertex3D;		public var material:LineMaterial;		public var renderCommand:RenderLine;		public var size:Number;		public var instance:Lines3D				public function Line3D(instance:Lines3D, material:LineMaterial, size:Number, vertex0:Vertex3D, vertex1:Vertex3D, controlVertex:Vertex3D = null)		{			this.size = size;			this.material = material;			this.v0 = vertex0;			this.v1 = vertex1;			this.cV = controlVertex;			this.instance = instance;			this.renderCommand = new RenderLine(this);		}				public function getRenderListItem():IRenderListItem		{			return this.renderCommand;		}			}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -