public GunEmplacement(VL.TrackType trackType, VL.GunType gunType, Vector2 positionOffset, float radius, float depthOffset, BaseType baseType, Monster srcMonster) { this.gunType = gunType; this.trackType = trackType; this.positionOffset = positionOffset; this.radius = radius; this.baseRadius = .75f * radius; this.depthOffset = depthOffset; this.baseType = baseType; this.gunLine = srcMonster.position.direction; this.gunNormal = Vector3.Cross(gunLine, srcMonster.position.normal); this.position = srcMonster.position; }
public GunEmplacement(GunEmplacement g) { trackType = g.trackType; currentAngle = g.currentAngle; fireCooldown = g.fireCooldown; //position = new Vertex(g.position); positionOffset = g.positionOffset; gunLine = g.gunLine; gunNormal = g.gunNormal; gunType = g.gunType; radius = g.radius; position = new Vertex(); depthOffset = g.depthOffset; baseType = g.baseType; baseRadius = g.baseRadius; }