What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-29 06:29:03
unity first person controller script
//Fixed the issues with the previous controller using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraLook : MonoBehaviour { public float minX = -60f; public float maxX = 60f; public float sensitivity; pub... Add solution -
C++ 2021-09-29 04:48:02
how to read wav file in C++
#include <iostream> #include <string> #include <fstream> #include <cstdint> using std::cin; using std::cout; using std::endl; using std::fstream; using std::string; typedef struct WAV_HEADER { /* RIFF Chunk Descriptor */ ... Add solution -
TypeScript 2021-09-28 23:06:03
reading multiple objects from file in java
FileInputStream fis = new FileInputStream("outputFile"); ArrayList<Object> objectsList = new ArrayList<>(); boolean cont = true; while (cont) { try (ObjectInputStream input = new ObjectInputStream(fis)) { Object obj = input.rea... Add solution -
C++ 2021-09-28 17:06:04
Write a C++ program that displays a Letter Pyramid from a user-provided std::string. Prompt the user to enter a std::string and then from that string display a Letter Pyramid as follows: It's much easier to understand the Letter Pyramid given examples.
#include <iostream> #include <string> using namespace std; int main() { string user_input {}, pyra {""}, space (user_input.length() - 1, ' '); cout << "Please enter a sequence of characters... "; cin >>... Add solution -
-
Other 2021-09-27 10:10:03
player controls for top down game script
using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Security.Cryptography; using UnityEngine; public class PlayerController : MonoBehaviour { public float speed = 20.0f; public float hori... Add solution -
Shell/Bash 2021-09-27 05:28:03
mp4 to ffmpeg
#MP4 - 1080p: ffmpeg -i input.mov -preset slow -codec:a libfdk_aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p -b:v 4500k -minrate 4500k -maxrate 9000k -bufsize 9000k -vf scale=-1:1080 output.mp4 #MP4 - 720p: ffmpeg -i input.mov -preset slow -codec:a lib... Add solution -
C# 2021-09-26 22:25:02
how to add movement in unity 3d
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerMovement : MonoBehaviour { //this is for first person movement public CharacterController controller; public float speed = 12f; Vector3 velo... Add solution