Make an object follow a curve
I'm working on a new project and in the scene, I'm trying to make a vehicle follow a road path I've created. I've tried animation curves among other things but I can't get a proper smooth curve that...
View ArticleFollow rigidbody center of mass
Hi, it's I while I'm stuck with this problem. I'm creating an item picker system to let you pick up items, bring it with you, rotate etc... What I need to do is let the item picked up following a...
View ArticleHow to clone on collision
Hello! I know this is a duplicate but I do not understand. Is there any way to periodically clone, (Like every 5 seconds) on collision? I tried scripts kindly provided by the people who answer here,...
View ArticleHow to clone with a object.
Hello, I have made a 3d game and I want to clone an object. However, when I find a script it spawns somewhere else, Eg: Player is at object 5 but it clones in object 1. I know this is a duplicate but...
View ArticleCloning a game object.
Hello! I got a 3D game and I have I want to clone a object. Gamenvisk has politely gave me this code: `using System.Collections; using System.Collections.Generic; using UnityEngine; public class...
View ArticleECS follow entity
I was playing around with the new entity component system and I came across a problem I was not able to solve. I try to make an entity follow another entity. I want to do it in a job and **not** on the...
View ArticleHow to have one animator controller make multiple objects move?
Hi everyone, I have found this question asked many times but not properly answered, so here goes my problem. I need to make object B play the same animation as object A, without giving B an animator...
View ArticleThird person camera : follow and mouse wheel rotation
Hello, I'm a beginner with C# and I try to make a Third Person camera that follow my character but also rotate around him when I click on Mouse Wheel. Problem: I can't find a solution to do both. This...
View ArticleIs it possible to make a cursor using right stick axis of an xbox controller?
I have 2 players one controlled by the mouse and keyboard and another one who i am trying to make move and just generally be controlled by an xbox controller. I need some kind of script that would make...
View ArticleUse trail renderer for path following?
Hey guys, I'm pretty new to C# and still am learning the basics. **Would really appreciate some guidance.** Had this idea of flying opponents chasing players spaceship in environment with obstacles. Is...
View ArticleMake NPC follow player when seen?
Hi all, I am making a horror game with a random walking NPC. When the NPC sees the character, (when the player goes in range of the NPC's attached box collider), I want the NPC to start following the...
View ArticleUnity camera follow along cylinder looking for C# Expert!,Unity camera follow...
I have a mini project where a ball goes around a cylinder while moving forward on the cylinder. I want my camera to follow the ball and rotate towards the ball while in cameras point of view cylinder...
View ArticleMake an NPC follow player?
![alt text][1]Thank you @lightmaster905 for getting me this far, but i still have questions. I am trying to make my NPC follow a player when it is in the range of the box collider. I added agents, but...
View ArticleNPC follow player?
How should I go about making this code into 3D? The NPC only moves via the x axis, and I want it to move Via the X and Z. Should I use a Vector3? public class EnemyFollow : MonoBehaviour { public float...
View ArticleHow to make characters follow player like Earthbound?
Hello! I've been trying to get characters to follow my player's exact path but can't find a perfect solution anywhere. I tried using Lists to record my players path and have the character(s) follow...
View ArticleMake a Raycast follow an object
I'm trying to make this solider follow the player when it is in site. But the gun raycast doesn't follow the player. Is their a way to make it so that the raycast can follow the player? ` Vector3...
View ArticleEnemy prefab with NavMeshAgent change speed in other map?
Hello everyone! I have an enemy Prefab with the classic script inside to make it chase the Player when it is at some distance. I used this prefab (in a multiple way, at least 5 enemies per map) on 6...
View ArticleHow can player follow where the weapon is?
How can i set the player to follow the weapon(North, East, South, West). So if the gun move to the direction, the player also follow the weapon to the direction ? ANSWER WITH C# CODE
View ArticleHow player follow the weapon only when weapon at North east south and west,...
How player follow where the weapon is only in North West South and East. I want if the weapon is on the right, the player is also moving on the right. but when the weapon is on diagonal position, then...
View ArticleHow do I make a enemy follow me
I am making a fps shooter and I need my enemy to follow me when I am with in a certain range of the enemy this is what I have so far.` using System.Collections; using System.Collections.Generic; using...
View Article