What do you want to save?
Add Code snippet
New code examples
-
C# 2022-03-27 19:15:02
top down shooting in unity 2D
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Shooting : MonoBehaviour { public Transform firePoint; public GameObject bulletPrefab; public float bulletForce = 20f; // Update is called once... Add solution -
CSS 2022-03-27 15:10:12
leaf falling down in website animation
@keyframes sway { 0% { transform: rotateZ(-15deg) rotateX(55deg); } 30% { transform: rotateZ(20deg) rotateX(60deg); animation-timing-function: ease-in-out; } 60% { transform: rotateZ(-20deg) rotateX(55deg); animation-timing-function: ... 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 -
Lua 2022-03-25 05:45:17
function parameters roblox
function generatePart(isAnchored, transpareny, canCollide, name) local part = Instance.new("Part") part.Name = name part.Anchored = isAnchored part.Transparency = transpareny part.CanCollide = canCollide part.Position = Vector3.new(0,15,0)... Add solution