protected UnturnedBuildable(IBuildableAsset asset, IWorldTransform transform, IBuildableState state, IOwnership ownership, string buildableInstanceId) { Asset = asset; Transform = transform; State = state; Ownership = ownership; BuildableInstanceId = buildableInstanceId; }
public void UpdateWorldTransform(IWorldTransform parentWorldTransform) { _parentWorldTransform = parentWorldTransform.WorldTransform; _worldTransform = _localTransform * _parentWorldTransform; UpdateChildrenTransform(); }