LISTING PROGRAM
Script Tombol dan Exit : using UnityEngine;
using System.Collections;
public class tombol : MonoBehaviour {
public void aksi (int startaksi){
Application.LoadLevel(startaksi); }
public void ExitApplication() {
Application.Quit (); }
}
Script Rotate :
using UnityEngine;
using System.Collections;
public class Rotate : MonoBehaviour {
private float rotationRate = 3.0f;
void Update () {
// get the user touch input
foreach (Touch touch in Input.touches) {
Debug.Log("Touching at: " + touch.position);
if (touch.phase == TouchPhase.Began) {
Debug.Log("Touch phase began at: " + touch.position); } else if (touch.phase == TouchPhase.Moved) {
Debug.Log("Touch phase Moved");
transform.Rotate (touch.deltaPosition.y *
rotationRate,
-touch.deltaPosition.x * rotationRate, 0,
Space.World);
} else if (touch.phase == TouchPhase.Ended) { Debug.Log("Touch phase Ended");
Script Virtual Button Suara: using UnityEngine;
using System.Collections.Generic; using Vuforia;
public class VirtualButtonEventHandler : MonoBehaviour, IVirtualButtonEventHandler {
break;
public class LeanScale : MonoBehaviour {
[Tooltip("Ignore fingers with StartedOverGui?")] public bool IgnoreGuiFingers;
[Tooltip("Allows you to force rotation with a specific amount of fingers (0 = any)")]
public int RequiredFingerCount;
[Tooltip("Does scaling require an object to be selected?")]
public LeanSelectable RequiredSelectable;
[Tooltip("Should the scaling be performanced relative to the finger center?")]
public bool Relative;
#if UNITY_EDITOR
protected virtual void Reset() {
protected virtual void Update() {
if (RequiredSelectable != null && RequiredSelectable.IsSelected == false) {
}
var fingers = LeanTouch.GetFingers(IgnoreGuiFingers, RequiredFingerCount);
var scale =
LeanGesture.GetPinchScale(fingers); var screenCenter =
LeanGesture.GetScreenCenter(fingers);
Scale(scale, screenCenter); }
private void Scale(float scale, Vector2 screenCenter) {
if (scale > 0.0f) {
if (Relative == true) {
var screenPosition =
Camera.main.WorldToScreenPoint(transform.position);
screenPosition.x = screenCenter.x + (screenPosition.x - screenCenter.x) * scale;
screenPosition.y = screenCenter.y + (screenPosition.y - screenCenter.y) * scale;
transform.position =
Camera.main.ScreenToWorldPoint(screenPosition);
transform.localScale *= scale; }
else {
transform.localScale *= scale; }
Script Koordinat AR Camera :
<?xml version="1.0" encoding="UTF-8"?>
<QCARConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="qcar_config.xsd"> <Tracking>
//Pemanggilan Vuforia kamera AR
<ImageTarget name="marker01" size="500.000000 357.142853" >
<VirtualButton name="satu" sensitivity="low" rectangle="-11.60 46.50 8.80 32.80" enabled="true"/>
<VirtualButton name="dua" sensitivity="low" rectangle="-10.40 26.80 10.00 14.20" enabled="true"/>
<VirtualButton name="tiga" sensitivity="low" rectangle="-10.40 9.00 10.00 -5.00" enabled="true"/>
<VirtualButton name="empat" sensitivity="low"
rectangle="-12.90 -9.90 8.50 -25.90" enabled="true"/> <VirtualButton name="lima" sensitivity="low" rectangle="-19.90 -49.20 9.00 -70.20" enabled="true"/>
CURRICULUM VITAE
Nama Lengkap : Fajri Jauhari Nama akrab : Fajri
Tanggal Lahir : 27 Juni 1992 Tempat Lahir : Aek Nabara Tinggi/ Berat badan : 160 cm/ 60 kg Jenis Kelamin : Laki-laki
Status Perkawinan : Belum Menikah
Agama : Islam
Alamat : Dusun II Purwodadi No.478 Kec.Pagar Merbau Nomor HP : 085371491546
E-mail : [email protected]
Training / Seminar / Workshop Tempat Tahun
Mobile Application and Networking USU, Sumatera Utara 2012 Seminar Nasional Literasi Informasi
(SENARAI)
USU, Sumatera Utara 2014
Pendidikan Sekolah Tahun
SD SDN No.101971 – Sei Karang 1999 – 2005 SMP SMPN 1 Lubuk Pakam – Lubuk Pakam 2005 – 2008 SMA SMAN 1 Lubuk Pakam – Lubuk Pakam 2008 – 2011 Universitas D3 Teknik Informatika USU – Sumatera Utara 2011 – 2014