Skip to content

Instantly share code, notes, and snippets.

// 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()
// 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;
using UnityEngine;
class PlayerController : MonoBehaviour
{
public float _moveDistance;
public float _raycastDistance;
public void LateUpdate()
{
if (Input.GetKeyUp(KeyCode.A))
"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]"