What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-04 19:42:03
459 - graph connectivity solutions
#include<bits/stdc++.h> using namespace std; vector<int>adj[1000]; bool visited[1000]; int pre[10000]; void add(int u,int v) { adj[u].push_back(v); adj[v].push_back(u); } void dfs(int s) { if(visited[s]) return; visited[s]=... Add solution -
C# 2021-09-04 11:23:02
unity making homing rocket
//using the cross-product is quite effective //Note: This is quite usefull for rigidbodys... //but you can also use that for transform with some code adjustments Vector3 targetDir; Vector3 currentDir = transform.forward; //whatever your currentDir is /... Add solution -
C# 2021-09-03 09:40:01
unity scriptable objects
using UnityEngine; using System.Collections; [CreateAssetMenu(fileName = "Data", menuName = "Inventory/List", order = 1)] public class MyScriptableObjectClass : ScriptableObject { public string objectName = "New MyScriptableO... Add solution