mirror of
https://github.com/MapMakersAndProgrammers/alternativa3d-archive.git
synced 2025-10-27 18:29:07 -07:00
more versions added
This commit is contained in:
42
Alternativa3D2/2.0/com/alternativagame/engine3d/Event3D.as
Normal file
42
Alternativa3D2/2.0/com/alternativagame/engine3d/Event3D.as
Normal file
@@ -0,0 +1,42 @@
|
||||
package com.alternativagame.engine3d {
|
||||
import flash.events.Event;
|
||||
import com.alternativagame.engine3d.material.Material;
|
||||
import com.alternativagame.type.Vector;
|
||||
import com.alternativagame.engine3d.object.Object3D;
|
||||
import com.alternativagame.engine3d.object.mesh.polygon.Polygon3D;
|
||||
|
||||
public class Event3D extends Event {
|
||||
|
||||
static public const DOWN:String = "3DDown";
|
||||
static public const UP:String = "3DUp";
|
||||
static public const CLICK:String = "3DClick";
|
||||
|
||||
public var ctrlKey:Boolean;
|
||||
public var altKey:Boolean;
|
||||
public var shiftKey:Boolean;
|
||||
|
||||
public var object:Object3D;
|
||||
public var polygon:Polygon3D;
|
||||
public var material:Material;
|
||||
public var canvasCoords:Vector;
|
||||
public var objectCoords:Vector;
|
||||
public var currentObjectCoords:Vector;
|
||||
|
||||
public function Event3D(type:String, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, object:Object3D = null, polygon:Polygon3D = null, material:Material = null, canvasCoords:Vector = null, objectCoords:Vector = null, currentObjectCoords:Vector = null) {
|
||||
super(type);
|
||||
|
||||
this.ctrlKey = ctrlKey;
|
||||
this.altKey = altKey;
|
||||
this.shiftKey = shiftKey;
|
||||
|
||||
this.object = object;
|
||||
this.polygon = polygon;
|
||||
this.material = material;
|
||||
this.canvasCoords = canvasCoords;
|
||||
this.objectCoords = objectCoords;
|
||||
this.currentObjectCoords = currentObjectCoords;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user