Hi everyone. I have a plane in the scene that the player can rotate. Based on the plane’s euler angles, is there an easy way for me to calculate the coefficients a, b, c, and d of the plane’s equation ax+by+cz+d=0?

Thanks!

Hi everyone. I have a plane in the scene that the player can rotate. Based on the plane’s euler angles, is there an easy way for me to calculate the coefficients a, b, c, and d of the plane’s equation ax+by+cz+d=0?

Thanks!

It’s calculated from a point and a vector like this (presuming it’s a Unity transform of a Unity Plane);

```
a = transform.up.x;
b = transform.up.y;
c = transform.up.z;
d = -Vector3.Dot(transform.up, transform.position);
```