Hey guy’s,
My problem is that my Camera collide with object.
I mean:
When my camera near some object,
so when my camera back is the object the object will disappear…
I doesn’t know why it’s like this but it’s wird…
Please i want to fix it…
TNX For The Helping.
Uhhh you mean if your camera passes through an object, the object disappears?
Or as the camera gets really close to an object, it starts to cut away?
yes!
no!
Well if the camera passes through the object, then the object is behind the camera… so it doesn’t get rendered?
how can i render it?
Turn the camera around.
OPSS I HAVE A Mistake:
NO!
YES!
Read the parts about the clipping planes. I’m guessing the near clipping plane is the issue you’re talking about.
i still doesn’t understand what i need to do…
Reduce the near clipping plane.
EDIT: google tells me: http://answers.unity3d.com/questions/6010/how-do-i-prevent-my-camera-from-looking-through-objects
I think you doesn’t understand me,
Look:
I have this photo:
And when i move my mouse little bit right, The object disappear:
It’s because you’re on the other side of the polygon.
Polygons in Unity are 1-sided. That is, they are visible one way (from the “outside”) but invisible the other way (the “inside”). If you still want to see that wall, you’ll need to duplicate the shape, flip the polygon’s normals (they point in the direction of what is “outside”).
But this points to a different issue: your polygon has now entered your scene geometry. You need to prevent that from happening. Otherwise you’ll just see the “inside” of the building wall, which likely doesn’t make sense. Most games resolve this by moving the camera closer to the character so it’s still on the “outside” of the wall.
so what i need to do?
Accept it, or work around it, perhaps like this:
This is what i want to do! With my game
How can i do that?
Magic mostly. It’s your game, how do you control the camera? Just alter your logic so the camera is closer to the character. I suppose you could do periodic raycasts from the camera to see if it hits a wall collider. If it does, move the camera up to the collider’s hit location.
Honestly, focus on getting the rest of your game up and running before worrying about little tidbits like this.
i using “Cheracter Controller”…
Can you give a code?
please please please please please.
Nope, sorry, bit busy to go through the motions to do that. Plenty of scripting resources, tutorials, and likely similar issues that you can learn from via google.
Dam!
Please give me tutorial for this.
With an attitude like that, KillerScript, good luck in the future soliciting help in the future.