What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-19 03:55:13
barycentric coordinates triangle
// Compute barycentric coordinates (u, v, w) for // point p with respect to triangle (a, b, c) void Barycentric(Point p, Point a, Point b, Point c, float &u, float &v, float &w) { Vector v0 = b - a, v1 = c - a, v2 = p - a; float d00 = ... Add solution -
C# 2022-02-18 14:30:06
how to drag a 2d rigidbody in unity
// add this to your player. Make sure there is a rigidbody2d attached to it. private Vector2 direction; public float force = 1000; private Rigidbody2D r; void Start () { r = transform.GetComponent <Rigidbody2D> (); } void Update { if (I... Add solution -
C# 2022-02-18 02:25:32
ScriptableObject
using UnityEngine; using System.Collections; [CreateAssetMenu(fileName = "Data", menuName = "Inventory/List", order = 1)] public class MyScriptableObjectClass : ScriptableObject { public string objectName = "New MyScriptableO... Add solution -
C++ 2022-02-16 06:15:25
divide two polynomials c++
#include <iostream>#include <iterator>#include <vector> using namespace std;typedef vector<double> Poly; // does: prints all members of vector// input: c - ASCII char with the name of the vector// A - refere... Add solution