Answer by belvita
when the player clicks on the object the object is plane very thin like in 6nmBj.jpg file then when the player clicks on it u can do: transform.localScale += Vector3(0,0,0.1); increase the scale of the...
View ArticleAnswer by belvita
u must use mouse raycast for something like this add this to ur update func Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); GameObject urOBJ=GameObject.FindWithTag("urobjTAGname"); if(...
View ArticleAnswer by belvita
use this instead of !transform.renderer.isVisible): //disable it from view gameObject.renderer.enabled = false; //also disable the gameobjects collider gameObject.collider.enabled =false;
View ArticleAnswer by belvita
Did you even instantiate these objects on runtime? If not they do not even exist so unity can't find them.i dont c that u did instantiate any gameobjects.
View ArticleAnswer by belvita
Can u try like this: inside update function if (Input.GetMouseButtonDown(0)) { // when button clicked... gui = "no"; } RaycastHit hit; // cast a ray from mouse pointer: Ray ray =...
View ArticleAnswer by belvita
u can use this if( Physics.Raycast( ray,out hit) ) { if(hit.collider.gameObject.tag=="urcharacter") { oncharacter=true; } else{ oncharacter=false; } private void OnGUI() { if(oncharacter==true) { //...
View ArticleAnswer by belvita
change if(other.name=="player") to other.gameObject.tag=="player" please vote me if it works ,thank u
View ArticleAnswer by belvita
i will help u but please vote me i help so many people but they do not appreciate thanx .attach this to the gameobject u wanna flip change the buttons a or d how u want. using UnityEngine; using...
View ArticleAnswer by belvita
why dont u create a plane and attach your sprite to the plane object then make the plane object transparent/cutout in the editor so now u got sprites on an invisible 3d game object and all you have to...
View ArticleAnswer by belvita
For this task U must use orthographic camera and If u use fpc firs per cont...... U must disable the mouse look script inside character controller and u must Change the first person controller script...
View ArticleAnswer by belvita
Make it more obvious lease wat u mean by image targeting it can mean a lot of things
View ArticleAnswer by belvita
Do not use mesh colliders if it is a serious mesh u got on ur cars the calculation takes time for unity instead delete mesh collider and add a box collider for ur cars and other objects
View ArticleAnswer by belvita
This is how u do it ,if I understand u correctly GameObject instance = Instantiate(thePrefab,transform.position,Quaternion.identity)as GameObject; instance.rigidbody.AddForce(transform.right*50);...
View ArticleAnswer by belvita
I see that u do not use raycasthit in ur update function this causes unity not to be able to calculate where on each frame ur raycast is hit.for proper raycast detection change the design of ur code...
View ArticleAnswer by belvita
Try this this.gameObject.rigidbody.AddForce(transform.right*50); Or change transform.right to ur required direction
View ArticleAnswer by belvita
u need 2 show some code .How u want the character to move ? when u press a key? show some codes
View ArticleAnswer by belvita
u must do like this, without the word new u will get that error okay!hope i haave helped u please vote,thank u Vector3 temp=new Vector3(transform.position.x,charControl.height -...
View ArticleAnswer by belvita
Check if either ur plane game objects. Is trigger option is enabled on the inspector if yes uncheck is trigger If u are using first person controller they have attached colliders so that is not a...
View Article