Class WallPropPositioner
Finds an appropriate position and rotation for objects that replace billboard wall props such as torches.
Implements
Inherited Members
Namespace: DaggerfallWorkshop.Utility.AssetInjection
Assembly: Assembly-CSharp.dll
Syntax
[HelpURL("http://www.dfworkshop.net/projects/daggerfall-unity/modding/models-flats/#WallPropPositioner")]
public class WallPropPositioner : ObjectPositioner, IObjectPositioner
Remarks
This component performs three operations:
- Ensures the object faces the wall on the set direction 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 to the floor.
Properties
| Improve this Doc View SourceAllowFlatRotation
Always false because rotation is set for wall direction.
Declaration
public sealed override bool AllowFlatRotation { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Methods
| Improve this Doc View SourceAlign(Vector3)
Calculates the angle with the wall and apply a corresponding rotation.
Declaration
protected void Align(Vector3 direction)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | direction | A normalized direction in local space. |
PerformPositioning(Vector3)
Performs all positioning operations.
Declaration
protected override void PerformPositioning(Vector3 direction)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | direction | A normalized direction in local space. |
Overrides
| Improve this Doc View SourceRotate(Vector3)
Rotates the object from the given direction to a collider found next to it.
Declaration
protected void Rotate(Vector3 from)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | from | A normalized direction in local space. |