class MAGES::SceneGraph::InsertBehavior¶
Overview¶
Behavior that handles the Insert action. More…
class InsertBehavior: public MAGES::SceneGraph::BaseBehavior { public: // properties UnityEvent OnInserted; float InsertedAngleDiff; GameObject FinalPosition; float AngleTolerance; InsertionType InsertionType; // methods void Start(); void FinalizeAction(); };
Inherited Members¶
public: // properties string ObjectID; BaseActionData ActionData;
Detailed Documentation¶
Behavior that handles the Insert action.
Properties¶
UnityEvent OnInserted
Gets the on triggered event.
float InsertedAngleDiff
Gets the angle difference between the inserted object and the final position.
GameObject FinalPosition
Gets or sets the inal position of the insert Action.
float AngleTolerance
Gets or sets the insertion angle. If angle tolerance is 0, the object must be inserted at the exact angle.
InsertionType InsertionType
Gets or sets the insertion type.
Methods¶
void Start()
Initialize the script.
void FinalizeAction()
Finalizes the action of inserting the object.