Skip to content

Instantly share code, notes, and snippets.

View harunseng's full-sized avatar
🎯

harun seng harunseng

🎯
View GitHub Profile
@harunseng
harunseng / PhysicsHelper.cs
Created June 7, 2021 19:44 — forked from ditzel/PhysicsHelper.cs
Unity Helper for Physic Functions
using UnityEngine;
namespace Ditzelgames
{
public static class PhysicsHelper
{
public static void ApplyForceToReachVelocity(Rigidbody rigidbody, Vector3 velocity, float force = 1, ForceMode mode = ForceMode.Force)
{
if (force == 0 || velocity.magnitude == 0)
@harunseng
harunseng / BendMesh.shader
Created February 9, 2021 11:57 — forked from shaggun/BendMesh.shader
Bending a mesh with a shader in Unity
Shader "BendMesh"
{
Properties
{
_Texture("Texture", 2D) = "white" {}
_Color("Color", Color) = (0,0,0,0)
_Amplitude("Amplitude", Float) = 0
_Frequency("Frequency", Float) = 0
_OffsetSin("OffsetSin", Float) = 0
This software is licensed under the "Anyone But Richard M Stallman"
(ABRMS) license, described below. No other licenses may apply.
--------------------------------------------
The "Anyone But Richard M Stallman" license
--------------------------------------------
Do anything you want with this program, with the exceptions listed
below under "EXCEPTIONS".