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 -
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 -
Other 2022-03-24 23:25:02
character controller unity crouch
#pragma strict private var ch : CharacterController; private var startHeight : float; // initial height function Start() { ch = GetComponent(CharacterController); startHeight = ch.height; } function Update() { var newH : float = startHei... Add solution -
Other 2022-03-19 12:05:02
how do i script moving block in roblox
local model = script.Parent local platform = model.Platform local start = model.Start local finish = model.Finish local bodyPosition = platform.BodyPosition while true do bodyPosition.position = start.Position wait(6) bodyPosition.posit... Add solution
Best helpers
Ranking is empty