Dungeon Architect  17.0.0
DungeonArchitect.TransformationRule Class Reference

Selector rule allow you to attach selection behavior to decide if a visual node should be inserted into the scene More...

Inheritance diagram for DungeonArchitect.TransformationRule:

Public Member Functions

virtual void GetTransform (PropSocket socket, DungeonModel model, Matrix4x4 propTransform, System.Random random, out Vector3 outPosition, out Quaternion outRotation, out Vector3 outScale)
 Implement this method to provide a transform based on your logic. More...
 

Detailed Description

Selector rule allow you to attach selection behavior to decide if a visual node should be inserted into the scene

Definition at line 10 of file TransformationRule.cs.

Member Function Documentation

◆ GetTransform()

virtual void DungeonArchitect.TransformationRule.GetTransform ( PropSocket  socket,
DungeonModel  model,
Matrix4x4  propTransform,
System.Random  random,
out Vector3  outPosition,
out Quaternion  outRotation,
out Vector3  outScale 
)
virtual

Implement this method to provide a transform based on your logic.

Parameters
socketThe marker data structure
modelThe dungeon model
propTransformThe combined transform of the visual node that invoked this rule
randomThe random stream used by the builder. User this random stream for any randomness for consistancy
outPositionSet your position offset here
outRotationSet your rotation offset here
outScaleSet your scale offset here

Definition at line 22 of file TransformationRule.cs.


The documentation for this class was generated from the following file: