This file contains hidden or 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; | |
| 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) |
This file contains hidden or 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
| 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 file contains hidden or 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
| 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". |
NewerOlder