- Home /
Racist/Sexist username. User can create new account or edit username
Collision on character controller (fps player)
I've been trying to work out my way through a simple collision problem.
I have a fps player with a character controller attached to it and I am trying to make it collide with a box. On the box, I have a box collider (is trigger = uncheck), a rigidbody with gravity turned on and this simple script
#pragma strict
function OnCollisionStay(theCollision : Collision) {
if(theCollision.gameObject.name == "fpsplayer"){
Debug.Log("Hit Player!");
}
}
attached to it. When I put this rigidbody over the fpsplayer head it falls and the debug do show collision happens but when I put it in the world and make my player's way to it and make it collide with the box no collision is detected.
Thanks, and a Happy New Year.
Since it's a professional site, indeed the main professional site for Unity3D,
you'll very likely have to change your nickname. An ad$$anonymous$$ will just delete it since it is vulgar. Sorry for the boring news !
Aww Okay, but before that I need help with this weird problem I can't get a point ahead on my work :/
I'd suggest as @Fattie said, change your name, then ask the question again.
Follow this Question
Related Questions
Collision on character controller (fps player) 2 Answers
How to change CC script to Rigidbody script 1 Answer
Any way to ignore collision between rigidbodies and colliders/character controllers? 1 Answer
Weapon System with collide detection (Helps with script pls)!!! 0 Answers
Physics AddForce reduced when 3 objects are colliding 1 Answer