- Home /
Get a vector3 for 'transform.backward'
I am creating a plane at a point somewhere out in front of the camera, and I need the plane to be aligned parallel to the camera's view plane, but facing towards the camera, not away.
For example in C#:
Plane newPlane = new Plane(Camera.mainCamera.transform.forward, aPointInView);
This creates the plane where I want it, and aligned parallel to the camera properly, but the plane's normal faces away from the camera.
Is there an easy way to get the camera's forward facing, and flip it? (Or any way to take transform.forward and make it ~ transform.backward ..?)
Answer by whydoidoit · Jul 31, 2012 at 08:41 PM
transform.forward * -1 is the inverse of transform.forward
its Nonesense like this that makes me think why do i need an engine when i am the one calculating and thinking of all dough... what the point, just give me something that works well, and simple, when i tell something to go forward and it goes forward, i want it to be able to go backwards when i tell it to go backwards...
Yes, you are right, why making things complicated like putting a -
before a vector? Rewriting a physics engine, rendering engine, input system, network system, particle system, complete cross-platform editor is so much easier....
Your answer
![](https://koobas.hobune.stream/wayback/20220613075002im_/https://answers.unity.com/themes/thub/images/avi.jpg)