Skip to content

Instantly share code, notes, and snippets.

View Hemanth759's full-sized avatar
💻

Hemanth Hemanth759

💻
View GitHub Profile
@Hemanth759
Hemanth759 / PlaneDeformer.cs
Created June 20, 2020 06:53
The Unity C# script to deform the game object to implement the physics of sand balls game
using UnityEngine;
public class PlaneDeformer : MonoBehaviour
{
//public references
public float radiusOfDeformation;
public float powerOfDeformation;
public GameObject cylinderPrefab;
@Hemanth759
Hemanth759 / ssh.md
Created March 4, 2020 13:27 — forked from bradtraversy/ssh.md
SSH & DevOps Crash Course Snippets

SSH Cheat Sheet

This sheet goes along with this SSH YouTube tutorial

Login via SSH with password (LOCAL SERVER)

$ ssh brad@192.168.1.29

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test

using UnityEngine;
public class Meteror : MonoBehaviour
{
// public variables
public SphereCollider sphereCol;
public ParticleSystem trail;
void OnCollisionEnter(Collision other)
{
using System.Collections;
using UnityEngine;
public class MeterorSpawner : MonoBehaviour
{
public GameObject meteorPrefab;
public float distanceFromPlanet = 20f;
public float spawnDelay = 1f;
public Transform meterorParent;
using UnityEngine;
[RequireComponent(typeof(AudioSource))]
public class PlayerCollision : MonoBehaviour
{
// public variables
public GameObject deathEffect;
public Animator ScreenAnimator;
// private variables
using UnityEngine;
public class PlayerController : MonoBehaviour
{
// public variables
[Range(0,15)]
public float moveSpeed;
[Range(50, 250)]
public float rototionSpeed;
@Hemanth759
Hemanth759 / FauxGravityBody.cs
Last active December 10, 2019 09:06
A c# code for gameobjects which wants to be attracted by the fauxGravityattractor object
using UnityEngine;
[RequireComponent(typeof(Rigidbody))]
public class FauxGravityBody : MonoBehaviour
{
// public varailables
private FauxGravityAttractor fauxGravityAttractor;
public bool placeOnSurface;
// private varaibles
@Hemanth759
Hemanth759 / FauxGravityAttractor.cs
Last active December 10, 2019 08:46
A simple csharp code for attracting the other objects towards itself
using UnityEngine;
public class FauxGravityAttractor : MonoBehaviour
{
public static FauxGravityAttractor instance;
// public varaibles
public float gravity = -10f;
// private varaibles
@Hemanth759
Hemanth759 / git_and_unity.md
Created July 18, 2019 08:18 — forked from Ikalou/git_and_unity.md
Git and Unity

Using Git with Unity

Git logo

Git is a popular free and open source distributed version control system.

I am new to Unity, but as a long time git user, I wanted to use git for my Unity projects. The bottom line is... it doesn't work nearly as well as I would like it to.