How can I make a particle system's spawning shape follow the camera, but not...
I am working on a game currently featuring a rain particle system, and some basic ish code that makes It so that when the particles hit the ground a little splash effect plays, and I'm trying to make...
View Articlecan I have some help with my "following on the x and z axies" script?
here's the code I'm using: using System.Collections; using System.Collections.Generic; using UnityEngine; public class follow : MonoBehaviour { public Transform follow_target; void Upate() {...
View ArticleHow to Move a Cinemachine Camera With Script, FOV and Follow Offset
I need help, I would like to know how do I animate the Cinemachine Virtual Camera in Follow Offset, I would like to change the y values. Well, FieldOfView can do it, because I want to use the FOV to do...
View ArticleWhy XR Origin/Player doesn't stick to the Camera when moving Heatset around?
![alt text][1]I've he tried everything for about 7 days now and I'm at the end of my (young) knowledge. All I need, is a to have a functional player movement in a first person VR. So far I can walk...
View ArticleWhat would be a practical way for moving multiple rockets in the described...
![Rocket Behavior][1] [1]: /storage/temp/199900-rocketsmodell.png I am currently developing a 2D endless runner game. One of the obstacles are rockets flying from the right edge of the screen to the...
View ArticleHow to follow objects in sequential order?
I want the Player follow the Ball and get it. Then with the Ball I want the Player follow the Post. I've done two targets to be followed sequentially but the Player skips the first target and follows...
View ArticleHow to make an object move with same speed?
Hello, I have a complex map with lots of turns. I used the cinemacine to record a movement of an object along the path. The problem is that it's impossible to make the object move at the same speed all...
View ArticleSet Position and Rotation with another GameObject as Pivot (Script)
Hi, I have a problem with moving the car with my character inside, i want that the character follow position and rotation of the car (seat), but i can't bind that with my character directly bacause the...
View ArticleTrying to make an object follow my cursor
I'm using csharp, and I'm trying to make "StaticObject" follow my cursor. Is there something wrong with my code or do I need to try a new method? public class Cursor : MonoBehaviour { private Vector2...
View ArticleCinemachine not showing up in toolbar.
I'm trying to follow a *Brackeys* tutorial right now about the camera following the player, but there is a problem coming up for me. Upon downloading the Cinemachine package, there is no "Cinemachine"...
View ArticleRotation on the Z axis not happening
Hi ! My problem is pretty simple, I have a plane, I have a camera, I want my camera's rotation to be the one's of the plane, it is currently tracking fine but it doesn't perform any rotation which is...
View Article2D Camera Smooth follow, FixedUpdate and LateUpdate odd difference, help needed.
Hello my camera follow script is : using System.Collections; using System.Collections.Generic; using UnityEngine; public class CamSmoothFollow : MonoBehaviour { public float smoothTimeY, smoothTimeX;...
View ArticleHow do I make an object follow another regarding its rotation
I want my object to follow another behind it such that they never face each other.Kind of like the swords from nier automata
View ArticleCharacter controller with Rigidbody to apply force
i am scripting a humanoid ploymesh player for soccer and i am getting issues of the player movement. In starting i applied character controller and it worked great but then i have to apply physics like...
View ArticleMake GameObject match the position of mouse cursor?
I am making a top down game where your mouse cursor controls a hand. I need the hand to be at the position of the mouse cursor at all times. There are many tutorials on how to make the object follow...
View ArticleHow can I make the CarController (a gameobject) follow my currentCar
My gameobjekt is called CarController. It spawns the choosen car into the scene (this works perfectly fine). Now I also want to let the CarController follow the currentCar trought the scene because if...
View ArticleHow to make an object fixed on the screen?
What's up devs! Hope you all doing well! I'm developing a HoloLens application on Unity and I'm stuck on how to fix a GameObject on the screen. I'm trying to create a menu and fix it on the middle left...
View ArticleHelp get the enemy to follow the player in the shortest way
I have a code that builds a list that finds the shortest way for the enemy to reach the player. The list is made up of points that are on the map But it does not work it seems to me it is because of...
View ArticleIs there a way of making the camera rotate with the sphere like that on the Y...
![alt text][1] [1]: /storage/temp/179955-edwewdqw.jpeg
View ArticleHow to spawn an object on button click and make it follow the mouse until...
The game I am working on is 2D, so all sprites are 2D. I have several UI buttons that when clicked on, will set a certain sprite (It will not spawn in to the game), and then I can click anywhere else...
View Article