<commit_before>pc.script.create('first_person_camera', function (app) {
	var SPEED = 30;

	//var camPos = new pc.Vec3();
	var FirstPersonCamera = function (entity) {
		this.entity = entity;

		// Camera euler angle rotation around x and y axes
		var eulers = this.entity.getEulerAngles();
		this.ex = eulers.x;
		this.ey = eulers.y;


		// Disabling the app menu stops the browser displaying a menu when
		// you right-click the page
		app.mouse.disableContextMenu();
		//app.mouse.on(pc.EVENT_MOUSEMOVE, this.onMouseMove, this);
		app.mouse.on(pc.EVENT_MOUSEDOWN, this.onMouseDown, this);

	};


	FirstPersonCamera.prototype = {
		mouseLook: false,
		moveForwardLock: false,
		update: function (dt) {
			if(this.mouseLook) {
				this.entity.setEulerAngles(this.ex, this.ey, 0);
			}

			if (this.moveForwardLock) {
				this.entity.translate(SPEED*dt, 0, 0);
			}<commit_msg>Enable mouse look (after 'presentatio')<commit_after>pc.script.create('first_person_camera', function (app) {
	var SPEED = 30;

	//var camPos = new pc.Vec3();
	var FirstPersonCamera = function (entity) {
		this.entity = entity;

		// Camera euler angle rotation around x and y axes
		var eulers = this.entity.getEulerAngles();
		this.ex = eulers.x;
		this.ey = eulers.y;


		// Disabling the app menu stops the browser displaying a menu when
		// you right-click the page
		app.mouse.disableContextMenu();
		app.mouse.on(pc.EVENT_MOUSEMOVE, this.onMouseMove, this);
		app.mouse.on(pc.EVENT_MOUSEDOWN, this.onMouseDown, this);

	};


	FirstPersonCamera.prototype = {
		mouseLook: false,
		moveForwardLock: false,
		update: function (dt) {
			if(this.mouseLook) {
				this.entity.setEulerAngles(this.ex, this.ey, 0);
			}

			if (this.moveForwardLock) {
				this.entity.translate(SPEED*dt, 0, 0);
			}
{'fraction_non_alphanumeric': 0.12965050732807215, 'fraction_numerical': 0.006764374295377677, 'mean_word_length': 3.658792650918635, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6378244', 'n_tokens_mistral': 702, 'n_tokens_neox': 622, 'n_words': 146}