Skip to content

Instantly share code, notes, and snippets.

View SpaceRock.h
// 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()
View SpaceRock.cpp
// 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;
View gist:2af0d8193d09b393e4c3873459fcc3db
using UnityEngine;
class PlayerController : MonoBehaviour
{
public float _moveDistance;
public float _raycastDistance;
public void LateUpdate()
{
if (Input.GetKeyUp(KeyCode.A))
View gist:5494808ee74e681e64d5277ad2983948
"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]"