Show / Hide Table of Contents

Class FaceWall

Finds the best position and rotation for a gameobject meant to replace a billboard.

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
FaceWall
Implements
IObjectPositioner
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:

  1. Ensures the object faces the wall on the object Z axis and rotates if needed.
  2. Moves the object next to the wall or away from it if clipping.
  3. Aligns the object if wall is not perpendicular.

Fields

| Improve this Doc View Source

AlignToWall

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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 Source

AllowFlatRotation

Declaration
public bool AllowFlatRotation { get; }
Property Value
Type Description
Boolean

Implements

IObjectPositioner

Extension Methods

MBExtensions.Invoke(MonoBehaviour, Action, Single)
MBExtensions.Invoke<T>(MonoBehaviour, Action<T>, T, Single)
MBExtensions.Invoke<T1, T2>(MonoBehaviour, Action<T1, T2>, T1, T2, Single)
MBExtensions.Invoke<T1, T2, T3>(MonoBehaviour, Action<T1, T2, T3>, T1, T2, T3, Single)
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)
  • Improve this Doc
  • View Source
In This Article
  • Fields
    • AlignToWall
    • MaxDistance
    • MoveNearWall
  • Properties
    • AllowFlatRotation
  • Implements
  • Extension Methods
Back to top Generated by DocFX