public SetClonePosition ( |
||
position | ||
Результат | void |
public void HandleSplitGroup(Group group) { if (group.elapsedTime > 1f) { this.splitGroupList.Remove(group); } else { group.SetOwnerPosition(Vector3.Lerp(group.splitOrigin, group.splitOrigin + group.rotationVector, group.elapsedTime)); group.SetClonePosition(Vector3.Lerp(group.splitOrigin, group.splitOrigin - group.rotationVector, group.elapsedTime)); group.UpdateTime(1f); } }
public void HandleMergeGroup(Group group) { if (group.elapsedTime > 1f) { this.mergeGroupList.Remove(group); } else { group.SetOwnerPosition(Vector3.Lerp(group.ownerOriginalPosition, group.mergeOrigin, group.elapsedTime)); group.SetClonePosition(Vector3.Lerp(group.cloneOriginalPosition, group.mergeOrigin, group.elapsedTime)); group.SetOwnerScale(Vector3.Lerp(group.ownerOriginalScale, group.ownerNewScale, group.elapsedTime)); group.SetCloneScale(Vector3.Lerp(group.ownerOriginalScale, group.ownerNewScale, group.elapsedTime)); group.UpdateTime(1f); } }
public void HandleMergeGroup(Group group) { if (group.elapsedTime > 1f) { this.mergeGroupList.Remove(group); } else { group.SetOwnerPosition(Vector3.Lerp(group.ownerOriginalPosition, group.mergeOrigin, group.elapsedTime)); group.SetClonePosition(Vector3.Lerp(group.cloneOriginalPosition, group.mergeOrigin, group.elapsedTime)); group.SetOwnerScale(Vector3.Lerp(group.ownerOriginalScale, group.ownerNewScale, group.elapsedTime)); group.SetCloneScale(Vector3.Lerp(group.ownerOriginalScale, group.ownerNewScale, group.elapsedTime)); group.UpdateTime(1f); } }
public void HandleSplitGroup(Group group) { if (group.elapsedTime > 1f) { this.splitGroupList.Remove(group); } else { group.SetOwnerPosition(Vector3.Lerp(group.splitOrigin, group.splitOrigin + group.rotationVector, group.elapsedTime)); group.SetClonePosition(Vector3.Lerp(group.splitOrigin, group.splitOrigin - group.rotationVector, group.elapsedTime)); group.UpdateTime(1f); } }