// Copyright (c) Wojciech Figat. All rights reserved.
using FlaxEngine;
namespace FlaxEditor.SceneGraph.Actors
{
///
/// Scene tree node for actor type.
///
[HideInEditor]
public sealed class ClothNode : ActorNode
{
///
public ClothNode(Actor actor)
: base(actor)
{
}
///
public override void PostSpawn()
{
base.PostSpawn();
// Snap to the parent
if (!(ParentNode is SceneNode))
Actor.LocalTransform = Transform.Identity;
}
}
}