This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fill out your copyright notice in the Description page of Project Settings. | |
#pragma once | |
#include "CoreMinimal.h" | |
#include "GameFramework/Actor.h" | |
#include "Components/SphereComponent.h" | |
#include "SpaceRock.generated.h" | |
UCLASS() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fill out your copyright notice in the Description page of Project Settings. | |
#include "SpaceRock.h" | |
// Sets default values | |
ASpaceRock::ASpaceRock() | |
{ | |
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it. | |
PrimaryActorTick.bCanEverTick = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
class PlayerController : MonoBehaviour | |
{ | |
public float _moveDistance; | |
public float _raycastDistance; | |
public void LateUpdate() | |
{ | |
if (Input.GetKeyUp(KeyCode.A)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"UnlitGeneric" | |
{ | |
"$baseTexture" "models/props_apw/apw_monster" | |
"$model" "1" | |
"$translucent" "1" | |
"$envmapmask" "models/props_apw/apw_monster_spec" | |
"$envmap" "env_cubemap" | |
"$envmapcontrast" "0.05" | |
"$envmapsaturation" "1" | |
"$envmaptint" "[1 1 1]" |