What do you want to save?
Add Code snippet
New code examples
-
C# 2022-03-27 22:40:23
c# movement script
using UnityEngine; using System.Collections; // This script moves the character controller forward // and sideways based on the arrow keys. // It also jumps when pressing space. // Make sure to attach a character controller to the same game object. // It... Add solution -
Other 2022-03-27 12:00:11
unity make raycast ignore object
Transform targetTransform = null; // target assigned in inspector RaycastHit[] hits; // returned hits LayerMask mask = new LayerMask(); // set in inspector - USE LAYER MASK TO FILTER hits = Physics.RaycastAll(transform.position, transform.forward, ma... Add solution -
C# 2022-03-25 10:50:20
unity how to move an object to another object
// 3D transform.position = new Vector3(GameObject.Find("Object").transform.position.x, GameObject.Find("Object").transform.position.y, GameObject.Find("Object").transform.position.z); // 2D transform.position = new Vector2(G... Add solution -
Python 2022-03-24 11:45:01
how to load cifar10 in python
"""Load from /home/USER/data/cifar10 or elsewhere; download if missing.""" import tarfile import os from urllib.request import urlretrieve import numpy as np def cifar10(path=None): r"""Return (train_ima... Add solution -
Javascript 2022-03-22 13:20:11
creating room in ws node js
const rooms = {}; wss.on("connection", socket => { const uuid = ...; // create here a uuid for this connection const leave = room => { // not present: do nothing if(! rooms[room][uuid]) return; // if the one exiting is t... Add solution
Best helpers
Ranking is empty