Class FaceWall
Finds the best position and rotation for a gameobject meant to replace a billboard.
Implements
Namespace: DaggerfallWorkshop.Utility.AssetInjection
Assembly: Assembly-CSharp.dll
Syntax
[Obsolete("Use WallPropPositioner")]
[HelpURL("http://www.dfworkshop.net/projects/daggerfall-unity/modding/models-flats/#facewall")]
public class FaceWall : MonoBehaviour, IObjectPositioner
Remarks
This component performs three operations:
- Ensures the object faces the wall on the object Z axis and rotates if needed.
- Moves the object next to the wall or away from it if clipping.
- Aligns the object if wall is not perpendicular.
Fields
| Improve this Doc View SourceAlignToWall
Aligns the object if wall is not perpendicular.
Declaration
[Tooltip("Aligns the object if wall is not perpendicular.")]
[FormerlySerializedAs("alignToWall")]
public bool AlignToWall
Field Value
Type | Description |
---|---|
Boolean |
MaxDistance
The wall will be seeked inside this radius. Big values can cause wrong results.
Declaration
[Tooltip("The wall will be seeked inside this radius. Big values can cause wrong results.")]
[FormerlySerializedAs("maxDistance")]
public float MaxDistance
Field Value
Type | Description |
---|---|
Single |
MoveNearWall
Translates the object next to the wall if distant or away from the wall if clipping.
Declaration
[Tooltip("Translates the object next to the wall if distant or away from the wall if clipping.")]
[FormerlySerializedAs("moveNearWall")]
public bool MoveNearWall
Field Value
Type | Description |
---|---|
Boolean |
Properties
| Improve this Doc View SourceAllowFlatRotation
Declaration
public bool AllowFlatRotation { get; }
Property Value
Type | Description |
---|---|
Boolean |