- Home /
First person controller taking off.
When i play my project the first person controller flys off down the way. I have added a ridgebody to counter this and how it just flys up the way.
I have a plane and cube in my scene.
Could someone please tell me how to fix this!
Kind regards, Aidanc
i had this problem too! I dunno why also. I add the capsule collider and the rigidbody, it flies up! ):
I just add the rigidbody and the capsule collider..
Now I remove the rigidbody, it didnt flies up but the collision cannot detect. I had ensure that the capsule collider is big than the first person controller size. Do you know why it is not able to collide?
I want to pick up coins with my first person controller.
using UnityEngine;
using System.Collections;
public class pickUpItem : $$anonymous$$onoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnCollisionEnter(Collision collision){
if(collision.gameObject.tag == "Player"){
myGUI score = GameObject.Find("$$anonymous$$ain Camera").GetComponent<myGUI>();
Destroy(gameObject);
}
}
}
Your answer
Follow this Question
Related Questions
Camera moves with no FPC input? 1 Answer
First Person Object grab gets off center when colliding? 0 Answers
How to do perspective camera zoom? 1 Answer
Move a cube on it's edges 2 Answers
Put a camera inside a cube 3 Answers