Okay, this is a classic Unity question that gets tripped up a lot! Here's the breakdown, and the standard Unity uses:
The Standard: Forward is +Z
Unity's default coordinate system and, crucially, its default forward direction for GameObjects is positive Z. This is very important.
Analyzing Your Scenario
- Camera: At (0, 0, -10) looking at (0, 0, 0). This means the camera is pointing along the positive Z-axis.
- Critter: At (0, 0, 0) with a rotation of 0.
Because the Critter's rotation is 0, and Unity's forward is +Z, the Critter is facing towards the camera. You are seeing its face.
Why it's Counterintuitive
This often feels backwards because in many 2D art programs or real-world thinking, "forward" is often considered the direction you're looking from. But in Unity's 3D space:
- +Z is forward.
- -Z is backward.
- +X is right.
- -X is left.
- +Y is up.
- -Y is down.
Visualizing it
Imagine yourself standing at the camera position. You're looking down the positive Z-axis. The Critter is right in front of you at the origin. Its "forward" (positive Z) is pointing directly at you.
Important Considerations
- Model Orientation: The way the model itself is built in your 3D modeling software matters. If the model was created with its "front" facing a different direction (e.g., -Z), you'll need to adjust the rotation in Unity to compensate. This is often done by rotating the model 180 degrees on the Y-axis in the editor.
- Rotation Order: Unity uses a specific rotation order (usually ZXY Euler angles). This can affect how rotations are applied, especially when combining multiple rotations.
transform.forward: In code, you can access the direction the GameObject is facing using transform.forward. This will be a Vector3 pointing along the positive Z-axis of the GameObject's local coordinate system.
In summary: In your setup, you are seeing the face of the Critter.
To help solidify this, you can do a quick test in Unity:
- Create a simple cube (or use your Critter model).
- Position the camera as described.
- Observe which side of the cube is facing the camera. If it's the side that you'd expect to be the "front" of the cube, then you're confirming the standard. If not, you might need to rotate the cube 180 degrees on the Y-axis in the editor.